Documentation
¶
Overview ¶
Package flavortown is a generated protocol buffer package.
It is generated from these files:
flavortown.proto
It has these top-level messages:
Menu LineItem Lunch Nothing
Index ¶
- Variables
- type LineItem
- func (*LineItem) Descriptor() ([]byte, []int)
- func (this *LineItem) Equal(that interface{}) bool
- func (m *LineItem) GetCreatedAt() *opsee_types1.Timestamp
- func (m *LineItem) GetDish() isLineItem_Dish
- func (m *LineItem) GetLunch() *Lunch
- func (m *LineItem) GetNothing() *Nothing
- func (m *LineItem) GetSides() *opsee_types.Permission
- func (m *LineItem) GetTastyDessert() *flavortown_dessert.Dessert
- func (m *LineItem) GetUpdatedAt() *opsee_types1.Timestamp
- func (m *LineItem) Marshal() (data []byte, err error)
- func (m *LineItem) MarshalTo(data []byte) (int, error)
- func (*LineItem) ProtoMessage()
- func (m *LineItem) Reset()
- func (m *LineItem) Size() (n int)
- func (m *LineItem) String() string
- func (m *LineItem) Unmarshal(data []byte) error
- func (*LineItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type LineItemGetter
- type LineItem_Lunch
- type LineItem_TastyDessert
- type Lunch
- func (*Lunch) Descriptor() ([]byte, []int)
- func (this *Lunch) Equal(that interface{}) bool
- func (m *Lunch) GetTags() map[string]string
- func (m *Lunch) Marshal() (data []byte, err error)
- func (m *Lunch) MarshalTo(data []byte) (int, error)
- func (*Lunch) ProtoMessage()
- func (m *Lunch) Reset()
- func (m *Lunch) Size() (n int)
- func (m *Lunch) String() string
- func (m *Lunch) Unmarshal(data []byte) error
- type LunchGetter
- type Menu
- func (*Menu) Descriptor() ([]byte, []int)
- func (this *Menu) Equal(that interface{}) bool
- func (m *Menu) GetItems() []*LineItem
- func (m *Menu) Marshal() (data []byte, err error)
- func (m *Menu) MarshalTo(data []byte) (int, error)
- func (*Menu) ProtoMessage()
- func (m *Menu) Reset()
- func (m *Menu) Size() (n int)
- func (m *Menu) String() string
- func (m *Menu) Unmarshal(data []byte) error
- type MenuGetter
- type Nothing
- func (*Nothing) Descriptor() ([]byte, []int)
- func (this *Nothing) Equal(that interface{}) bool
- func (m *Nothing) Marshal() (data []byte, err error)
- func (m *Nothing) MarshalTo(data []byte) (int, error)
- func (*Nothing) ProtoMessage()
- func (m *Nothing) Reset()
- func (m *Nothing) Size() (n int)
- func (m *Nothing) String() string
- func (m *Nothing) Unmarshal(data []byte) error
- type NothingGetter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthFlavortown = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFlavortown = fmt.Errorf("proto: integer overflow") )
View Source
var GraphQLLineItemDishUnion *github_com_graphql_go_graphql.Union
View Source
var GraphQLLineItemType *github_com_graphql_go_graphql.Object
View Source
var GraphQLLunchType *github_com_graphql_go_graphql.Object
View Source
var GraphQLLunch_TagsEntryType = github_com_opsee_protobuf_plugin_graphql_scalars.Map
View Source
var GraphQLMenuType *github_com_graphql_go_graphql.Object
View Source
var GraphQLNothingType *github_com_graphql_go_graphql.Object
Functions ¶
This section is empty.
Types ¶
type LineItem ¶
type LineItem struct { // The menu dish, can either be lunch or dessert // // Types that are valid to be assigned to Dish: // *LineItem_Lunch // *LineItem_TastyDessert Dish isLineItem_Dish `protobuf_oneof:"dish"` // The price of the dish in cents PriceCents int32 `protobuf:"varint,2,opt,name=price_cents,json=priceCents,proto3" json:"price_cents,omitempty"` // A timestamp representing when the dish was added to the menu CreatedAt *opsee_types1.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` // A timestamp representing when the dish was updated UpdatedAt *opsee_types1.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"` // A list of nothing really Nothing *Nothing `protobuf:"bytes,5,opt,name=nothing" json:"nothing,omitempty"` // permission to eat? Sides *opsee_types.Permission `protobuf:"bytes,6,opt,name=sides" json:"sides,omitempty"` }
A line item representing a dish and price
func NewPopulatedLineItem ¶
func (*LineItem) Descriptor ¶
func (*LineItem) GetCreatedAt ¶
func (m *LineItem) GetCreatedAt() *opsee_types1.Timestamp
func (*LineItem) GetNothing ¶
func (*LineItem) GetSides ¶
func (m *LineItem) GetSides() *opsee_types.Permission
func (*LineItem) GetTastyDessert ¶
func (m *LineItem) GetTastyDessert() *flavortown_dessert.Dessert
func (*LineItem) GetUpdatedAt ¶
func (m *LineItem) GetUpdatedAt() *opsee_types1.Timestamp
func (*LineItem) ProtoMessage ¶
func (*LineItem) ProtoMessage()
type LineItemGetter ¶
type LineItemGetter interface {
GetLineItem() *LineItem
}
type LineItem_Lunch ¶
type LineItem_Lunch struct {
Lunch *Lunch `protobuf:"bytes,100,opt,name=lunch,oneof"`
}
func NewPopulatedLineItem_Lunch ¶
func NewPopulatedLineItem_Lunch(r randyFlavortown, easy bool) *LineItem_Lunch
func (*LineItem_Lunch) Equal ¶
func (this *LineItem_Lunch) Equal(that interface{}) bool
func (*LineItem_Lunch) GetLunch ¶
func (g *LineItem_Lunch) GetLunch() *Lunch
func (*LineItem_Lunch) Size ¶
func (m *LineItem_Lunch) Size() (n int)
type LineItem_TastyDessert ¶
type LineItem_TastyDessert struct {
TastyDessert *flavortown_dessert.Dessert `protobuf:"bytes,101,opt,name=tasty_dessert,json=tastyDessert,oneof"`
}
func NewPopulatedLineItem_TastyDessert ¶
func NewPopulatedLineItem_TastyDessert(r randyFlavortown, easy bool) *LineItem_TastyDessert
func (*LineItem_TastyDessert) Equal ¶
func (this *LineItem_TastyDessert) Equal(that interface{}) bool
func (*LineItem_TastyDessert) GetDessert ¶
func (g *LineItem_TastyDessert) GetDessert() *flavortown_dessert.Dessert
func (*LineItem_TastyDessert) MarshalTo ¶
func (m *LineItem_TastyDessert) MarshalTo(data []byte) (int, error)
func (*LineItem_TastyDessert) Size ¶
func (m *LineItem_TastyDessert) Size() (n int)
type Lunch ¶
type Lunch struct { // The name of the dish Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The description of the dish Description []byte `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // a wild map. lunch tags? i guess Tags map[string]string `` /* 142-byte string literal not displayed */ }
A delicious lunch dish on the menu
func NewPopulatedLunch ¶
func (*Lunch) Descriptor ¶
func (*Lunch) ProtoMessage ¶
func (*Lunch) ProtoMessage()
type LunchGetter ¶
type LunchGetter interface {
GetLunch() *Lunch
}
type Menu ¶
type Menu struct { // These dishes are crafted with the heart and soul of hometown favorites and infused with Guy’s big, daring flavors Items []*LineItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` }
The menu at Guy’s American Kitchen & Bar reflects his signature style of authentic and surprising flavors
func NewPopulatedMenu ¶
func (*Menu) Descriptor ¶
func (*Menu) ProtoMessage ¶
func (*Menu) ProtoMessage()
type MenuGetter ¶
type MenuGetter interface {
GetMenu() *Menu
}
type Nothing ¶
type Nothing struct { // the void Void string `protobuf:"bytes,1,opt,name=void,proto3" json:"void,omitempty"` }
confusion
func NewPopulatedNothing ¶
func (*Nothing) Descriptor ¶
func (*Nothing) ProtoMessage ¶
func (*Nothing) ProtoMessage()
type NothingGetter ¶
type NothingGetter interface {
GetNothing() *Nothing
}
Directories
¶
Path | Synopsis |
---|---|
Package flavortown_dessert is a generated protocol buffer package.
|
Package flavortown_dessert is a generated protocol buffer package. |
Package flavortown_flags is a generated protocol buffer package.
|
Package flavortown_flags is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.