storage

package
v0.0.0-...-48b9d42 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

Database simulates Customer repository implemented on top of an SQL Database

func NewDatabase

func NewDatabase(logger *zap.Logger, db *sqlx.DB) (*Database, error)

func (*Database) GetAccount

func (d *Database) GetAccount(ctx context.Context, id string) (*internal.Account, error)

func (*Database) GetIdentity

func (d *Database) GetIdentity(ctx context.Context, id string) (*identitypb.Identity, error)

Jump to

Keyboard shortcuts

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