users

package
v0.0.0-...-fe3a24c Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db struct {
	// contains filtered or unexported fields
}

func New

func (*Db) ChangeLanguage

func (u *Db) ChangeLanguage(key, language string) error

func (*Db) GetOrCreate

func (u *Db) GetOrCreate(key string) (*User, error)

func (*Db) SetAddress

func (u *Db) SetAddress(key, address string) error

type User

type User struct {
	Data            map[string]string
	FirstContact    bool
	Language        string
	LastContactTime string
}

func (*User) IsNewUser

func (u *User) IsNewUser() bool

Jump to

Keyboard shortcuts

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