statestoregorm

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 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 Store

type Store struct {
	DB *gorm.DB
}

func (*Store) Get

func (*Store) GetKey

func (s *Store) GetKey(ctx context.Context, pid apiproject.ProjectID, name string, k *apivalues.Value) (*apivalues.Value, error)

func (*Store) Inc

func (s *Store) Inc(ctx context.Context, pid apiproject.ProjectID, name string, amount int64) (ret *apivalues.Value, err error)

func (*Store) Index

func (s *Store) Index(ctx context.Context, pid apiproject.ProjectID, name string, idx int) (*apivalues.Value, error)

func (*Store) Insert

func (s *Store) Insert(ctx context.Context, pid apiproject.ProjectID, name string, idx int, v *apivalues.Value) error

func (*Store) Keys

func (s *Store) Keys(ctx context.Context, pid apiproject.ProjectID, name string) (*apivalues.Value, error)

func (*Store) Length

func (s *Store) Length(ctx context.Context, pid apiproject.ProjectID, name string) (int, error)

func (*Store) List

func (s *Store) List(ctx context.Context, pid apiproject.ProjectID) ([]string, error)

func (*Store) Set

func (s *Store) Set(ctx context.Context, pid apiproject.ProjectID, name string, v *apivalues.Value) error

func (*Store) SetKey

func (s *Store) SetKey(ctx context.Context, pid apiproject.ProjectID, name string, k, v *apivalues.Value) error

func (*Store) Setup

func (s *Store) Setup(ctx context.Context) error

func (*Store) Take

func (s *Store) Take(ctx context.Context, pid apiproject.ProjectID, name string, idx, count int) (taken *apivalues.Value, err error)

func (*Store) Teardown

func (s *Store) Teardown(ctx context.Context) error

Jump to

Keyboard shortcuts

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