part

package
v0.28.20240811150311 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSerGob    = errors.New("ErrSerGob")
	ErrSerDecode = errors.New("ErrSerDecode")
	ErrCliDecode = errors.New("ErrCliDecode")
	ErrSerDeal   = errors.New("ErrSerDeal")
	ErrCliDeal   = errors.New("ErrCliDeal")
	ErrCliEncode = errors.New("ErrCliEncode")
	ErrSerEncode = errors.New("ErrSerEncode")
	ErrRegister  = errors.New("ErrRegister")
	ErrDial      = errors.New("ErrDial")
)

Functions

func Call added in v0.28.20240103182958

func Call[T, E any](host, path string, it *T, ot *E) error

func Register added in v0.28.20240103182958

func Register[T, E any](t *Server, path string, deal func(it *T, ot *E) error) error

func UnRegister added in v0.28.20240103182958

func UnRegister(t *Server, path string)

Types

type DealGob

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

func (*DealGob) Deal

func (t *DealGob) Deal(i *Gob, o *Gob) error

type Gob

type Gob struct {
	Data []byte
	Err  error
}

type Server added in v0.28.20240103182958

type Server struct {
	Shutdown func(ctx ...context.Context)
	// contains filtered or unexported fields
}

func NewServer added in v0.28.20240103182958

func NewServer(host string) *Server

Jump to

Keyboard shortcuts

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