Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandStatus ¶
type CommandStatus int
var ( StatusCommandActive CommandStatus StatusCommandDel CommandStatus = 1 )
type Component ¶
type Component struct { Id int64 `json:"id"` Data *Data `json:"data"` Keyboard *Keyboard `json:"keyboard"` Commands *Commands `json:"commands"` NextStepId *int64 `json:"nextStepId"` IsMain bool `json:"isMain"` }
func (*Component) MarshalBinary ¶
Encode component struct to binary format (for redis)
func (*Component) UnmarshalBinary ¶
Decode component from binary format to struct (fo redis)
type ComponentData ¶
type ComponentData struct { Type components.ComponentType `json:"type"` Data []byte `json:"data"` }
func (*ComponentData) Component ¶
func (cd *ComponentData) Component() (components.Component, error)
type ComponentStatus ¶
type ComponentStatus int
var ( StatusComponentActive ComponentStatus StatusComponentDel ComponentStatus = 1 )
type User ¶
type User struct { Id int64 `json:"id"` TgId int64 `json:"tgId"` FirstName *string `json:"firstName"` LastName *string `json:"lastName"` Username *string `json:"username"` StepID Context *context.Context `json:"context"` Status UserStatus `json:"-"` }
func (*User) MarshalBinary ¶
Encode component struct to binary format (for redis)
func (*User) UnmarshalBinary ¶
Decode component from binary format to struct (fo redis)
Click to show internal directories.
Click to hide internal directories.