user

package
Version: v0.0.0-...-0046f9d Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

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

User handles user data.

func New

func New(log *zap.Logger) *User

func (User) Activate

func (u User) Activate(ctx context.Context, id string) error

Activate activates user account

func (User) Auth

func (u User) Auth(
	ctx context.Context, username, email, password string) (bool, string, error)

Auth athenticates user.

func (*User) Disconnect

func (u *User) Disconnect()

Diconnect disconnects.

func (User) Register

func (u User) Register(
	ctx context.Context, main mainProto.Data, extra extraProto.Data) (string, string, error)

Register adds user into database.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL