Documentation ¶
Index ¶
- type Color
- func (*Color) Descriptor() ([]byte, []int)
- func (m *Color) GetBlue() int32
- func (m *Color) GetGreen() int32
- func (m *Color) GetRed() int32
- func (*Color) ProtoMessage()
- func (m *Color) Reset()
- func (m *Color) String() string
- func (m *Color) XXX_DiscardUnknown()
- func (m *Color) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Color) XXX_Merge(src proto.Message)
- func (m *Color) XXX_Size() int
- func (m *Color) XXX_Unmarshal(b []byte) error
- type Hat
- func (*Hat) Descriptor() ([]byte, []int)
- func (m *Hat) GetAvailableSizes() []*Size
- func (m *Hat) GetColor() string
- func (m *Hat) GetCreatedOn() *timestamp.Timestamp
- func (m *Hat) GetDictionary() map[string]int64
- func (m *Hat) GetDictionaryWithMessage() map[string]*Size
- func (m *Hat) GetName() string
- func (m *Hat) GetRgbColor() *Color
- func (m *Hat) GetRoles() []int32
- func (m *Hat) GetSize() int32
- func (*Hat) ProtoMessage()
- func (m *Hat) Reset()
- func (m *Hat) String() string
- func (m *Hat) XXX_DiscardUnknown()
- func (m *Hat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Hat) XXX_Merge(src proto.Message)
- func (m *Hat) XXX_Size() int
- func (m *Hat) XXX_Unmarshal(b []byte) error
- type Receipt
- func (*Receipt) Descriptor() ([]byte, []int)
- func (m *Receipt) GetTotal() float64
- func (*Receipt) ProtoMessage()
- func (m *Receipt) Reset()
- func (m *Receipt) String() string
- func (m *Receipt) XXX_DiscardUnknown()
- func (m *Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Receipt) XXX_Merge(src proto.Message)
- func (m *Receipt) XXX_Size() int
- func (m *Receipt) XXX_Unmarshal(b []byte) error
- type Size
- func (*Size) Descriptor() ([]byte, []int)
- func (m *Size) GetInches() int32
- func (*Size) ProtoMessage()
- func (m *Size) Reset()
- func (m *Size) String() string
- func (m *Size) XXX_DiscardUnknown()
- func (m *Size) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Size) XXX_Merge(src proto.Message)
- func (m *Size) XXX_Size() int
- func (m *Size) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color struct { Red int32 `protobuf:"varint,1,opt,name=red,proto3" json:"red,omitempty"` Green int32 `protobuf:"varint,2,opt,name=green,proto3" json:"green,omitempty"` Blue int32 `protobuf:"varint,3,opt,name=blue,proto3" json:"blue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Color) Descriptor ¶
func (*Color) ProtoMessage ¶
func (*Color) ProtoMessage()
func (*Color) XXX_DiscardUnknown ¶
func (m *Color) XXX_DiscardUnknown()
func (*Color) XXX_Marshal ¶
func (*Color) XXX_Unmarshal ¶
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"` CreatedOn *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"` RgbColor *Color `protobuf:"bytes,5,opt,name=rgbColor,proto3" json:"rgbColor,omitempty"` AvailableSizes []*Size `protobuf:"bytes,6,rep,name=availableSizes,proto3" json:"availableSizes,omitempty"` Roles []int32 `protobuf:"varint,7,rep,packed,name=roles,proto3" json:"roles,omitempty"` Dictionary map[string]int64 `` /* 162-byte string literal not displayed */ DictionaryWithMessage map[string]*Size `` /* 183-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Hat is a piece of headwear made by a Haberdasher.
func (*Hat) Descriptor ¶
func (*Hat) GetAvailableSizes ¶
func (*Hat) GetCreatedOn ¶
func (*Hat) GetDictionary ¶
func (*Hat) GetDictionaryWithMessage ¶
func (*Hat) GetRgbColor ¶
func (*Hat) ProtoMessage ¶
func (*Hat) ProtoMessage()
func (*Hat) XXX_DiscardUnknown ¶
func (m *Hat) XXX_DiscardUnknown()
func (*Hat) XXX_Unmarshal ¶
type Receipt ¶
type Receipt struct { Total float64 `protobuf:"fixed64,1,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Receipt) Descriptor ¶
func (*Receipt) ProtoMessage ¶
func (*Receipt) ProtoMessage()
func (*Receipt) XXX_DiscardUnknown ¶
func (m *Receipt) XXX_DiscardUnknown()
func (*Receipt) XXX_Marshal ¶
func (*Receipt) XXX_Unmarshal ¶
type Size ¶
type Size struct { Inches int32 `protobuf:"varint,1,opt,name=inches,proto3" json:"inches,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Size is passed when requesting a new hat to be made. It's always measured in inches.
func (*Size) Descriptor ¶
func (*Size) ProtoMessage ¶
func (*Size) ProtoMessage()
func (*Size) XXX_DiscardUnknown ¶
func (m *Size) XXX_DiscardUnknown()
func (*Size) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.