service

package
v0.0.0-...-3591828 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageService

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

func NewMesageService

func NewMesageService(db *pgxpool.Pool) MessageService

func (MessageService) AddMessage

func (ms MessageService) AddMessage(id string) error

func (MessageService) GetMessages

func (ms MessageService) GetMessages(id string) (int, error)

type UserService

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

func NewUserService

func NewUserService(db *pgxpool.Pool) UserService

func (UserService) ChangeUsername

func (us UserService) ChangeUsername(id string, username string) error

func (UserService) GetUser

func (us UserService) GetUser(id string) (entity.User, error)

func (UserService) LevelUp

func (us UserService) LevelUp(id string) error

func (UserService) UpdateRole

func (us UserService) UpdateRole(id string) error

Jump to

Keyboard shortcuts

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