jsonrpc_any

package
v0.0.0-...-9da5f0f Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	UUID       string
	ExpireTime time.Time
	P          *router.ProducerChannel
	C          *router.ConsumerChannel
}

type ChannelConsumeRequest

type ChannelConsumeRequest struct {
	UUID       string        `json:"uuid"`
	Timeout    time.Duration `json:"-"`
	TimeoutStr string        `json:"timeout"`
	Limit      int           `json:"limit"`
}

type ChannelConsumeResponse

type ChannelConsumeResponse struct {
	Packets []types.Packet `json:"packets"`
	Code    int            `json:"code"`
}

type ChannelInitRequest

type ChannelInitRequest struct {
	UUID     string               `json:"uuid"`
	Producer bool                 `json:"producer"`
	Consumer bool                 `json:"consumer"`
	Accept   []router.RoutingRule `json:"accept"`
}

type ChannelInitResponse

type ChannelInitResponse struct {
	UUID string `json:"uuid"`
	Code int    `json:"code"`
}

type ChannelProduceRequest

type ChannelProduceRequest struct {
	UUID   string       `json:"uuid"`
	Packet types.Packet `json:"packet"`
}

type ChannelProduceResponse

type ChannelProduceResponse struct {
	Code int `json:"code"`
}

type UpdatesChannel

type UpdatesChannel <-chan *types.Packet

Jump to

Keyboard shortcuts

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