Documentation
¶
Index ¶
- func NewInMemory() pool.Store
- type InMemoryStore
- func (s *InMemoryStore) ClosePool(_ context.Context, poolID *poolpb.PoolId, closedAt time.Time, ...) error
- func (s *InMemoryStore) CreateBet(_ context.Context, newBet *pool.Bet) error
- func (s *InMemoryStore) CreatePool(_ context.Context, newPool *pool.Pool) error
- func (s *InMemoryStore) GetBetByID(_ context.Context, betID *poolpb.BetId) (*pool.Bet, error)
- func (s *InMemoryStore) GetBetByUser(_ context.Context, poolID *poolpb.PoolId, userID *commonpb.UserId) (*pool.Bet, error)
- func (s *InMemoryStore) GetBetsByPool(_ context.Context, poolID *poolpb.PoolId) ([]*pool.Bet, error)
- func (s *InMemoryStore) GetMember(_ context.Context, poolID *poolpb.PoolId, userID *commonpb.UserId) (*pool.Member, error)
- func (s *InMemoryStore) GetPagedMembers(_ context.Context, userID *commonpb.UserId, ...) ([]*pool.Member, error)
- func (s *InMemoryStore) GetPoolByFundingDestination(_ context.Context, fundingDestination *commonpb.PublicKey) (*pool.Pool, error)
- func (s *InMemoryStore) GetPoolByID(_ context.Context, poolID *poolpb.PoolId) (*pool.Pool, error)
- func (s *InMemoryStore) MarkBetAsPaid(ctx context.Context, betId *poolpb.BetId) error
- func (s *InMemoryStore) ResolvePool(_ context.Context, poolID *poolpb.PoolId, resolution pool.Resolution, ...) error
- func (s *InMemoryStore) UpdateBetOutcome(_ context.Context, betId *poolpb.BetId, newOutcome bool, ...) error
- type MembersById
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemory ¶
Types ¶
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
func (*InMemoryStore) CreatePool ¶
func (*InMemoryStore) GetBetByID ¶ added in v1.8.11
func (*InMemoryStore) GetBetByUser ¶
func (*InMemoryStore) GetBetsByPool ¶
func (*InMemoryStore) GetPagedMembers ¶ added in v1.8.1
func (s *InMemoryStore) GetPagedMembers(_ context.Context, userID *commonpb.UserId, queryOptions ...database.QueryOption) ([]*pool.Member, error)
func (*InMemoryStore) GetPoolByFundingDestination ¶ added in v1.8.11
func (*InMemoryStore) GetPoolByID ¶
func (*InMemoryStore) MarkBetAsPaid ¶ added in v1.8.11
func (*InMemoryStore) ResolvePool ¶
func (s *InMemoryStore) ResolvePool(_ context.Context, poolID *poolpb.PoolId, resolution pool.Resolution, newSignature *commonpb.Signature) error
type MembersById ¶ added in v1.8.1
func (MembersById) Len ¶ added in v1.8.1
func (a MembersById) Len() int
func (MembersById) Less ¶ added in v1.8.1
func (a MembersById) Less(i, j int) bool
func (MembersById) Swap ¶ added in v1.8.1
func (a MembersById) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.