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 ¶
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 { Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"` Left *Tree `protobuf:"bytes,2,opt,name=Left" json:"Left,omitempty"` Right *Tree `protobuf:"bytes,3,opt,name=Right" json:"Right,omitempty"` }
func (*Tree) ProtoMessage ¶
func (*Tree) ProtoMessage()