ports

package
v1.0.0-beta11 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginRepository

type LoginRepository interface {
	FindByID(ctx context.Context, loginID string) (*porker.Login, error)
	NewLogin(ctx context.Context, loginID string) (*porker.Login, error)
	ReLogin(ctx context.Context, login *porker.Login) error
	Logout(ctx context.Context, loginID string) error
}

type PokerListener

type PokerListener interface {
	Listen(ctx context.Context) (*porker.PokerSituation, error)
}

type PokerRepository

type PokerRepository interface {
	Create(ctx context.Context, loginID string) (room.ID, error)
	Update(ctx context.Context, ps *porker.PokerSituation) error
	Enter(ctx context.Context, roomID room.ID, loginID string) error
	Leave(ctx context.Context, roomID room.ID, loginID string) error
	ReadStreamLatest(ctx context.Context, roomID room.ID) (string, *porker.PokerSituation, error)
	ReadStream(ctx context.Context, roomID room.ID, messageID string) (string, *porker.PokerSituation, error)
	ListMembers(ctx context.Context, roomID room.ID) ([]string, error)
	IsExistsInRoom(ctx context.Context, roomID room.ID, loginID string) (bool, error)
	Delete(ctx context.Context, roomID room.ID) error
}

type RepositoriesFactory

type RepositoriesFactory interface {
	LoginRepository() LoginRepository
	PokerRepository() PokerRepository
}

Jump to

Keyboard shortcuts

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