Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Call ¶
type Call struct { ServiceMethod string ClientToServerMessage *codec.ClientToServerMessage ServerToClientMessage *codec.ServerToClientMessage Error error Done chan *Call }
type Engine ¶
type Engine interface { Start(ctx context.Context) error Ready(ch chan struct{}) Close() error Call( serviceMethod string, c2s *codec.ClientToServerMessage, s2c *codec.ServerToClientMessage, ) error CallWithDeadline( serviceMethod string, c2s *codec.ClientToServerMessage, s2c *codec.ServerToClientMessage, d time.Time, ) error Go( serviceMethod string, c2s *codec.ClientToServerMessage, s2c *codec.ServerToClientMessage, done chan *Call, ) *Call Register(serviceMethod string, f HandleFunc) error GetConfig() *Config GetNextSeq() uint32 GetUserSignature(username string) *UserSignature SetConfig(cfg *Config) SetServers(list []string) SetUserSignature(username string, sig *UserSignature) }
type HandleFunc ¶
type HandleFunc func( ctx context.Context, s2c *codec.ServerToClientMessage, ) (*codec.ClientToServerMessage, error)
type UserSignature ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.