serve

package
Version: v0.0.0-...-a0fcb6e Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

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

func (m *Album) GetSong() []*Song

func (*Album) ProtoMessage

func (*Album) ProtoMessage()

func (*Album) Reset

func (m *Album) Reset()

func (*Album) String

func (m *Album) String() string

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

func (*Artist) Reset

func (m *Artist) Reset()

func (*Artist) String

func (m *Artist) String() string

type EndLess

type EndLess struct {
	Tree *Tree `protobuf:"bytes,1,opt,name=Tree" json:"Tree,omitempty"`
}

func (*EndLess) GetTree

func (m *EndLess) GetTree() *Tree

func (*EndLess) ProtoMessage

func (*EndLess) ProtoMessage()

func (*EndLess) Reset

func (m *EndLess) Reset()

func (*EndLess) String

func (m *EndLess) String() string

type Genre

type Genre int32
const (
	Genre_Pop          Genre = 0
	Genre_Rock         Genre = 1
	Genre_Jazz         Genre = 2
	Genre_NintendoCore Genre = 3
	Genre_Indie        Genre = 4
	Genre_Punk         Genre = 5
	Genre_Dance        Genre = 6
)

func (Genre) String

func (x Genre) String() string

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 LabelServer interface {
	Produce(context.Context, *Album) (*Album, error)
	Loop(context.Context, *EndLess) (*EndLess, error)
}

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 (m *Song) GetComposer() []*Artist

func (*Song) ProtoMessage

func (*Song) ProtoMessage()

func (*Song) Reset

func (m *Song) Reset()

func (*Song) String

func (m *Song) String() string

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

func (m *Tree) GetLeft() *Tree

func (*Tree) GetRight

func (m *Tree) GetRight() *Tree

func (*Tree) ProtoMessage

func (*Tree) ProtoMessage()

func (*Tree) Reset

func (m *Tree) Reset()

func (*Tree) String

func (m *Tree) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL