event

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const HTTPEvent = "HTTPEvent"
View Source
const WebSocketConnEvent = "WebSocketConnEvent"
View Source
const WebSocketEvent = "WebSocketEvent"

Variables

This section is empty.

Functions

func UnsafeBytes added in v0.1.7

func UnsafeBytes(str string) []byte

func UnsafeString added in v0.1.7

func UnsafeString(bytes []byte) string

Types

type HTTPEventData added in v0.1.5

type HTTPEventData struct {
	Headers map[string]string
	Body    []byte
}

type Topic

type Topic struct {
	Name string
	Key  string
	Data interface{}
}

func (*Topic) DataType

func (t *Topic) DataType() string

func (*Topic) GetDataBytes added in v0.1.7

func (t *Topic) GetDataBytes() []byte

func (*Topic) GetKeyBytes added in v0.1.7

func (t *Topic) GetKeyBytes() []byte

func (*Topic) GetKeyString added in v0.1.7

func (t *Topic) GetKeyString() string

func (*Topic) GetNameBytes added in v0.1.7

func (t *Topic) GetNameBytes() []byte

func (*Topic) GetNameString added in v0.1.7

func (t *Topic) GetNameString() string

type TopicQueue

type TopicQueue chan Topic

type TopicQueuePool

type TopicQueuePool chan TopicQueue

type WebSocketConnEventData added in v0.1.5

type WebSocketConnEventData struct {
	SocketId int
}

type WebSocketEventData added in v0.1.5

type WebSocketEventData struct {
	SocketId int
	OpCode   byte
	Message  []byte
}

Jump to

Keyboard shortcuts

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