yocki

package
v0.0.0-...-9853328 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 Registry

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

func (*Registry) Find

func (reg *Registry) Find(name string) YockCall

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 (*YockInterface) Ping

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)

Jump to

Keyboard shortcuts

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