Documentation ¶
Index ¶
- func EdgeServer(serverID string, listenPort int, concurrency int, opts ...edge.Option) *edge.Server
- func Init()
- func ReceivedMessages() int32
- func ReceivedUpdates() int32
- func ResetCounters()
- func TestServer(serverID string) *edgetest.Server
- type Handlers
- func (h *Handlers) Echo(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)
- func (h *Handlers) EchoDelay(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)
- func (h *Handlers) EchoInternal(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)
- func (h *Handlers) EchoTunnel(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)
- func (h *Handlers) Get(ctx *edge.RequestCtx, req *service.GetRequest, res *service.GetResponse)
- func (h *Handlers) Set(ctx *edge.RequestCtx, req *service.SetRequest, res *service.SetResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EdgeServer ¶ added in v0.10.0
func ReceivedMessages ¶
func ReceivedMessages() int32
func ReceivedUpdates ¶
func ReceivedUpdates() int32
func ResetCounters ¶
func ResetCounters()
func TestServer ¶ added in v0.10.0
Types ¶
type Handlers ¶
type Handlers struct {
ServerID string
}
func (*Handlers) Echo ¶
func (h *Handlers) Echo(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)
func (*Handlers) EchoDelay ¶ added in v0.1.9
func (h *Handlers) EchoDelay(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)
func (*Handlers) EchoInternal ¶ added in v0.5.7
func (h *Handlers) EchoInternal(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)
func (*Handlers) EchoTunnel ¶ added in v0.1.5
func (h *Handlers) EchoTunnel(ctx *edge.RequestCtx, req *service.EchoRequest, res *service.EchoResponse)
func (*Handlers) Get ¶ added in v0.7.2
func (h *Handlers) Get(ctx *edge.RequestCtx, req *service.GetRequest, res *service.GetResponse)
func (*Handlers) Set ¶ added in v0.7.2
func (h *Handlers) Set(ctx *edge.RequestCtx, req *service.SetRequest, res *service.SetResponse)
Click to show internal directories.
Click to hide internal directories.