Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddActionsRequest ¶
type AddActionsRequest struct {
Actions []AutoAction
}
type AutoAction ¶
type AutoAction struct { // Custom type because I can^W^W of marshalling After helpers.Duration `json:"after" bson:"after"` Parameters map[string]execs.Param `json:"params" bson:"params"` Executor execs.ExecutorType `json:"exec_type" bson:"exec_type"` Executed bool `json:"executed" bson:"executed"` }
AutoAction is used to store actions to execute automaticly
type GetUserResponse ¶
type GetUserResponseSettings ¶
type GetUserResponseSettings struct {
Actions []AutoAction `json:"actions"`
}
type RegisterRequest ¶
Requests
type RegisterResponse ¶
type User ¶
type User struct { UUID primitive.ObjectID `json:"_id" bson:"_id"` Login string `json:"login" bson:"login"` PasswordHash string `json:"pass_hash" bson:"pass_hash"` LastBeat time.Time `json:"last_beat" bson:"last_beat"` Actions []AutoAction `json:"actions" bson:"actions"` }
User is used to store User data
Click to show internal directories.
Click to hide internal directories.