datastores

package
v0.0.0-...-5bbae15 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Info  = log.New(os.Stdout, "INFO: ", 0)
	Warn  = log.New(os.Stdout, "WARNING: ", 0)
	Error = log.New(os.Stdout, "ERROR: ", 0)
)

Functions

This section is empty.

Types

type Datastore

type Datastore interface {
	FindProfilesById(userId ...uint64) ([]*proto.Profile, error)
	FindRosterByType(rosterType proto.RosterType) (*proto.Roster, error)
	FindProfileByKeycloakID(keycloakId string) (*proto.Profile, error)
}

type Mysql

type Mysql struct {
	Db *gorm.DB
}

func (Mysql) FindProfileByKeycloakID

func (ds Mysql) FindProfileByKeycloakID(keycloakId string) (*proto.Profile, error)

func (Mysql) FindProfilesById

func (ds Mysql) FindProfilesById(userIds ...uint64) ([]*proto.Profile, error)

func (Mysql) FindRosterByType

func (ds Mysql) FindRosterByType(rosterType proto.RosterType) (*proto.Roster, error)

Jump to

Keyboard shortcuts

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