highway

package
v0.0.0-...-d85f73f Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	ReqHead *pb.Highway_RequestHead
	ReqBody []byte
	Resp    *pb.Highway_ResponseHead
	Error   error
	Done    chan *Call
}

type Highway

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

func NewHighway

func NewHighway(addr, uin string, appID uint32) *Highway

func (*Highway) Call

func (hw *Highway) Call(
	reqHead *pb.Highway_RequestHead,
	reqBody []byte,
	resp *pb.Highway_ResponseHead,
) error

func (*Highway) Echo

func (hw *Highway) Echo() error

func (*Highway) Go

func (hw *Highway) Go(
	reqHead *pb.Highway_RequestHead,
	reqBody []byte,
	resp *pb.Highway_ResponseHead,
	done chan *Call,
) *Call

func (*Highway) Upload

func (hw *Highway) Upload(name string, ukey []byte) error

Jump to

Keyboard shortcuts

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