room

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRoom        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRoom          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRoom = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type App

type App interface {
	Store
}

App for room domain.

type Filter

type Filter struct {
	ID gulid.ID
}

Filter object for room domain.

type R

type R 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"`
	Password []byte                                `protobuf:"bytes,3,opt,name=Password,proto3" json:"Password,omitempty"`
	Owner    github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,4,opt,name=Owner,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"Owner"`
	WorldID  github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,5,opt,name=WorldID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"WorldID"`
}

func NewPopulatedR

func NewPopulatedR(r randyRoom, easy bool) *R

func (*R) Descriptor

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

func (*R) Equal

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

func (*R) GetName

func (m *R) GetName() string

func (*R) GetPassword

func (m *R) GetPassword() []byte

func (*R) GoString

func (this *R) GoString() string

func (*R) Marshal

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

func (*R) MarshalTo

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

func (*R) MarshalToSizedBuffer

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

func (*R) ProtoMessage

func (*R) ProtoMessage()

func (*R) Reset

func (m *R) Reset()

func (*R) Size

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

func (*R) String

func (this *R) String() string

func (*R) Unmarshal

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

func (*R) XXX_DiscardUnknown

func (m *R) XXX_DiscardUnknown()

func (*R) XXX_Marshal

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

func (*R) XXX_Merge

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

func (*R) XXX_Size

func (m *R) XXX_Size() int

func (*R) XXX_Unmarshal

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

type Store

type Store interface {
	Upsert(context.Context, R) error
	Fetch(context.Context, Filter) (R, error)
	Delete(context.Context, Filter) error
}

Store layer for room domain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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