bartender

package
v0.0.0-...-7fb827e Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_hayovanloon_bartender_v1_bartender_proto protoreflect.FileDescriptor

Functions

func RegisterBartenderServer

func RegisterBartenderServer(s *grpc.Server, srv BartenderServer)

Types

type BartenderClient

type BartenderClient interface {
	// Adds a new beer the collection.
	CreateBeer(ctx context.Context, in *CreateBeerRequest, opts ...grpc.CallOption) (*Beer, error)
	// Get a beer.
	GetBeer(ctx context.Context, in *GetBeerRequest, opts ...grpc.CallOption) (*Beer, error)
}

BartenderClient is the client API for Bartender service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewBartenderClient

func NewBartenderClient(cc grpc.ClientConnInterface) BartenderClient

type BartenderServer

type BartenderServer interface {
	// Adds a new beer the collection.
	CreateBeer(context.Context, *CreateBeerRequest) (*Beer, error)
	// Get a beer.
	GetBeer(context.Context, *GetBeerRequest) (*Beer, error)
	// contains filtered or unexported methods
}

BartenderServer is the server API for Bartender service. All implementations must embed UnimplementedBartenderServer for forward compatibility

type Beer

type Beer struct {

	// Name of the beer (type)
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to Packaging:
	//	*Beer_BottleCl
	//	*Beer_GlassCl
	//	*Beer_KegL
	Packaging isBeer_Packaging `protobuf_oneof:"packaging"`
	// contains filtered or unexported fields
}

The main resource

func (*Beer) Descriptor deprecated

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

Deprecated: Use Beer.ProtoReflect.Descriptor instead.

func (*Beer) GetBottleCl

func (x *Beer) GetBottleCl() int32

func (*Beer) GetGlassCl

func (x *Beer) GetGlassCl() int32

func (*Beer) GetKegL

func (x *Beer) GetKegL() int32

func (*Beer) GetName

func (x *Beer) GetName() string

func (*Beer) GetPackaging

func (m *Beer) GetPackaging() isBeer_Packaging

func (*Beer) ProtoMessage

func (*Beer) ProtoMessage()

func (*Beer) ProtoReflect

func (x *Beer) ProtoReflect() protoreflect.Message

func (*Beer) Reset

func (x *Beer) Reset()

func (*Beer) String

func (x *Beer) String() string

type Beer_BottleCl

type Beer_BottleCl struct {
	// Bottle size in centiliters
	BottleCl int32 `protobuf:"varint,10,opt,name=bottle_cl,json=bottleCl,proto3,oneof"`
}

type Beer_GlassCl

type Beer_GlassCl struct {
	// Glass size in centiliters
	GlassCl int32 `protobuf:"varint,11,opt,name=glass_cl,json=glassCl,proto3,oneof"`
}

type Beer_KegL

type Beer_KegL struct {
	// Keg size in liters
	KegL int32 `protobuf:"varint,12,opt,name=keg_l,json=kegL,proto3,oneof"`
}

type CreateBeerRequest

type CreateBeerRequest struct {
	Brand string `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	Beer  *Beer  `protobuf:"bytes,2,opt,name=beer,proto3" json:"beer,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateBeerRequest) Descriptor deprecated

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

Deprecated: Use CreateBeerRequest.ProtoReflect.Descriptor instead.

func (*CreateBeerRequest) GetBeer

func (x *CreateBeerRequest) GetBeer() *Beer

func (*CreateBeerRequest) GetBrand

func (x *CreateBeerRequest) GetBrand() string

func (*CreateBeerRequest) ProtoMessage

func (*CreateBeerRequest) ProtoMessage()

func (*CreateBeerRequest) ProtoReflect

func (x *CreateBeerRequest) ProtoReflect() protoreflect.Message

func (*CreateBeerRequest) Reset

func (x *CreateBeerRequest) Reset()

func (*CreateBeerRequest) String

func (x *CreateBeerRequest) String() string

type GetBeerRequest

type GetBeerRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Brand string `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBeerRequest) Descriptor deprecated

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

Deprecated: Use GetBeerRequest.ProtoReflect.Descriptor instead.

func (*GetBeerRequest) GetBrand

func (x *GetBeerRequest) GetBrand() string

func (*GetBeerRequest) GetName

func (x *GetBeerRequest) GetName() string

func (*GetBeerRequest) ProtoMessage

func (*GetBeerRequest) ProtoMessage()

func (*GetBeerRequest) ProtoReflect

func (x *GetBeerRequest) ProtoReflect() protoreflect.Message

func (*GetBeerRequest) Reset

func (x *GetBeerRequest) Reset()

func (*GetBeerRequest) String

func (x *GetBeerRequest) String() string

type UnimplementedBartenderServer

type UnimplementedBartenderServer struct {
}

UnimplementedBartenderServer must be embedded to have forward compatible implementations.

func (*UnimplementedBartenderServer) CreateBeer

func (*UnimplementedBartenderServer) GetBeer

Jump to

Keyboard shortcuts

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