flavortown

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 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 NewPopulatedLineItem(r randyFlavortown, easy bool) *LineItem

func (*LineItem) Descriptor

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

func (*LineItem) Equal

func (this *LineItem) Equal(that interface{}) bool

func (*LineItem) GetCreatedAt

func (m *LineItem) GetCreatedAt() *types.Timestamp

func (*LineItem) GetDish

func (m *LineItem) GetDish() isLineItem_Dish

func (*LineItem) GetLunch

func (m *LineItem) GetLunch() *Lunch

func (*LineItem) GetNothing

func (m *LineItem) GetNothing() *Nothing

func (*LineItem) GetPriceCents

func (m *LineItem) GetPriceCents() uint32

func (*LineItem) GetQualityControl

func (m *LineItem) GetQualityControl() Quality

func (*LineItem) GetSides

func (m *LineItem) GetSides() *types.Permission

func (*LineItem) GetTastyDessert

func (m *LineItem) GetTastyDessert() *dessert.Dessert

func (*LineItem) GetUpdatedAt

func (m *LineItem) GetUpdatedAt() *types.Timestamp

func (*LineItem) Marshal

func (m *LineItem) Marshal() (dAtA []byte, err error)

func (*LineItem) MarshalTo

func (m *LineItem) MarshalTo(dAtA []byte) (int, error)

func (*LineItem) ProtoMessage

func (*LineItem) ProtoMessage()

func (*LineItem) Reset

func (m *LineItem) Reset()

func (*LineItem) Size

func (m *LineItem) Size() (n int)

func (*LineItem) String

func (m *LineItem) String() string

func (*LineItem) Unmarshal

func (m *LineItem) Unmarshal(dAtA []byte) error

func (*LineItem) XXX_DiscardUnknown

func (m *LineItem) XXX_DiscardUnknown()

func (*LineItem) XXX_Marshal

func (m *LineItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LineItem) XXX_Merge

func (m *LineItem) XXX_Merge(src proto.Message)

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_Size

func (m *LineItem) XXX_Size() int

func (*LineItem) XXX_Unmarshal

func (m *LineItem) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *LineItem_Lunch) MarshalTo(dAtA []byte) (int, error)

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 NewPopulatedLunch(r randyFlavortown, easy bool) *Lunch

func (*Lunch) Descriptor

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

func (*Lunch) Equal

func (this *Lunch) Equal(that interface{}) bool

func (*Lunch) GetDescription

func (m *Lunch) GetDescription() []byte

func (*Lunch) GetName

func (m *Lunch) GetName() string

func (*Lunch) GetTags

func (m *Lunch) GetTags() map[string]string

func (*Lunch) Marshal

func (m *Lunch) Marshal() (dAtA []byte, err error)

func (*Lunch) MarshalTo

func (m *Lunch) MarshalTo(dAtA []byte) (int, error)

func (*Lunch) ProtoMessage

func (*Lunch) ProtoMessage()

func (*Lunch) Reset

func (m *Lunch) Reset()

func (*Lunch) Size

func (m *Lunch) Size() (n int)

func (*Lunch) String

func (m *Lunch) String() string

func (*Lunch) Unmarshal

func (m *Lunch) Unmarshal(dAtA []byte) error

func (*Lunch) XXX_DiscardUnknown

func (m *Lunch) XXX_DiscardUnknown()

func (*Lunch) XXX_Marshal

func (m *Lunch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Lunch) XXX_Merge

func (m *Lunch) XXX_Merge(src proto.Message)

func (*Lunch) XXX_Size

func (m *Lunch) XXX_Size() int

func (*Lunch) XXX_Unmarshal

func (m *Lunch) XXX_Unmarshal(b []byte) error

type LunchGetter

type LunchGetter interface {
	GetLunch() *Lunch
}
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 NewPopulatedMenu(r randyFlavortown, easy bool) *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 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 NewPopulatedNothing(r randyFlavortown, easy bool) *Nothing

func (*Nothing) Descriptor

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

func (*Nothing) Equal

func (this *Nothing) Equal(that interface{}) bool

func (*Nothing) GetVoid

func (m *Nothing) GetVoid() string

func (*Nothing) Marshal

func (m *Nothing) Marshal() (dAtA []byte, err error)

func (*Nothing) MarshalTo

func (m *Nothing) MarshalTo(dAtA []byte) (int, error)

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) Size

func (m *Nothing) Size() (n int)

func (*Nothing) String

func (m *Nothing) String() string

func (*Nothing) Unmarshal

func (m *Nothing) Unmarshal(dAtA []byte) error

func (*Nothing) XXX_DiscardUnknown

func (m *Nothing) XXX_DiscardUnknown()

func (*Nothing) XXX_Marshal

func (m *Nothing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Nothing) XXX_Merge

func (m *Nothing) XXX_Merge(src proto.Message)

func (*Nothing) XXX_Size

func (m *Nothing) XXX_Size() int

func (*Nothing) XXX_Unmarshal

func (m *Nothing) XXX_Unmarshal(b []byte) error

type NothingGetter

type NothingGetter interface {
	GetNothing() *Nothing
}

type Quality

type Quality int32

quality of comment

const (
	Quality_EXPENSIVE Quality = 0
	Quality_FAIR      Quality = 1
	Quality_CHEAP     Quality = 2
)

func (Quality) EnumDescriptor

func (Quality) EnumDescriptor() ([]byte, []int)

func (Quality) String

func (x Quality) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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