Documentation ¶
Index ¶
- Constants
- type ActionsAddArgs
- type ActionsAddErrData
- type ActionsAddReply
- type ActionsDeleteArgs
- type ActionsDeleteErrData
- type ActionsDeleteReply
- type ActionsEditArgs
- type ActionsEditErrData
- type ActionsEditReply
- type ActionsGetTypesReply
- type Error
- type ServerPingArgs
- type ServerPingReply
- type ServerSettingsGetReply
- type UsersGetArgs
- type UsersGetReply
- type UsersMarkAliveArgs
- type UsersMarkAliveReply
- type UsersRegisterArgs
- type UsersRegisterReply
Constants ¶
View Source
const ( ErrorCodeEmpty int = iota ErrorCodeOther ErrorCodeEmptyArgs ErrorCodeInvalidArgs ErrorCodeWrongAuth ErrorCodeInternal int = -32603 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionsAddArgs ¶
type ActionsAddArgs struct { Login string `json:"login"` PasswordB64 string `json:"pass_b64"` NewActions []types.AutoAction `json:"new_actions"` }
type ActionsAddErrData ¶
type ActionsAddReply ¶
type ActionsAddReply struct {
ActionsAdded int `json:"added"`
}
type ActionsDeleteArgs ¶
type ActionsDeleteErrData ¶
type ActionsDeleteErrData struct {
InvalidIdxIdx int `json:"invalid_idx_idx"`
}
type ActionsDeleteReply ¶
type ActionsDeleteReply struct {
ActionsDeleted int `json:"deleted"`
}
type ActionsEditArgs ¶
type ActionsEditArgs struct { Login string `json:"login"` PasswordB64 string `json:"pass_b64"` ChangedActions map[int]types.AutoAction `json:"changed_actions"` }
type ActionsEditErrData ¶
type ActionsEditReply ¶
type ActionsEditReply struct {
ActionsEdited int `json:"edited"`
}
type ActionsGetTypesReply ¶
type ActionsGetTypesReply struct {
Types []execs.ExecutorType `json:"types"`
}
type Error ¶
type Error struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` }
Error type with some additions
type ServerPingArgs ¶
type ServerPingArgs struct {
Message string `json:"msg"`
}
type ServerPingReply ¶
type ServerSettingsGetReply ¶
type ServerSettingsGetReply struct {
RegistrationClosed bool `json:"register_closed"`
}
type UsersGetArgs ¶
type UsersGetReply ¶
type UsersMarkAliveArgs ¶
type UsersMarkAliveReply ¶
type UsersRegisterArgs ¶
type UsersRegisterReply ¶
type UsersRegisterReply struct {
UID string
}
Click to show internal directories.
Click to hide internal directories.