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 ServerConfList ¶
func ServerConfList(confList []registry.ServerConfig) Option
func ServiceConfList ¶
func ServiceConfList(confList []registry.ServiceConfig) Option
type Options ¶
type Options struct {
Codecs map[string]codec.NewCodec
Registry registry.Registry
Transport transport.Transport
ServerConfList []registry.ServerConfig
ServiceConfList []registry.ServiceConfig
// Other options for implementations of the interface
// can be stored in a context
Context context.Context
}
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.