event

package
v0.1.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: GPL-3.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event uint32

func (Event) HTTP

func (e Event) HTTP() (HttpEvent, error)

func (Event) P2P

func (e Event) P2P() (p2p.Event, error)

Gives a p2pEvent if the current function is called through p2p

func (Event) PubSub

func (e Event) PubSub() (pubsub.PubSubEvent, error)

func (Event) Type

func (e Event) Type() common.EventType

type HttpEvent

type HttpEvent uint32

func (HttpEvent) Body

func (e HttpEvent) Body() HttpEventBody

func (HttpEvent) Headers

func (e HttpEvent) Headers() HttpEventHeaders

func (HttpEvent) Host

func (e HttpEvent) Host() (string, error)

func (HttpEvent) Method

func (e HttpEvent) Method() (string, error)

func (HttpEvent) Path

func (e HttpEvent) Path() (string, error)

func (HttpEvent) Query

func (e HttpEvent) Query() HttpQueries

func (HttpEvent) Return

func (e HttpEvent) Return(code int) error

func (HttpEvent) UserAgent

func (e HttpEvent) UserAgent() (string, error)

func (HttpEvent) Write

func (e HttpEvent) Write(data []byte) (int, error)

type HttpEventBody

type HttpEventBody uint32

func (HttpEventBody) Close

func (b HttpEventBody) Close() error

func (HttpEventBody) Read

func (b HttpEventBody) Read(p []byte) (int, error)

type HttpEventHeaders

type HttpEventHeaders uint32

func (HttpEventHeaders) Get

func (e HttpEventHeaders) Get(key string) (string, error)

func (HttpEventHeaders) List

func (e HttpEventHeaders) List() ([]string, error)

func (HttpEventHeaders) Set

func (e HttpEventHeaders) Set(key, value string) error

type HttpQueries

type HttpQueries uint32

func (HttpQueries) Get

func (e HttpQueries) Get(key string) (string, error)

func (HttpQueries) List

func (e HttpQueries) List() ([]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL