lobby

package
v0.0.0-...-37f97d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthLobby        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLobby          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLobby = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type App

type App interface {
	Store
}

App layer for lobby domain.

type Filter

type Filter struct {
	ID gulid.ID
}

Filter object for lobby domain.

type L

type L struct {
	ID    github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,1,opt,name=ID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"ID"`
	Name  string                                `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Rooms map[string]room.R                     `` /* 141-byte string literal not displayed */
}

func NewPopulatedL

func NewPopulatedL(r randyLobby, easy bool) *L

func (*L) Descriptor

func (*L) Descriptor() ([]byte, []int)

func (*L) Equal

func (this *L) Equal(that interface{}) bool

func (*L) GetName

func (m *L) GetName() string

func (*L) GetRooms

func (m *L) GetRooms() map[string]room.R

func (*L) GoString

func (this *L) GoString() string

func (*L) Marshal

func (m *L) Marshal() (dAtA []byte, err error)

func (*L) MarshalTo

func (m *L) MarshalTo(dAtA []byte) (int, error)

func (*L) MarshalToSizedBuffer

func (m *L) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*L) ProtoMessage

func (*L) ProtoMessage()

func (*L) Reset

func (m *L) Reset()

func (*L) Size

func (m *L) Size() (n int)

func (*L) String

func (this *L) String() string

func (*L) Unmarshal

func (m *L) Unmarshal(dAtA []byte) error

func (*L) XXX_DiscardUnknown

func (m *L) XXX_DiscardUnknown()

func (*L) XXX_Marshal

func (m *L) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*L) XXX_Merge

func (m *L) XXX_Merge(src proto.Message)

func (*L) XXX_Size

func (m *L) XXX_Size() int

func (*L) XXX_Unmarshal

func (m *L) XXX_Unmarshal(b []byte) error

type Store

type Store interface {
	Upsert(context.Context, L) error
	Fetch(context.Context, Filter) (L, error)
	FetchAll(context.Context, chan<- L) error
	Delete(context.Context, Filter) error
}

Store layer for lobby domain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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