memory

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemory

func NewInMemory() pool.Store

Types

type InMemoryStore

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

func (*InMemoryStore) CreateBet

func (s *InMemoryStore) CreateBet(_ context.Context, newBet *pool.Bet) error

func (*InMemoryStore) CreatePool

func (s *InMemoryStore) CreatePool(_ context.Context, newPool *pool.Pool) error

func (*InMemoryStore) GetBetByUser

func (s *InMemoryStore) GetBetByUser(_ context.Context, poolID *poolpb.PoolId, userID *commonpb.UserId) (*pool.Bet, error)

func (*InMemoryStore) GetBetsByPool

func (s *InMemoryStore) GetBetsByPool(_ context.Context, poolID *poolpb.PoolId) ([]*pool.Bet, error)

func (*InMemoryStore) GetPoolByID

func (s *InMemoryStore) GetPoolByID(_ context.Context, poolID *poolpb.PoolId) (*pool.Pool, error)

func (*InMemoryStore) ResolvePool

func (s *InMemoryStore) ResolvePool(_ context.Context, poolID *poolpb.PoolId, resolution bool, newSignature *commonpb.Signature) error

Jump to

Keyboard shortcuts

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