message

package
v0.0.0-...-a2da514 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Message
}

type Message

type Message interface {
	Type() string
	Value() Value
}

type Publication

type Publication interface {
	Message
}

type RPCRequest

type RPCRequest struct {
	Service string      `json:"service,omitempty"`
	Handler string      `json:"handler,omitempty"`
	Method  string      `json:"method,omitempty"`
	Args    interface{} `json:"args,omitempty"`
}

type Request

type Request interface {
	Message

	Handler() string
	Method() string
}

type Response

type Response interface {
	Message
}

type Value

type Value interface {
	Interface() interface{}
	String() string
	Encode() []byte
}

func NewValue

func NewValue(v interface{}) Value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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