repo

package
v0.0.0-...-96bd7ed Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNotConfirmed = 0
	StatusConfirmed    = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Link     string
	Note     string
	CreateAt time.Time
	NotifyAt *time.Time
}

type Repo

type Repo struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(fName string) (*Repo, error)
func (r *Repo) AddLink(token, link string) error

func (*Repo) AddNotify

func (r *Repo) AddNotify(token, duration, link string) error

func (*Repo) ConfirmUser

func (r *Repo) ConfirmUser(login, code string) (string, error)

func (*Repo) GetToken

func (r *Repo) GetToken(login string) (string, error)

type User

type User struct {
	Login    string
	Token    *string
	Code     *string
	Status   int
	CreateAt time.Time
}

Jump to

Keyboard shortcuts

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