Documentation ¶
Index ¶
- Variables
- type Registry
- type YockCall
- type YockInterface
- func (yock *YockInterface) Call(ctx context.Context, req *yocki.CallRequest) (*yocki.CallResponse, error)
- func (yock *YockInterface) Ping(ctx context.Context, req *yocki.PingRequest) (*yocki.PingResponse, error)
- func (yock *YockInterface) Register(fn string, call YockCall)
- func (yock *YockInterface) Run(port int)
- func (yock *YockInterface) Unregister(fn string)
Constants ¶
This section is empty.
Variables ¶
View Source
var UnimplementYockCall = func(*yocki.CallRequest) (*yocki.CallResponse, error) { return &yocki.CallResponse{Buf: "unimplement method or bad request"}, nil }
Functions ¶
This section is empty.
Types ¶
type YockCall ¶
type YockCall func(req *yocki.CallRequest) (*yocki.CallResponse, error)
type YockInterface ¶
type YockInterface struct { yocki.UnimplementedYockInterfaceServer // contains filtered or unexported fields }
func New ¶
func New() *YockInterface
func (*YockInterface) Call ¶
func (yock *YockInterface) Call(ctx context.Context, req *yocki.CallRequest) (*yocki.CallResponse, error)
func (*YockInterface) Ping ¶
func (yock *YockInterface) Ping(ctx context.Context, req *yocki.PingRequest) (*yocki.PingResponse, error)
func (*YockInterface) Register ¶
func (yock *YockInterface) Register(fn string, call YockCall)
func (*YockInterface) Run ¶
func (yock *YockInterface) Run(port int)
func (*YockInterface) Unregister ¶
func (yock *YockInterface) Unregister(fn string)
Click to show internal directories.
Click to hide internal directories.