Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_haberdasher_haberdasher_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Hat ¶
type Hat struct { // The size of a hat should always be in inches. Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` // The color of a hat will never be 'invisible', but other than // that, anything is fair game. Color string `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"` // The name of a hat is it's type. Like, 'bowler', or something. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
A Hat is a piece of headwear made by a Haberdasher.
func (*Hat) Descriptor
deprecated
func (*Hat) ProtoMessage ¶
func (*Hat) ProtoMessage()
func (*Hat) ProtoReflect ¶
func (x *Hat) ProtoReflect() protoreflect.Message
type Size ¶
type Size struct { Inches int32 `protobuf:"varint,1,opt,name=inches,proto3" json:"inches,omitempty"` // contains filtered or unexported fields }
Size is passed when requesting a new hat to be made. It's always measured in inches.
func (*Size) Descriptor
deprecated
func (*Size) ProtoMessage ¶
func (*Size) ProtoMessage()
func (*Size) ProtoReflect ¶
func (x *Size) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.