Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgpackClientCodec ¶
func NewMsgpackClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec
NewMsgpackClientCodec :
func NewMsgpackServerCodec ¶
func NewMsgpackServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec
NewMsgpackServerCodec :
Types ¶
type ClientConfig ¶
type ClientConfig struct {
// Logger
Logger log.Logger
// URL of the Drago server (e.g. http://127.0.0.1:8081).
Address string
// Timeout when dialing.
DialTimeout time.Duration
}
func DefaultClientConfig ¶
func DefaultClientConfig() *ClientConfig
func (*ClientConfig) Merge ¶
func (c *ClientConfig) Merge(b *ClientConfig) *ClientConfig
type ServerConfig ¶
type ServerConfig struct {
//BindAddress
BindAddress string
// Logger
Logger log.Logger
// Receivers
Receivers map[string]interface{}
}
func DefaultConfig ¶
func DefaultConfig() *ServerConfig
func (*ServerConfig) Merge ¶
func (s *ServerConfig) Merge(b *ServerConfig) *ServerConfig
Click to show internal directories.
Click to hide internal directories.