Documentation
¶
Index ¶
Constants ¶
View Source
const (
FREE_LIST_SIZE = 4 * 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func ConfList ¶ added in v0.2.0
func ConfList(confList []registry.ServerConfig) Option
func ServiceConfList ¶
func ServiceConfList(confList []registry.ServiceConfig) Option
type Server ¶
type Server interface {
Options() Options
Handle(Handler) error
Start() error
Stop()
String() string
}
Provider
type Streamer ¶
type Streamer interface {
Context() context.Context
Request() Request
Send(interface{}) error
Recv(interface{}) error
Error() error
Close() error
}
Streamer represents a stream established with a client. A stream can be bidirectional which is indicated by the request. The last error will be left in Error(). EOF indicated end of the stream.
Click to show internal directories.
Click to hide internal directories.