store

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: GPL-2.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func (*Store) Create

func (s *Store) Create(ctx context.Context, accountID int32, input *client.ClientInput) (*client.Client, error)

func (*Store) DeleteByUUID

func (s *Store) DeleteByUUID(ctx context.Context, accountID int32, UUID string) error

func (*Store) FindByUUID

func (s *Store) FindByUUID(ctx context.Context, accountID int32, UUID string) (*client.Client, error)

func (*Store) FindMany

func (s *Store) FindMany(ctx context.Context, accountID int32) ([]*client.Client, error)

func (*Store) UpdateByUUID

func (s *Store) UpdateByUUID(ctx context.Context, accountID int32, UUID string, input *client.ClientInput) (*client.Client, error)

type Storer

type Storer interface {
	FindMany(ctx context.Context, accountID int32) ([]*client.Client, error)
	FindByUUID(ctx context.Context, accountID int32, UUID string) (*client.Client, error)
	Create(ctx context.Context, accountID int32, input *client.ClientInput) (*client.Client, error)
	UpdateByUUID(ctx context.Context, accountID int32, UUID string, input *client.ClientInput) (*client.Client, error)
	DeleteByUUID(ctx context.Context, accountID int32, UUID string) error
}

func New

func New(driver driver.Driver) Storer

Jump to

Keyboard shortcuts

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