internal

package
v0.0.0-...-78a6345 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExists = errors.New("not exist")
)

Functions

This section is empty.

Types

type StaticStorage

type StaticStorage struct {
	*Storage
	// contains filtered or unexported fields
}

func NewStaticStorage

func NewStaticStorage(s *Storage) (*StaticStorage, error)

func (*StaticStorage) GetUserByUsername

func (s *StaticStorage) GetUserByUsername(username string) (*pb.User, error)

type Storage

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

func NewMysqlStorage

func NewMysqlStorage(dsn string) (*Storage, error)

func NewSqlite3Storage

func NewSqlite3Storage(path string) (*Storage, error)

func (*Storage) AddUser

func (s *Storage) AddUser(user *pb.User) error

func (*Storage) DeleteUser

func (s *Storage) DeleteUser(user *pb.User) error

func (*Storage) GetUserByUsername

func (s *Storage) GetUserByUsername(username string) (*pb.User, error)

Jump to

Keyboard shortcuts

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