Documentation ¶
Index ¶
Constants ¶
View Source
const ( SocketFilename = ".socket" // socket filename SCVersion = 1 // socket API version SCUserEnable = "userenable" // ID for SocketCommandUserEnable SCUserDisable = "userdisable" // ID for SocketCommandUserDisable )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SocketCommandID ¶
SocketCommandID identifies the command that follows.
type SocketCommandUserDisable ¶
type SocketCommandUserDisable struct {
Identity string `json:"identity"` // public identity
}
SocketCommandUserDisable attempts to disable a user. We require a user identity here in order to ensure uniqueness.
type SocketCommandUserDisableReply ¶
type SocketCommandUserDisableReply struct {
Error string `json:"error"`
}
SocketCommandUserDisableReply returns "" if the command was successful.
type SocketCommandUserEnable ¶
type SocketCommandUserEnable struct {
Identity string `json:"identity"` // public identity
}
SocketCommandUserEnable attempts to enable a user. We require a user identity here in order to ensure uniqueness.
type SocketCommandUserEnableReply ¶
type SocketCommandUserEnableReply struct {
Error string `json:"error"`
}
SocketCommandUserEnableReply returns "" if the command was successful.
Click to show internal directories.
Click to hide internal directories.