transport

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOption

type CallOption struct {
}

type CallOptions

type CallOptions func(option *CallOption)

CallOptions todo call server Options

type Client

type Client interface {
	Dial(e *endpoint.Endpoint, closeChan chan string) error

	// RR request/response,through block unsafe method
	RR(c *context.Context, req *parcel.RocPacket, rsp *parcel.RocPacket) (err error)

	// RS request/stream
	RS(c *context.Context, req *parcel.RocPacket) (chan []byte, chan error)

	// RC request/channel
	RC(c *context.Context, req chan []byte, errsIn chan error) (chan []byte, chan error)

	String() string

	Close()
}

type Server

type Server interface {

	// Address about server socket setup on ip address
	Address() string

	Accept(fn *router.Router)

	Run()

	String() string

	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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