repository

package
v0.0.0-...-fc4d9d5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewMongoDB

func NewMongoDB(ctx context.Context, cfg models.MongoConfig) (DB, error)

func (DB) GetAccount

func (r DB) GetAccount(ctx context.Context, id string) (models.EntireAccount, error)

func (DB) GetAccounts

func (r DB) GetAccounts(ctx context.Context) ([]models.Account, error)

func (DB) GetUser

func (r DB) GetUser(ctx context.Context, id string) (models.User, error)

Jump to

Keyboard shortcuts

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