postgres

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

func (*Account) Add

func (a *Account) Add(ctx context.Context, in *v1.Account) (*v1.Account, error)

func (*Account) Delete

func (a *Account) Delete(ctx context.Context, id string) error

func (*Account) Get

func (a *Account) Get(ctx context.Context, id string) (*v1.Account, error)

func (*Account) Init

func (a *Account) Init(ctx context.Context, db *db.Store) error

func (*Account) List

func (a *Account) List(ctx context.Context, filter interface{}) ([]*v1.Account, error)

func (*Account) Update

func (a *Account) Update(ctx context.Context, in *v1.Account) (*v1.Account, error)

type Tariff

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

func (*Tariff) Add

func (t *Tariff) Add(ctx context.Context, in *v1.Tariff) (*v1.Tariff, error)

func (*Tariff) Delete

func (t *Tariff) Delete(ctx context.Context, id string) error

func (*Tariff) Get

func (t *Tariff) Get(ctx context.Context, id string) (*v1.Tariff, error)

func (*Tariff) Init

func (t *Tariff) Init(ctx context.Context, db *db.Store) error

func (*Tariff) List

func (t *Tariff) List(ctx context.Context, filter interface{}) (*v1.Tariffs, error)

func (*Tariff) Update

func (t *Tariff) Update(ctx context.Context, in *v1.Tariff) (*v1.Tariff, error)

Jump to

Keyboard shortcuts

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