Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenRepository ¶
type TokenRepository struct {
// contains filtered or unexported fields
}
func NewTokenRepository ¶
func NewTokenRepository(db *bolt.DB) *TokenRepository
NewTokenRepository creates a new token repository object
func (*TokenRepository) Get ¶
func (t *TokenRepository) Get(chatID int64, bucket repository.Bucket) (string, error)
Get gets the token by chatID
func (*TokenRepository) Save ¶
func (t *TokenRepository) Save(chatID int64, token string, bucket repository.Bucket) error
Save saves chatID and token in bucket
Click to show internal directories.
Click to hide internal directories.