users

package
v0.1.4-alpha-deployment1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewUsersService

func NewUsersService(db *sqlx.DB) *Service

func (*Service) CreateUser

func (s *Service) CreateUser(ctx context.Context, did string) error

CreateUser creates new user in database with specified discord id

func (*Service) GetUser

func (s *Service) GetUser(ctx context.Context, did string) (*usersdb.User, error)

GetUser returns user by discord id

Jump to

Keyboard shortcuts

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