light

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 2 Imported by: 5

README

light

LightRPC Multi-protocol encryption RPC

Multi-protocol
  • TCP
  • KCP
  • UNIX
  • HTTP
  • MQTT
  • QUIC
Encoding
  • JSON
  • MessagePack
  • Protobuf
Compress
  • RawData
  • Snappy
  • GZIP
Discovery
  • p2p
  • redis docker run -d --name redis -p 6379:6379 --restart=always redis:6-alpine
  • etcd
  • consul

Programming language support

  • GO
  • RUST
  • Python

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func DefaultCtx

func DefaultCtx() *Context

func NewCtx

func NewCtx(ctx context.Context) *Context

func (*Context) GetMetaData

func (c *Context) GetMetaData() map[string]string

func (*Context) GetPath added in v0.0.3

func (c *Context) GetPath() string

func (*Context) GetTimeout

func (c *Context) GetTimeout() time.Duration

func (*Context) SetMetaData

func (c *Context) SetMetaData(r map[string]string)

func (*Context) SetPath added in v0.0.3

func (c *Context) SetPath(path string)

func (*Context) SetTimeout

func (c *Context) SetTimeout(timeout time.Duration)

func (*Context) SetValue

func (c *Context) SetValue(key, val string)

func (*Context) Value

func (c *Context) Value(key string) string

Jump to

Keyboard shortcuts

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