event

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: GPL-3.0 Imports: 8 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloseHttpEventBody = func(eventId uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var EventHttpHeaderAdd = func(eventId uint32, key string, val string) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var EventHttpRetCode = func(eventId uint32, code uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var EventHttpWrite = func(eventId uint32, bufPtr *byte, bufSize uint32, n *uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetEventType = func(eventId uint32, typeid *uint32) {}
View Source
var GetHttpEventHeaderByName = func(eventId uint32, key string, bufPtr *byte, bufSize uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventHeaderByNameSize = func(eventId uint32, size *uint32, key string) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventHost = func(eventId uint32, bufPtr *byte, bufSize uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventHostSize = func(eventId uint32, size *uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventMethod = func(eventId uint32, bufPtr *byte, bufSize uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventMethodSize = func(eventId uint32, size *uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventPath = func(eventId uint32, bufPtr *byte, bufSize uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventPathSize = func(eventId uint32, size *uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventQueryValueByName = func(eventId uint32, key string, bufPtr *byte, bufSize uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventQueryValueByNameSize = func(eventId uint32, size *uint32, key string) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventRequestHeaderKeys = func(eventId uint32, bufPtr *byte) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventRequestHeaderKeysSize = func(eventId uint32, sizePtr *uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventRequestQueryKeys = func(eventId uint32, bufPtr *byte) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventRequestQueryKeysSize = func(eventId uint32, sizePtr *uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventUserAgent = func(eventId uint32, bufPtr *byte, bufSize uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var GetHttpEventUserAgentSize = func(eventId uint32, size *uint32) (error errno.Error) {
	return errno.ErrorNone
}
View Source
var ReadHttpEventBody = func(eventId uint32, buf *byte, bufSize uint32, countPtr *uint32) (error errno.Error) {
	return errno.ErrorNone
}

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