Documentation ¶
Index ¶
- Variables
- func GetDieChan() chan error
- func RegisterClientHandler(route string, ch interface{})
- func RegisterCodec(cd codec.Codec)
- func RegisterMarshaler(ma marshaler.Marshaler)
- func RegisterServerHandler(route string, sh interface{})
- func RegisterServiceDiscovery(sd servicediscovery.ServiceDiscovery)
- func Run(serverID, serverType string, opts ...Option) error
- func Shutdown() error
- type Group
- type Option
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionExistErr = errors.New("session exist err")
Functions ¶
func GetDieChan ¶
func GetDieChan() chan error
func RegisterClientHandler ¶
func RegisterClientHandler(route string, ch interface{})
func RegisterCodec ¶
func RegisterMarshaler ¶
func RegisterServerHandler ¶
func RegisterServerHandler(route string, sh interface{})
func RegisterServiceDiscovery ¶
func RegisterServiceDiscovery(sd servicediscovery.ServiceDiscovery)
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithClientAddr ¶
func WithConcurrentMode ¶
func WithSDAddr ¶
func WithServiceAddr ¶
func WithStandalone ¶
func WithStandalone() Option
Click to show internal directories.
Click to hide internal directories.