Documentation ¶
Index ¶
- type Chat
- func (c *Chat) GetCommandAdmin() commandscope.CommandScope
- func (c *Chat) GetCommandAll() commandscope.CommandScope
- func (c *Chat) GetID() int64
- func (c *Chat) GetLang() string
- func (c *Chat) Save(ctx context.Context) (err error)
- func (c *Chat) SetCommandAdmin(scope commandscope.CommandScope)
- func (c *Chat) SetCommandAll(scope commandscope.CommandScope)
- func (c *Chat) SetLang(lang string)
- type ChatRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct { ID int64 `bson:"_id,omitempty" json:"_id,omitempty"` Lang string `bson:"lang,omitempty" json:"lang,omitempty"` CommandAll string `bson:"all,omitempty" json:"all,omitempty"` CommandAdmin string `bson:"admin,omitempty" json:"admin,omitempty"` // contains filtered or unexported fields }
Chat implements chatrepo.Chat
func (*Chat) GetCommandAdmin ¶
func (c *Chat) GetCommandAdmin() commandscope.CommandScope
GetCommandAdmin implements chatrepo.Chat
func (*Chat) GetCommandAll ¶
func (c *Chat) GetCommandAll() commandscope.CommandScope
GetCommandAll implements chatrepo.Chat
func (*Chat) SetCommandAdmin ¶
func (c *Chat) SetCommandAdmin(scope commandscope.CommandScope)
SetCommandAdmin implements chatrepo.Chat
func (*Chat) SetCommandAll ¶
func (c *Chat) SetCommandAll(scope commandscope.CommandScope)
SetCommandAll implements chatrepo.Chat
type ChatRepo ¶
type ChatRepo struct {
// contains filtered or unexported fields
}
ChatRepo implements chatrepo.ChatRepo
func NewChatRepo ¶
func NewChatRepo(collection *mongo.Collection) (repo *ChatRepo)
NewChatRepo initialize chatrepo
Click to show internal directories.
Click to hide internal directories.