Documentation
¶
Index ¶
- Variables
- type LineItem
- func (*LineItem) Descriptor() ([]byte, []int)
- func (this *LineItem) Equal(that interface{}) bool
- func (m *LineItem) GetCreatedAt() *types.Timestamp
- func (m *LineItem) GetDish() isLineItem_Dish
- func (m *LineItem) GetLunch() *Lunch
- func (m *LineItem) GetNothing() *Nothing
- func (m *LineItem) GetPriceCents() uint32
- func (m *LineItem) GetQualityControl() Quality
- func (m *LineItem) GetSides() *types.Permission
- func (m *LineItem) GetTastyDessert() *dessert.Dessert
- func (m *LineItem) GetUpdatedAt() *types.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 (m *LineItem) XXX_DiscardUnknown()
- func (m *LineItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LineItem) XXX_Merge(src proto.Message)
- func (*LineItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *LineItem) XXX_Size() int
- func (m *LineItem) XXX_Unmarshal(b []byte) 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) GetDescription() []byte
- func (m *Lunch) GetName() string
- 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
- func (m *Lunch) XXX_DiscardUnknown()
- func (m *Lunch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Lunch) XXX_Merge(src proto.Message)
- func (m *Lunch) XXX_Size() int
- func (m *Lunch) XXX_Unmarshal(b []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
- func (m *Menu) XXX_DiscardUnknown()
- func (m *Menu) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Menu) XXX_Merge(src proto.Message)
- func (m *Menu) XXX_Size() int
- func (m *Menu) XXX_Unmarshal(b []byte) error
- type MenuGetter
- type Nothing
- func (*Nothing) Descriptor() ([]byte, []int)
- func (this *Nothing) Equal(that interface{}) bool
- func (m *Nothing) GetVoid() string
- 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
- func (m *Nothing) XXX_DiscardUnknown()
- func (m *Nothing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Nothing) XXX_Merge(src proto.Message)
- func (m *Nothing) XXX_Size() int
- func (m *Nothing) XXX_Unmarshal(b []byte) error
- type NothingGetter
- type Quality
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
View Source
var GraphQLQualityEnum *github_com_graphql_go_graphql.Enum
View Source
var Quality_name = map[int32]string{
0: "EXPENSIVE",
1: "FAIR",
2: "CHEAP",
}
View Source
var Quality_value = map[string]int32{
"EXPENSIVE": 0,
"FAIR": 1,
"CHEAP": 2,
}
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 uint32 `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 *types.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // A timestamp representing when the dish was updated UpdatedAt *types.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // A list of nothing really Nothing *Nothing `protobuf:"bytes,5,opt,name=nothing,proto3" json:"nothing,omitempty"` // permission to eat? Sides *types.Permission `protobuf:"bytes,6,opt,name=sides,proto3" json:"sides,omitempty"` // quality of item QualityControl Quality `protobuf:"varint,7,opt,name=qualityControl,proto3,enum=flavortown.Quality" json:"qualityControl,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A line item representing a dish and price
func NewPopulatedLineItem ¶
func (*LineItem) Descriptor ¶
func (*LineItem) GetCreatedAt ¶
func (*LineItem) GetNothing ¶
func (*LineItem) GetPriceCents ¶
func (*LineItem) GetQualityControl ¶
func (*LineItem) GetSides ¶
func (m *LineItem) GetSides() *types.Permission
func (*LineItem) GetTastyDessert ¶
func (*LineItem) GetUpdatedAt ¶
func (*LineItem) ProtoMessage ¶
func (*LineItem) ProtoMessage()
func (*LineItem) XXX_DiscardUnknown ¶
func (m *LineItem) XXX_DiscardUnknown()
func (*LineItem) XXX_Marshal ¶
func (*LineItem) XXX_OneofFuncs ¶
func (*LineItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*LineItem) XXX_Unmarshal ¶
type LineItemGetter ¶
type LineItemGetter interface {
GetLineItem() *LineItem
}
type LineItem_Lunch ¶
type LineItem_Lunch struct {
Lunch *Lunch `protobuf:"bytes,100,opt,name=lunch,proto3,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 *dessert.Dessert `protobuf:"bytes,101,opt,name=tasty_dessert,json=tastyDessert,proto3,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() *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 `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A delicious lunch dish on the menu
func NewPopulatedLunch ¶
func (*Lunch) Descriptor ¶
func (*Lunch) GetDescription ¶
func (*Lunch) ProtoMessage ¶
func (*Lunch) ProtoMessage()
func (*Lunch) XXX_DiscardUnknown ¶
func (m *Lunch) XXX_DiscardUnknown()
func (*Lunch) XXX_Marshal ¶
func (*Lunch) XXX_Unmarshal ¶
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,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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()
func (*Menu) XXX_DiscardUnknown ¶
func (m *Menu) XXX_DiscardUnknown()
func (*Menu) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
confusion
func NewPopulatedNothing ¶
func (*Nothing) Descriptor ¶
func (*Nothing) ProtoMessage ¶
func (*Nothing) ProtoMessage()
func (*Nothing) XXX_DiscardUnknown ¶
func (m *Nothing) XXX_DiscardUnknown()
func (*Nothing) XXX_Marshal ¶
func (*Nothing) XXX_Unmarshal ¶
type NothingGetter ¶
type NothingGetter interface {
GetNothing() *Nothing
}
Click to show internal directories.
Click to hide internal directories.