plugin

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePlugin

type BasePlugin struct{}

func (*BasePlugin) HandleConnAccept

func (p *BasePlugin) HandleConnAccept(conn net.Conn) (net.Conn, bool)

func (*BasePlugin) HandleConnClose

func (p *BasePlugin) HandleConnClose(conn net.Conn) bool

func (*BasePlugin) HeartbeatRequest

func (p *BasePlugin) HeartbeatRequest(ctx context.Context, req *protocol.Message) error

func (*BasePlugin) PostCall

func (p *BasePlugin) PostCall(ctx context.Context, serviceName, methodName string, args, reply interface{}) (interface{}, error)

func (*BasePlugin) PostReadRequest

func (p *BasePlugin) PostReadRequest(ctx context.Context, r *protocol.Message, e error) error

func (*BasePlugin) PostWriteRequest

func (p *BasePlugin) PostWriteRequest(ctx context.Context, r *protocol.Message, e error) error

func (*BasePlugin) PostWriteResponse

func (p *BasePlugin) PostWriteResponse(ctx context.Context, req *protocol.Message, resp *protocol.Message, err error) error

func (*BasePlugin) PreCall

func (p *BasePlugin) PreCall(ctx context.Context, serviceName, methodName string, args interface{}) (interface{}, error)

func (*BasePlugin) PreHandleRequest

func (p *BasePlugin) PreHandleRequest(ctx context.Context, r *protocol.Message) error

func (*BasePlugin) PreReadRequest

func (p *BasePlugin) PreReadRequest(ctx context.Context) error

func (*BasePlugin) PreWriteRequest

func (p *BasePlugin) PreWriteRequest(ctx context.Context) error

func (*BasePlugin) PreWriteResponse

func (p *BasePlugin) PreWriteResponse(ctx context.Context, req *protocol.Message, resp *protocol.Message, err error) error

func (*BasePlugin) Register

func (p *BasePlugin) Register(name string, rcvr interface{}, metadata string) error

func (*BasePlugin) RegisterFunction

func (p *BasePlugin) RegisterFunction(serviceName, fname string, fn interface{}, metadata string) error

func (*BasePlugin) Unregister

func (p *BasePlugin) Unregister(name string) error

Jump to

Keyboard shortcuts

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