Versions in this module Expand all Collapse all v0 v0.3.1 May 18, 2022 Changes in this version + type DeckClosed struct + Id string + Remaining uint32 + Shuffled bool + func DomainDeckToDeckClosed(d *deck.Deck) *DeckClosed + func (*DeckClosed) Descriptor() ([]byte, []int) + func (*DeckClosed) ProtoMessage() + func (x *DeckClosed) GetId() string + func (x *DeckClosed) GetRemaining() uint32 + func (x *DeckClosed) GetShuffled() bool + func (x *DeckClosed) ProtoReflect() protoreflect.Message + func (x *DeckClosed) Reset() + func (x *DeckClosed) String() string + type DeckOpened struct + Cards []*Card + Id string + Remaining uint32 + Shuffled bool + func DomainDeckToDeckOpened(d *deck.Deck) *DeckOpened + func (*DeckOpened) Descriptor() ([]byte, []int) + func (*DeckOpened) ProtoMessage() + func (x *DeckOpened) GetCards() []*Card + func (x *DeckOpened) GetId() string + func (x *DeckOpened) GetRemaining() uint32 + func (x *DeckOpened) GetShuffled() bool + func (x *DeckOpened) ProtoReflect() protoreflect.Message + func (x *DeckOpened) Reset() + func (x *DeckOpened) String() string v0.3.0 May 18, 2022 Changes in this version + var DeckService_ServiceDesc = grpc.ServiceDesc + var File_grpc_deck_proto protoreflect.FileDescriptor + var File_grpc_deck_service_proto protoreflect.FileDescriptor + func RegisterDeckServiceServer(s grpc.ServiceRegistrar, srv DeckServiceServer) + type Card struct + Code string + Suit string + Value string + func (*Card) Descriptor() ([]byte, []int) + func (*Card) ProtoMessage() + func (x *Card) GetCode() string + func (x *Card) GetSuit() string + func (x *Card) GetValue() string + func (x *Card) ProtoReflect() protoreflect.Message + func (x *Card) Reset() + func (x *Card) String() string + type Cards struct + Cards []*Card + func DomainCardsToCards(dc []card.Card) *Cards + func (*Cards) Descriptor() ([]byte, []int) + func (*Cards) ProtoMessage() + func (x *Cards) GetCards() []*Card + func (x *Cards) ProtoReflect() protoreflect.Message + func (x *Cards) Reset() + func (x *Cards) String() string + type CreateDeckRequest struct + Codes []string + Comp *string + func (*CreateDeckRequest) Descriptor() ([]byte, []int) + func (*CreateDeckRequest) ProtoMessage() + func (x *CreateDeckRequest) GetCodes() []string + func (x *CreateDeckRequest) GetComp() string + func (x *CreateDeckRequest) ProtoReflect() protoreflect.Message + func (x *CreateDeckRequest) Reset() + func (x *CreateDeckRequest) String() string + type CreateDeckResponse struct + Deck *Deck + func (*CreateDeckResponse) Descriptor() ([]byte, []int) + func (*CreateDeckResponse) ProtoMessage() + func (x *CreateDeckResponse) GetDeck() *Deck + func (x *CreateDeckResponse) ProtoReflect() protoreflect.Message + func (x *CreateDeckResponse) Reset() + func (x *CreateDeckResponse) String() string + type Deck struct + Cards []*Card + Id string + Remaining int32 + Shuffled bool + func DomainDeckToDeck(d *deck.Deck) *Deck + func (*Deck) Descriptor() ([]byte, []int) + func (*Deck) ProtoMessage() + func (x *Deck) GetCards() []*Card + func (x *Deck) GetId() string + func (x *Deck) GetRemaining() int32 + func (x *Deck) GetShuffled() bool + func (x *Deck) ProtoReflect() protoreflect.Message + func (x *Deck) Reset() + func (x *Deck) String() string + type DeckService struct + func NewDeckService(log *logger.Logger, repo repo.Repository) *DeckService + func (s *DeckService) CreateDeck(ctx context.Context, req *CreateDeckRequest) (*CreateDeckResponse, error) + func (s *DeckService) DrawCards(ctx context.Context, req *DrawCardsRequest) (*DrawCardsResponse, error) + func (s *DeckService) OpenDeck(ctx context.Context, req *OpenDeckRequest) (*OpenDeckResponse, error) + func (s *DeckService) ShuffleDeck(ctx context.Context, req *ShuffleDeckRequest) (*ShuffleDeckResponse, error) + type DeckServiceClient interface + CreateDeck func(ctx context.Context, in *CreateDeckRequest, opts ...grpc.CallOption) (*CreateDeckResponse, error) + DrawCards func(ctx context.Context, in *DrawCardsRequest, opts ...grpc.CallOption) (*DrawCardsResponse, error) + OpenDeck func(ctx context.Context, in *OpenDeckRequest, opts ...grpc.CallOption) (*OpenDeckResponse, error) + ShuffleDeck func(ctx context.Context, in *ShuffleDeckRequest, opts ...grpc.CallOption) (*ShuffleDeckResponse, error) + func NewDeckServiceClient(cc grpc.ClientConnInterface) DeckServiceClient + type DeckServiceServer interface + CreateDeck func(context.Context, *CreateDeckRequest) (*CreateDeckResponse, error) + DrawCards func(context.Context, *DrawCardsRequest) (*DrawCardsResponse, error) + OpenDeck func(context.Context, *OpenDeckRequest) (*OpenDeckResponse, error) + ShuffleDeck func(context.Context, *ShuffleDeckRequest) (*ShuffleDeckResponse, error) + type DrawCardsRequest struct + Id string + Num int32 + func (*DrawCardsRequest) Descriptor() ([]byte, []int) + func (*DrawCardsRequest) ProtoMessage() + func (x *DrawCardsRequest) GetId() string + func (x *DrawCardsRequest) GetNum() int32 + func (x *DrawCardsRequest) ProtoReflect() protoreflect.Message + func (x *DrawCardsRequest) Reset() + func (x *DrawCardsRequest) String() string + type DrawCardsResponse struct + Cards []*Card + func (*DrawCardsResponse) Descriptor() ([]byte, []int) + func (*DrawCardsResponse) ProtoMessage() + func (x *DrawCardsResponse) GetCards() []*Card + func (x *DrawCardsResponse) ProtoReflect() protoreflect.Message + func (x *DrawCardsResponse) Reset() + func (x *DrawCardsResponse) String() string + type OpenDeckRequest struct + Id string + func (*OpenDeckRequest) Descriptor() ([]byte, []int) + func (*OpenDeckRequest) ProtoMessage() + func (x *OpenDeckRequest) GetId() string + func (x *OpenDeckRequest) ProtoReflect() protoreflect.Message + func (x *OpenDeckRequest) Reset() + func (x *OpenDeckRequest) String() string + type OpenDeckResponse struct + Deck *Deck + func (*OpenDeckResponse) Descriptor() ([]byte, []int) + func (*OpenDeckResponse) ProtoMessage() + func (x *OpenDeckResponse) GetDeck() *Deck + func (x *OpenDeckResponse) ProtoReflect() protoreflect.Message + func (x *OpenDeckResponse) Reset() + func (x *OpenDeckResponse) String() string + type Server struct + func NewServer(host string, port int, log *logger.Logger, repo repo.Repository) *Server + func (s *Server) Start() error + func (s *Server) Stop() + type ShuffleDeckRequest struct + Id string + func (*ShuffleDeckRequest) Descriptor() ([]byte, []int) + func (*ShuffleDeckRequest) ProtoMessage() + func (x *ShuffleDeckRequest) GetId() string + func (x *ShuffleDeckRequest) ProtoReflect() protoreflect.Message + func (x *ShuffleDeckRequest) Reset() + func (x *ShuffleDeckRequest) String() string + type ShuffleDeckResponse struct + Message string + func (*ShuffleDeckResponse) Descriptor() ([]byte, []int) + func (*ShuffleDeckResponse) ProtoMessage() + func (x *ShuffleDeckResponse) GetMessage() string + func (x *ShuffleDeckResponse) ProtoReflect() protoreflect.Message + func (x *ShuffleDeckResponse) Reset() + func (x *ShuffleDeckResponse) String() string + type UnimplementedDeckServiceServer struct + func (UnimplementedDeckServiceServer) CreateDeck(context.Context, *CreateDeckRequest) (*CreateDeckResponse, error) + func (UnimplementedDeckServiceServer) DrawCards(context.Context, *DrawCardsRequest) (*DrawCardsResponse, error) + func (UnimplementedDeckServiceServer) OpenDeck(context.Context, *OpenDeckRequest) (*OpenDeckResponse, error) + func (UnimplementedDeckServiceServer) ShuffleDeck(context.Context, *ShuffleDeckRequest) (*ShuffleDeckResponse, error) + type UnsafeDeckServiceServer interface