part

package
v0.28.20231215215733 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 {
	Key  string
	Data []byte
}

func NewGob

func NewGob(k string) *Gob

func (*Gob) Decode

func (t *Gob) Decode(e any) (err error)

func (*Gob) Encode

func (t *Gob) Encode(e any) (err error)

type Pob

type Pob struct {
	Host string `json:"host"`
	Path string `json:"path"`
	// contains filtered or unexported fields
}

func (*Pob) Client

func (t *Pob) Client() (pobClient *PobClient, err error)

func (*Pob) Server

func (t *Pob) Server(deal func(i, o *Gob) error) (shutdown func(ctx ...context.Context), err error)

type PobClient

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

func (*PobClient) Call

func (t *PobClient) Call(g *Gob) (err error)

func (*PobClient) CallIO

func (t *PobClient) CallIO(i, o *Gob) (err error)

func (*PobClient) Close

func (t *PobClient) Close()

func (*PobClient) Go

func (t *PobClient) Go(g *Gob, done chan *rpc.Call) *rpc.Call

func (*PobClient) GoIO

func (t *PobClient) GoIO(i, o *Gob, done chan *rpc.Call) *rpc.Call

Jump to

Keyboard shortcuts

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