repositories

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(gwFactory gateways.Factory) ports.RepositoriesFactory

func NewLoginRepository

func NewLoginRepository(gwFactory gateways.Factory) ports.LoginRepository

func NewPokerRepository

func NewPokerRepository(gwFactory gateways.Factory) ports.PokerRepository

Types

type PokerRepository

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

func (*PokerRepository) Create

func (r *PokerRepository) Create(ctx context.Context, loginID string) (room.ID, error)

func (*PokerRepository) Delete

func (r *PokerRepository) Delete(ctx context.Context, roomID room.ID) error

func (*PokerRepository) Enter

func (r *PokerRepository) Enter(ctx context.Context, roomID room.ID, loginID string) error

func (*PokerRepository) IsExistsInRoom

func (r *PokerRepository) IsExistsInRoom(ctx context.Context, roomID room.ID, loginID string) (bool, error)

func (*PokerRepository) Leave

func (r *PokerRepository) Leave(ctx context.Context, roomID room.ID, loginID string) error

func (*PokerRepository) ListMembers

func (r *PokerRepository) ListMembers(ctx context.Context, roomID room.ID) ([]string, error)

func (*PokerRepository) ReadStream

func (r *PokerRepository) ReadStream(ctx context.Context, roomID room.ID, messageID string) (string, *porker.PokerSituation, error)

func (*PokerRepository) ReadStreamLatest

func (r *PokerRepository) ReadStreamLatest(ctx context.Context, roomID room.ID) (string, *porker.PokerSituation, error)

func (*PokerRepository) Update

Jump to

Keyboard shortcuts

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