boltdb

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL