Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrCodeChannelNotFound = srv.ErrCodeMax + 1 ErrCodeBadAuthPassword = iota ErrCodeNonActiveChannel = iota ErrCodeSessionNotFound = iota ErrCodeInvalidProductConf = iota )
Common error codes for session server.
View Source
const ( PathAuth = "/session/auth" PathStart = "/session/start" PathStop = "/session/stop" PathUpdate = "/session/update" PathProductConfig = "/product/config" )
Service API paths.
Variables ¶
View Source
var ( ErrChannelNotFound = &srv.Error{ Code: ErrCodeChannelNotFound, Message: "channel not found", } ErrBadAuthPassword = &srv.Error{ Code: ErrCodeBadAuthPassword, Message: "bad authentication password", } ErrNonActiveChannel = &srv.Error{ Code: ErrCodeNonActiveChannel, Message: "non-active channel", } ErrSessionNotFound = &srv.Error{ Code: ErrCodeSessionNotFound, Message: "session not found", } ErrInvalidProductConf = &srv.Error{ Code: ErrCodeInvalidProductConf, Message: "invalid product configuration", } )
Common session server errors.
Functions ¶
Types ¶
type ProductArgs ¶
ProductArgs is a set of product arguments.
type StartArgs ¶
type StartArgs struct { ClientID string `json:"clientId"` ClientIP string `json:"clientIp"` ClientPort uint16 `json:"clientPort"` }
StartArgs is a set of arguments for session starting.
type UpdateArgs ¶
type UpdateArgs = updateStopArgs
UpdateArgs is a set of arguments for session usage update.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.