Documentation ¶
Overview ¶
Package serve is a generated protocol buffer package.
It is generated from these files:
serve.proto
It has these top-level messages:
Artist Song Album EndLess Tree
Index ¶
- Variables
- func RegisterLabelServer(s *grpc.Server, srv LabelServer)
- type Album
- type Artist
- type EndLess
- type Genre
- type Instrument
- type LabelClient
- type LabelServer
- type Song
- type Tree
- func (m *Tree) GetLeft() *Tree
- func (m *Tree) GetRight() *Tree
- func (m *Tree) GetStuff() isTree_Stuff
- func (m *Tree) GetValueNum() uint64
- func (m *Tree) GetValueString() string
- func (*Tree) ProtoMessage()
- func (m *Tree) Reset()
- func (m *Tree) String() string
- func (*Tree) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Tree_ValueNum
- type Tree_ValueString
Constants ¶
This section is empty.
Variables ¶
View Source
var Genre_name = map[int32]string{
0: "Pop",
1: "Rock",
2: "Jazz",
3: "NintendoCore",
4: "Indie",
5: "Punk",
6: "Dance",
}
View Source
var Genre_value = map[string]int32{
"Pop": 0,
"Rock": 1,
"Jazz": 2,
"NintendoCore": 3,
"Indie": 4,
"Punk": 5,
"Dance": 6,
}
View Source
var Instrument_name = map[int32]string{
0: "Voice",
1: "Guitar",
2: "Drum",
}
View Source
var Instrument_value = map[string]int32{
"Voice": 0,
"Guitar": 1,
"Drum": 2,
}
Functions ¶
func RegisterLabelServer ¶
func RegisterLabelServer(s *grpc.Server, srv LabelServer)
Types ¶
type Album ¶
type Album struct { // Untitled? Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Song []*Song `protobuf:"bytes,2,rep,name=Song" json:"Song,omitempty"` Genre Genre `protobuf:"varint,3,opt,name=Genre,proto3,enum=serve.Genre" json:"Genre,omitempty"` // 2015 Year string `protobuf:"bytes,4,opt,name=Year,proto3" json:"Year,omitempty"` // Uhm ja Producer []string `protobuf:"bytes,5,rep,name=Producer" json:"Producer,omitempty"` Mediocre bool `protobuf:"varint,6,opt,name=Mediocre,proto3" json:"Mediocre,omitempty"` Rated bool `protobuf:"varint,7,opt,name=Rated,proto3" json:"Rated,omitempty"` Epilogue string `protobuf:"bytes,8,opt,name=Epilogue,proto3" json:"Epilogue,omitempty"` Likes []bool `protobuf:"varint,9,rep,name=Likes" json:"Likes,omitempty"` }
func (*Album) ProtoMessage ¶
func (*Album) ProtoMessage()
type Artist ¶
type Artist struct { // Pick something original Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Role Instrument `protobuf:"varint,2,opt,name=Role,proto3,enum=serve.Instrument" json:"Role,omitempty"` }
func (*Artist) ProtoMessage ¶
func (*Artist) ProtoMessage()
type EndLess ¶
type EndLess struct {
Tree *Tree `protobuf:"bytes,1,opt,name=Tree" json:"Tree,omitempty"`
}
func (*EndLess) ProtoMessage ¶
func (*EndLess) ProtoMessage()
type Instrument ¶
type Instrument int32
const ( Instrument_Voice Instrument = 0 Instrument_Guitar Instrument = 1 Instrument_Drum Instrument = 2 )
func (Instrument) String ¶
func (x Instrument) String() string
type LabelClient ¶
type LabelClient interface { Produce(ctx context.Context, in *Album, opts ...grpc.CallOption) (*Album, error) Loop(ctx context.Context, in *EndLess, opts ...grpc.CallOption) (*EndLess, error) }
func NewLabelClient ¶
func NewLabelClient(cc *grpc.ClientConn) LabelClient
type LabelServer ¶
type Song ¶
type Song struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // 1,2,3,4... Track uint64 `protobuf:"varint,2,opt,name=Track,proto3" json:"Track,omitempty"` Duration float64 `protobuf:"fixed64,3,opt,name=Duration,proto3" json:"Duration,omitempty"` Composer []*Artist `protobuf:"bytes,4,rep,name=Composer" json:"Composer,omitempty"` }
func (*Song) GetComposer ¶
func (*Song) ProtoMessage ¶
func (*Song) ProtoMessage()
type Tree ¶
type Tree struct { // Types that are valid to be assigned to Stuff: // *Tree_ValueString // *Tree_ValueNum Stuff isTree_Stuff `protobuf_oneof:"stuff"` Left *Tree `protobuf:"bytes,2,opt,name=Left" json:"Left,omitempty"` Right *Tree `protobuf:"bytes,3,opt,name=Right" json:"Right,omitempty"` }
func (*Tree) GetValueNum ¶
func (*Tree) GetValueString ¶
func (*Tree) ProtoMessage ¶
func (*Tree) ProtoMessage()
type Tree_ValueNum ¶
type Tree_ValueNum struct {
ValueNum uint64 `protobuf:"varint,4,opt,name=ValueNum,proto3,oneof"`
}
type Tree_ValueString ¶
type Tree_ValueString struct {
ValueString string `protobuf:"bytes,1,opt,name=ValueString,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.