v1

package
v0.0.0-...-6152dd9 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AlbumService_List_FullMethodName   = "/jukebox.AlbumService/List"
	AlbumService_Create_FullMethodName = "/jukebox.AlbumService/Create"
	AlbumService_Get_FullMethodName    = "/jukebox.AlbumService/Get"
	AlbumService_Update_FullMethodName = "/jukebox.AlbumService/Update"
	AlbumService_Delete_FullMethodName = "/jukebox.AlbumService/Delete"
)
View Source
const (
	ArtistService_List_FullMethodName   = "/jukebox.ArtistService/List"
	ArtistService_Create_FullMethodName = "/jukebox.ArtistService/Create"
	ArtistService_Get_FullMethodName    = "/jukebox.ArtistService/Get"
	ArtistService_Update_FullMethodName = "/jukebox.ArtistService/Update"
	ArtistService_Delete_FullMethodName = "/jukebox.ArtistService/Delete"
)
View Source
const (
	PlaylistService_List_FullMethodName   = "/jukebox.PlaylistService/List"
	PlaylistService_Create_FullMethodName = "/jukebox.PlaylistService/Create"
	PlaylistService_Get_FullMethodName    = "/jukebox.PlaylistService/Get"
	PlaylistService_Update_FullMethodName = "/jukebox.PlaylistService/Update"
	PlaylistService_Delete_FullMethodName = "/jukebox.PlaylistService/Delete"
)
View Source
const (
	SongService_List_FullMethodName   = "/jukebox.SongService/List"
	SongService_Create_FullMethodName = "/jukebox.SongService/Create"
	SongService_Get_FullMethodName    = "/jukebox.SongService/Get"
	SongService_Update_FullMethodName = "/jukebox.SongService/Update"
	SongService_Delete_FullMethodName = "/jukebox.SongService/Delete"
)
View Source
const (
	ReceiverService_List_FullMethodName         = "/jukebox.ReceiverService/List"
	ReceiverService_Create_FullMethodName       = "/jukebox.ReceiverService/Create"
	ReceiverService_Get_FullMethodName          = "/jukebox.ReceiverService/Get"
	ReceiverService_Update_FullMethodName       = "/jukebox.ReceiverService/Update"
	ReceiverService_Delete_FullMethodName       = "/jukebox.ReceiverService/Delete"
	ReceiverService_Play_FullMethodName         = "/jukebox.ReceiverService/Play"
	ReceiverService_Stop_FullMethodName         = "/jukebox.ReceiverService/Stop"
	ReceiverService_ReceiverChat_FullMethodName = "/jukebox.ReceiverService/ReceiverChat"
)

Variables

View Source
var (
	Format_name = map[int32]string{
		0: "FORMAT_UNSET",
		1: "JUKEBOX_S16",
	}
	Format_value = map[string]int32{
		"FORMAT_UNSET": 0,
		"JUKEBOX_S16":  1,
	}
)

Enum value maps for Format.

View Source
var AlbumService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "jukebox.AlbumService",
	HandlerType: (*AlbumServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _AlbumService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _AlbumService_Create_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _AlbumService_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _AlbumService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _AlbumService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/jukebox.proto",
}

AlbumService_ServiceDesc is the grpc.ServiceDesc for AlbumService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ArtistService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "jukebox.ArtistService",
	HandlerType: (*ArtistServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _ArtistService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _ArtistService_Create_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _ArtistService_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ArtistService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _ArtistService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/jukebox.proto",
}

ArtistService_ServiceDesc is the grpc.ServiceDesc for ArtistService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_v1_jukebox_proto protoreflect.FileDescriptor
View Source
var PlaylistService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "jukebox.PlaylistService",
	HandlerType: (*PlaylistServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _PlaylistService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _PlaylistService_Create_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _PlaylistService_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _PlaylistService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _PlaylistService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/jukebox.proto",
}

PlaylistService_ServiceDesc is the grpc.ServiceDesc for PlaylistService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ReceiverService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "jukebox.ReceiverService",
	HandlerType: (*ReceiverServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _ReceiverService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _ReceiverService_Create_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _ReceiverService_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ReceiverService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _ReceiverService_Delete_Handler,
		},
		{
			MethodName: "Play",
			Handler:    _ReceiverService_Play_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _ReceiverService_Stop_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ReceiverChat",
			Handler:       _ReceiverService_ReceiverChat_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/v1/jukebox.proto",
}

ReceiverService_ServiceDesc is the grpc.ServiceDesc for ReceiverService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var SongService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "jukebox.SongService",
	HandlerType: (*SongServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _SongService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _SongService_Create_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _SongService_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _SongService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _SongService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/jukebox.proto",
}

SongService_ServiceDesc is the grpc.ServiceDesc for SongService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAlbumServiceHandler

func RegisterAlbumServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAlbumServiceHandler registers the http handlers for service AlbumService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAlbumServiceHandlerClient

func RegisterAlbumServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlbumServiceClient) error

RegisterAlbumServiceHandlerClient registers the http handlers for service AlbumService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AlbumServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AlbumServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AlbumServiceClient" to call the correct interceptors.

func RegisterAlbumServiceHandlerFromEndpoint

func RegisterAlbumServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAlbumServiceHandlerFromEndpoint is same as RegisterAlbumServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAlbumServiceHandlerServer

func RegisterAlbumServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlbumServiceServer) error

RegisterAlbumServiceHandlerServer registers the http handlers for service AlbumService to "mux". UnaryRPC :call AlbumServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAlbumServiceHandlerFromEndpoint instead.

func RegisterAlbumServiceServer

func RegisterAlbumServiceServer(s grpc.ServiceRegistrar, srv AlbumServiceServer)

func RegisterArtistServiceHandler

func RegisterArtistServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterArtistServiceHandler registers the http handlers for service ArtistService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterArtistServiceHandlerClient

func RegisterArtistServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtistServiceClient) error

RegisterArtistServiceHandlerClient registers the http handlers for service ArtistService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArtistServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArtistServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ArtistServiceClient" to call the correct interceptors.

func RegisterArtistServiceHandlerFromEndpoint

func RegisterArtistServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterArtistServiceHandlerFromEndpoint is same as RegisterArtistServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterArtistServiceHandlerServer

func RegisterArtistServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArtistServiceServer) error

RegisterArtistServiceHandlerServer registers the http handlers for service ArtistService to "mux". UnaryRPC :call ArtistServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArtistServiceHandlerFromEndpoint instead.

func RegisterArtistServiceServer

func RegisterArtistServiceServer(s grpc.ServiceRegistrar, srv ArtistServiceServer)

func RegisterPlaylistServiceHandler

func RegisterPlaylistServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPlaylistServiceHandler registers the http handlers for service PlaylistService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPlaylistServiceHandlerClient

func RegisterPlaylistServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PlaylistServiceClient) error

RegisterPlaylistServiceHandlerClient registers the http handlers for service PlaylistService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PlaylistServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PlaylistServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PlaylistServiceClient" to call the correct interceptors.

func RegisterPlaylistServiceHandlerFromEndpoint

func RegisterPlaylistServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPlaylistServiceHandlerFromEndpoint is same as RegisterPlaylistServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPlaylistServiceHandlerServer

func RegisterPlaylistServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PlaylistServiceServer) error

RegisterPlaylistServiceHandlerServer registers the http handlers for service PlaylistService to "mux". UnaryRPC :call PlaylistServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPlaylistServiceHandlerFromEndpoint instead.

func RegisterPlaylistServiceServer

func RegisterPlaylistServiceServer(s grpc.ServiceRegistrar, srv PlaylistServiceServer)

func RegisterReceiverServiceHandler

func RegisterReceiverServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterReceiverServiceHandler registers the http handlers for service ReceiverService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterReceiverServiceHandlerClient

func RegisterReceiverServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReceiverServiceClient) error

RegisterReceiverServiceHandlerClient registers the http handlers for service ReceiverService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ReceiverServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ReceiverServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ReceiverServiceClient" to call the correct interceptors.

func RegisterReceiverServiceHandlerFromEndpoint

func RegisterReceiverServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterReceiverServiceHandlerFromEndpoint is same as RegisterReceiverServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterReceiverServiceHandlerServer

func RegisterReceiverServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReceiverServiceServer) error

RegisterReceiverServiceHandlerServer registers the http handlers for service ReceiverService to "mux". UnaryRPC :call ReceiverServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterReceiverServiceHandlerFromEndpoint instead.

func RegisterReceiverServiceServer

func RegisterReceiverServiceServer(s grpc.ServiceRegistrar, srv ReceiverServiceServer)

func RegisterSongServiceHandler

func RegisterSongServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSongServiceHandler registers the http handlers for service SongService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSongServiceHandlerClient

func RegisterSongServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SongServiceClient) error

RegisterSongServiceHandlerClient registers the http handlers for service SongService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SongServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SongServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SongServiceClient" to call the correct interceptors.

func RegisterSongServiceHandlerFromEndpoint

func RegisterSongServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSongServiceHandlerFromEndpoint is same as RegisterSongServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSongServiceHandlerServer

func RegisterSongServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SongServiceServer) error

RegisterSongServiceHandlerServer registers the http handlers for service SongService to "mux". UnaryRPC :call SongServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSongServiceHandlerFromEndpoint instead.

func RegisterSongServiceServer

func RegisterSongServiceServer(s grpc.ServiceRegistrar, srv SongServiceServer)

Types

type Album

type Album struct {
	Id     string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Artist *Artist `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"`
	Tracks []*Song `protobuf:"bytes,4,rep,name=tracks,proto3" json:"tracks,omitempty"`
	// contains filtered or unexported fields
}

func (*Album) Descriptor deprecated

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

Deprecated: Use Album.ProtoReflect.Descriptor instead.

func (*Album) GetArtist

func (x *Album) GetArtist() *Artist

func (*Album) GetId

func (x *Album) GetId() string

func (*Album) GetName

func (x *Album) GetName() string

func (*Album) GetTracks

func (x *Album) GetTracks() []*Song

func (*Album) ProtoMessage

func (*Album) ProtoMessage()

func (*Album) ProtoReflect

func (x *Album) ProtoReflect() protoreflect.Message

func (*Album) Reset

func (x *Album) Reset()

func (*Album) String

func (x *Album) String() string

type AlbumCreateRequest

type AlbumCreateRequest struct {
	Album *Album `protobuf:"bytes,1,opt,name=album,proto3" json:"album,omitempty"`
	// contains filtered or unexported fields
}

func (*AlbumCreateRequest) Descriptor deprecated

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

Deprecated: Use AlbumCreateRequest.ProtoReflect.Descriptor instead.

func (*AlbumCreateRequest) GetAlbum

func (x *AlbumCreateRequest) GetAlbum() *Album

func (*AlbumCreateRequest) ProtoMessage

func (*AlbumCreateRequest) ProtoMessage()

func (*AlbumCreateRequest) ProtoReflect

func (x *AlbumCreateRequest) ProtoReflect() protoreflect.Message

func (*AlbumCreateRequest) Reset

func (x *AlbumCreateRequest) Reset()

func (*AlbumCreateRequest) String

func (x *AlbumCreateRequest) String() string

type AlbumList

type AlbumList struct {
	Items []*Album `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*AlbumList) Descriptor deprecated

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

Deprecated: Use AlbumList.ProtoReflect.Descriptor instead.

func (*AlbumList) GetItems

func (x *AlbumList) GetItems() []*Album

func (*AlbumList) ProtoMessage

func (*AlbumList) ProtoMessage()

func (*AlbumList) ProtoReflect

func (x *AlbumList) ProtoReflect() protoreflect.Message

func (*AlbumList) Reset

func (x *AlbumList) Reset()

func (*AlbumList) String

func (x *AlbumList) String() string

type AlbumQuery

type AlbumQuery struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ArtistId   string `protobuf:"bytes,3,opt,name=artistId,proto3" json:"artistId,omitempty"`
	ArtistName string `protobuf:"bytes,4,opt,name=artistName,proto3" json:"artistName,omitempty"`
	SongId     string `protobuf:"bytes,5,opt,name=songId,proto3" json:"songId,omitempty"`
	SongName   string `protobuf:"bytes,6,opt,name=songName,proto3" json:"songName,omitempty"`
	// contains filtered or unexported fields
}

func (*AlbumQuery) Descriptor deprecated

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

Deprecated: Use AlbumQuery.ProtoReflect.Descriptor instead.

func (*AlbumQuery) GetArtistId

func (x *AlbumQuery) GetArtistId() string

func (*AlbumQuery) GetArtistName

func (x *AlbumQuery) GetArtistName() string

func (*AlbumQuery) GetId

func (x *AlbumQuery) GetId() string

func (*AlbumQuery) GetName

func (x *AlbumQuery) GetName() string

func (*AlbumQuery) GetSongId

func (x *AlbumQuery) GetSongId() string

func (*AlbumQuery) GetSongName

func (x *AlbumQuery) GetSongName() string

func (*AlbumQuery) ProtoMessage

func (*AlbumQuery) ProtoMessage()

func (*AlbumQuery) ProtoReflect

func (x *AlbumQuery) ProtoReflect() protoreflect.Message

func (*AlbumQuery) Reset

func (x *AlbumQuery) Reset()

func (*AlbumQuery) String

func (x *AlbumQuery) String() string

type AlbumServiceClient

type AlbumServiceClient interface {
	List(ctx context.Context, in *AlbumQuery, opts ...grpc.CallOption) (*AlbumList, error)
	Create(ctx context.Context, in *AlbumCreateRequest, opts ...grpc.CallOption) (*Album, error)
	Get(ctx context.Context, in *AlbumQuery, opts ...grpc.CallOption) (*Album, error)
	Update(ctx context.Context, in *AlbumUpdateRequest, opts ...grpc.CallOption) (*Album, error)
	Delete(ctx context.Context, in *AlbumQuery, opts ...grpc.CallOption) (*Album, error)
}

AlbumServiceClient is the client API for AlbumService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AlbumServiceServer

type AlbumServiceServer interface {
	List(context.Context, *AlbumQuery) (*AlbumList, error)
	Create(context.Context, *AlbumCreateRequest) (*Album, error)
	Get(context.Context, *AlbumQuery) (*Album, error)
	Update(context.Context, *AlbumUpdateRequest) (*Album, error)
	Delete(context.Context, *AlbumQuery) (*Album, error)
}

AlbumServiceServer is the server API for AlbumService service. All implementations should embed UnimplementedAlbumServiceServer for forward compatibility

type AlbumUpdateRequest

type AlbumUpdateRequest struct {
	Album *Album `protobuf:"bytes,1,opt,name=album,proto3" json:"album,omitempty"`
	// contains filtered or unexported fields
}

func (*AlbumUpdateRequest) Descriptor deprecated

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

Deprecated: Use AlbumUpdateRequest.ProtoReflect.Descriptor instead.

func (*AlbumUpdateRequest) GetAlbum

func (x *AlbumUpdateRequest) GetAlbum() *Album

func (*AlbumUpdateRequest) ProtoMessage

func (*AlbumUpdateRequest) ProtoMessage()

func (*AlbumUpdateRequest) ProtoReflect

func (x *AlbumUpdateRequest) ProtoReflect() protoreflect.Message

func (*AlbumUpdateRequest) Reset

func (x *AlbumUpdateRequest) Reset()

func (*AlbumUpdateRequest) String

func (x *AlbumUpdateRequest) String() string

type Artist

type Artist struct {
	Id     string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Albums []*Album `protobuf:"bytes,3,rep,name=albums,proto3" json:"albums,omitempty"`
	Songs  []*Song  `protobuf:"bytes,4,rep,name=songs,proto3" json:"songs,omitempty"`
	// contains filtered or unexported fields
}

func (*Artist) Descriptor deprecated

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

Deprecated: Use Artist.ProtoReflect.Descriptor instead.

func (*Artist) GetAlbums

func (x *Artist) GetAlbums() []*Album

func (*Artist) GetId

func (x *Artist) GetId() string

func (*Artist) GetName

func (x *Artist) GetName() string

func (*Artist) GetSongs

func (x *Artist) GetSongs() []*Song

func (*Artist) ProtoMessage

func (*Artist) ProtoMessage()

func (*Artist) ProtoReflect

func (x *Artist) ProtoReflect() protoreflect.Message

func (*Artist) Reset

func (x *Artist) Reset()

func (*Artist) String

func (x *Artist) String() string

type ArtistCreateRequest

type ArtistCreateRequest struct {
	Artist *Artist `protobuf:"bytes,1,opt,name=artist,proto3" json:"artist,omitempty"`
	// contains filtered or unexported fields
}

func (*ArtistCreateRequest) Descriptor deprecated

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

Deprecated: Use ArtistCreateRequest.ProtoReflect.Descriptor instead.

func (*ArtistCreateRequest) GetArtist

func (x *ArtistCreateRequest) GetArtist() *Artist

func (*ArtistCreateRequest) ProtoMessage

func (*ArtistCreateRequest) ProtoMessage()

func (*ArtistCreateRequest) ProtoReflect

func (x *ArtistCreateRequest) ProtoReflect() protoreflect.Message

func (*ArtistCreateRequest) Reset

func (x *ArtistCreateRequest) Reset()

func (*ArtistCreateRequest) String

func (x *ArtistCreateRequest) String() string

type ArtistList

type ArtistList struct {
	Items []*Artist `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ArtistList) Descriptor deprecated

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

Deprecated: Use ArtistList.ProtoReflect.Descriptor instead.

func (*ArtistList) GetItems

func (x *ArtistList) GetItems() []*Artist

func (*ArtistList) ProtoMessage

func (*ArtistList) ProtoMessage()

func (*ArtistList) ProtoReflect

func (x *ArtistList) ProtoReflect() protoreflect.Message

func (*ArtistList) Reset

func (x *ArtistList) Reset()

func (*ArtistList) String

func (x *ArtistList) String() string

type ArtistQuery

type ArtistQuery struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	AlbumId  string `protobuf:"bytes,3,opt,name=albumId,proto3" json:"albumId,omitempty"`
	ArtistId string `protobuf:"bytes,4,opt,name=artistId,proto3" json:"artistId,omitempty"`
	SongId   string `protobuf:"bytes,5,opt,name=songId,proto3" json:"songId,omitempty"`
	SongName string `protobuf:"bytes,6,opt,name=songName,proto3" json:"songName,omitempty"`
	// contains filtered or unexported fields
}

func (*ArtistQuery) Descriptor deprecated

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

Deprecated: Use ArtistQuery.ProtoReflect.Descriptor instead.

func (*ArtistQuery) GetAlbumId

func (x *ArtistQuery) GetAlbumId() string

func (*ArtistQuery) GetArtistId

func (x *ArtistQuery) GetArtistId() string

func (*ArtistQuery) GetId

func (x *ArtistQuery) GetId() string

func (*ArtistQuery) GetName

func (x *ArtistQuery) GetName() string

func (*ArtistQuery) GetSongId

func (x *ArtistQuery) GetSongId() string

func (*ArtistQuery) GetSongName

func (x *ArtistQuery) GetSongName() string

func (*ArtistQuery) ProtoMessage

func (*ArtistQuery) ProtoMessage()

func (*ArtistQuery) ProtoReflect

func (x *ArtistQuery) ProtoReflect() protoreflect.Message

func (*ArtistQuery) Reset

func (x *ArtistQuery) Reset()

func (*ArtistQuery) String

func (x *ArtistQuery) String() string

type ArtistServiceClient

type ArtistServiceClient interface {
	List(ctx context.Context, in *ArtistQuery, opts ...grpc.CallOption) (*ArtistList, error)
	Create(ctx context.Context, in *ArtistCreateRequest, opts ...grpc.CallOption) (*Artist, error)
	Get(ctx context.Context, in *ArtistQuery, opts ...grpc.CallOption) (*Artist, error)
	Update(ctx context.Context, in *ArtistUpdateRequest, opts ...grpc.CallOption) (*Artist, error)
	Delete(ctx context.Context, in *ArtistQuery, opts ...grpc.CallOption) (*Artist, error)
}

ArtistServiceClient is the client API for ArtistService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ArtistServiceServer

ArtistServiceServer is the server API for ArtistService service. All implementations should embed UnimplementedArtistServiceServer for forward compatibility

type ArtistUpdateRequest

type ArtistUpdateRequest struct {
	Artist *Artist `protobuf:"bytes,1,opt,name=artist,proto3" json:"artist,omitempty"`
	// contains filtered or unexported fields
}

func (*ArtistUpdateRequest) Descriptor deprecated

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

Deprecated: Use ArtistUpdateRequest.ProtoReflect.Descriptor instead.

func (*ArtistUpdateRequest) GetArtist

func (x *ArtistUpdateRequest) GetArtist() *Artist

func (*ArtistUpdateRequest) ProtoMessage

func (*ArtistUpdateRequest) ProtoMessage()

func (*ArtistUpdateRequest) ProtoReflect

func (x *ArtistUpdateRequest) ProtoReflect() protoreflect.Message

func (*ArtistUpdateRequest) Reset

func (x *ArtistUpdateRequest) Reset()

func (*ArtistUpdateRequest) String

func (x *ArtistUpdateRequest) String() string

type Format

type Format int32
const (
	Format_FORMAT_UNSET Format = 0
	Format_JUKEBOX_S16  Format = 1
)

func (Format) Descriptor

func (Format) Descriptor() protoreflect.EnumDescriptor

func (Format) Enum

func (x Format) Enum() *Format

func (Format) EnumDescriptor deprecated

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

Deprecated: Use Format.Descriptor instead.

func (Format) Number

func (x Format) Number() protoreflect.EnumNumber

func (Format) String

func (x Format) String() string

func (Format) Type

func (Format) Type() protoreflect.EnumType

type PlaySongChunk

type PlaySongChunk struct {
	Chunk     []byte                 `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"`
	Size      int32                  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaySongChunk) Descriptor deprecated

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

Deprecated: Use PlaySongChunk.ProtoReflect.Descriptor instead.

func (*PlaySongChunk) GetChunk

func (x *PlaySongChunk) GetChunk() []byte

func (*PlaySongChunk) GetSize

func (x *PlaySongChunk) GetSize() int32

func (*PlaySongChunk) GetTimestamp

func (x *PlaySongChunk) GetTimestamp() *timestamppb.Timestamp

func (*PlaySongChunk) ProtoMessage

func (*PlaySongChunk) ProtoMessage()

func (*PlaySongChunk) ProtoReflect

func (x *PlaySongChunk) ProtoReflect() protoreflect.Message

func (*PlaySongChunk) Reset

func (x *PlaySongChunk) Reset()

func (*PlaySongChunk) String

func (x *PlaySongChunk) String() string

type PlaySongChunkResponse

type PlaySongChunkResponse struct {
	// contains filtered or unexported fields
}

func (*PlaySongChunkResponse) Descriptor deprecated

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

Deprecated: Use PlaySongChunkResponse.ProtoReflect.Descriptor instead.

func (*PlaySongChunkResponse) ProtoMessage

func (*PlaySongChunkResponse) ProtoMessage()

func (*PlaySongChunkResponse) ProtoReflect

func (x *PlaySongChunkResponse) ProtoReflect() protoreflect.Message

func (*PlaySongChunkResponse) Reset

func (x *PlaySongChunkResponse) Reset()

func (*PlaySongChunkResponse) String

func (x *PlaySongChunkResponse) String() string

type PlaySongHeader

type PlaySongHeader struct {
	Song       *Song  `protobuf:"bytes,1,opt,name=song,proto3" json:"song,omitempty"`
	Format     Format `protobuf:"varint,2,opt,name=format,proto3,enum=jukebox.Format" json:"format,omitempty"`
	SampleRate int32  `protobuf:"varint,3,opt,name=sampleRate,proto3" json:"sampleRate,omitempty"`
	Channels   uint32 `protobuf:"varint,4,opt,name=channels,proto3" json:"channels,omitempty"`
	Samples    uint32 `protobuf:"varint,5,opt,name=samples,proto3" json:"samples,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaySongHeader) Descriptor deprecated

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

Deprecated: Use PlaySongHeader.ProtoReflect.Descriptor instead.

func (*PlaySongHeader) GetChannels

func (x *PlaySongHeader) GetChannels() uint32

func (*PlaySongHeader) GetFormat

func (x *PlaySongHeader) GetFormat() Format

func (*PlaySongHeader) GetSampleRate

func (x *PlaySongHeader) GetSampleRate() int32

func (*PlaySongHeader) GetSamples

func (x *PlaySongHeader) GetSamples() uint32

func (*PlaySongHeader) GetSong

func (x *PlaySongHeader) GetSong() *Song

func (*PlaySongHeader) ProtoMessage

func (*PlaySongHeader) ProtoMessage()

func (*PlaySongHeader) ProtoReflect

func (x *PlaySongHeader) ProtoReflect() protoreflect.Message

func (*PlaySongHeader) Reset

func (x *PlaySongHeader) Reset()

func (*PlaySongHeader) String

func (x *PlaySongHeader) String() string

type PlaySongHeaderResponse

type PlaySongHeaderResponse struct {
	// contains filtered or unexported fields
}

func (*PlaySongHeaderResponse) Descriptor deprecated

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

Deprecated: Use PlaySongHeaderResponse.ProtoReflect.Descriptor instead.

func (*PlaySongHeaderResponse) ProtoMessage

func (*PlaySongHeaderResponse) ProtoMessage()

func (*PlaySongHeaderResponse) ProtoReflect

func (x *PlaySongHeaderResponse) ProtoReflect() protoreflect.Message

func (*PlaySongHeaderResponse) Reset

func (x *PlaySongHeaderResponse) Reset()

func (*PlaySongHeaderResponse) String

func (x *PlaySongHeaderResponse) String() string

type PlaySongTrailer

type PlaySongTrailer struct {
	// contains filtered or unexported fields
}

func (*PlaySongTrailer) Descriptor deprecated

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

Deprecated: Use PlaySongTrailer.ProtoReflect.Descriptor instead.

func (*PlaySongTrailer) ProtoMessage

func (*PlaySongTrailer) ProtoMessage()

func (*PlaySongTrailer) ProtoReflect

func (x *PlaySongTrailer) ProtoReflect() protoreflect.Message

func (*PlaySongTrailer) Reset

func (x *PlaySongTrailer) Reset()

func (*PlaySongTrailer) String

func (x *PlaySongTrailer) String() string

type PlaySongTrailerResponse

type PlaySongTrailerResponse struct {
	// contains filtered or unexported fields
}

func (*PlaySongTrailerResponse) Descriptor deprecated

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

Deprecated: Use PlaySongTrailerResponse.ProtoReflect.Descriptor instead.

func (*PlaySongTrailerResponse) ProtoMessage

func (*PlaySongTrailerResponse) ProtoMessage()

func (*PlaySongTrailerResponse) ProtoReflect

func (x *PlaySongTrailerResponse) ProtoReflect() protoreflect.Message

func (*PlaySongTrailerResponse) Reset

func (x *PlaySongTrailerResponse) Reset()

func (*PlaySongTrailerResponse) String

func (x *PlaySongTrailerResponse) String() string

type Playlist

type Playlist struct {
	Id    string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Songs []*Song `protobuf:"bytes,100,rep,name=songs,proto3" json:"songs,omitempty"`
	// contains filtered or unexported fields
}

func (*Playlist) Descriptor deprecated

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

Deprecated: Use Playlist.ProtoReflect.Descriptor instead.

func (*Playlist) GetId

func (x *Playlist) GetId() string

func (*Playlist) GetName

func (x *Playlist) GetName() string

func (*Playlist) GetSongs

func (x *Playlist) GetSongs() []*Song

func (*Playlist) ProtoMessage

func (*Playlist) ProtoMessage()

func (*Playlist) ProtoReflect

func (x *Playlist) ProtoReflect() protoreflect.Message

func (*Playlist) Reset

func (x *Playlist) Reset()

func (*Playlist) String

func (x *Playlist) String() string

type PlaylistCreateRequest

type PlaylistCreateRequest struct {
	Playlist *Playlist `protobuf:"bytes,100,opt,name=playlist,proto3" json:"playlist,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaylistCreateRequest) Descriptor deprecated

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

Deprecated: Use PlaylistCreateRequest.ProtoReflect.Descriptor instead.

func (*PlaylistCreateRequest) GetPlaylist

func (x *PlaylistCreateRequest) GetPlaylist() *Playlist

func (*PlaylistCreateRequest) ProtoMessage

func (*PlaylistCreateRequest) ProtoMessage()

func (*PlaylistCreateRequest) ProtoReflect

func (x *PlaylistCreateRequest) ProtoReflect() protoreflect.Message

func (*PlaylistCreateRequest) Reset

func (x *PlaylistCreateRequest) Reset()

func (*PlaylistCreateRequest) String

func (x *PlaylistCreateRequest) String() string

type PlaylistList

type PlaylistList struct {
	Items []*Playlist `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaylistList) Descriptor deprecated

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

Deprecated: Use PlaylistList.ProtoReflect.Descriptor instead.

func (*PlaylistList) GetItems

func (x *PlaylistList) GetItems() []*Playlist

func (*PlaylistList) ProtoMessage

func (*PlaylistList) ProtoMessage()

func (*PlaylistList) ProtoReflect

func (x *PlaylistList) ProtoReflect() protoreflect.Message

func (*PlaylistList) Reset

func (x *PlaylistList) Reset()

func (*PlaylistList) String

func (x *PlaylistList) String() string

type PlaylistQuery

type PlaylistQuery struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaylistQuery) Descriptor deprecated

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

Deprecated: Use PlaylistQuery.ProtoReflect.Descriptor instead.

func (*PlaylistQuery) GetId

func (x *PlaylistQuery) GetId() string

func (*PlaylistQuery) GetName

func (x *PlaylistQuery) GetName() string

func (*PlaylistQuery) ProtoMessage

func (*PlaylistQuery) ProtoMessage()

func (*PlaylistQuery) ProtoReflect

func (x *PlaylistQuery) ProtoReflect() protoreflect.Message

func (*PlaylistQuery) Reset

func (x *PlaylistQuery) Reset()

func (*PlaylistQuery) String

func (x *PlaylistQuery) String() string

type PlaylistServiceClient

type PlaylistServiceClient interface {
	List(ctx context.Context, in *PlaylistQuery, opts ...grpc.CallOption) (*PlaylistList, error)
	Create(ctx context.Context, in *PlaylistCreateRequest, opts ...grpc.CallOption) (*Playlist, error)
	Get(ctx context.Context, in *PlaylistQuery, opts ...grpc.CallOption) (*Playlist, error)
	Update(ctx context.Context, in *PlaylistUpdateRequest, opts ...grpc.CallOption) (*Playlist, error)
	Delete(ctx context.Context, in *PlaylistQuery, opts ...grpc.CallOption) (*Playlist, error)
}

PlaylistServiceClient is the client API for PlaylistService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PlaylistServiceServer

PlaylistServiceServer is the server API for PlaylistService service. All implementations should embed UnimplementedPlaylistServiceServer for forward compatibility

type PlaylistUpdateRequest

type PlaylistUpdateRequest struct {
	Playlist *Playlist `protobuf:"bytes,100,opt,name=playlist,proto3" json:"playlist,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaylistUpdateRequest) Descriptor deprecated

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

Deprecated: Use PlaylistUpdateRequest.ProtoReflect.Descriptor instead.

func (*PlaylistUpdateRequest) GetPlaylist

func (x *PlaylistUpdateRequest) GetPlaylist() *Playlist

func (*PlaylistUpdateRequest) ProtoMessage

func (*PlaylistUpdateRequest) ProtoMessage()

func (*PlaylistUpdateRequest) ProtoReflect

func (x *PlaylistUpdateRequest) ProtoReflect() protoreflect.Message

func (*PlaylistUpdateRequest) Reset

func (x *PlaylistUpdateRequest) Reset()

func (*PlaylistUpdateRequest) String

func (x *PlaylistUpdateRequest) String() string

type Receiver

type Receiver struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Url  string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Receiver) Descriptor deprecated

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

Deprecated: Use Receiver.ProtoReflect.Descriptor instead.

func (*Receiver) GetId

func (x *Receiver) GetId() string

func (*Receiver) GetName

func (x *Receiver) GetName() string

func (*Receiver) GetUrl

func (x *Receiver) GetUrl() string

func (*Receiver) ProtoMessage

func (*Receiver) ProtoMessage()

func (*Receiver) ProtoReflect

func (x *Receiver) ProtoReflect() protoreflect.Message

func (*Receiver) Reset

func (x *Receiver) Reset()

func (*Receiver) String

func (x *Receiver) String() string

type ReceiverCommandRequest

type ReceiverCommandRequest struct {

	// Types that are assignable to Command:
	//
	//	*ReceiverCommandRequest_PlaySongHeader
	//	*ReceiverCommandRequest_PlaySongChunk
	//	*ReceiverCommandRequest_PlaySongTrailer
	Command isReceiverCommandRequest_Command `protobuf_oneof:"command"`
	// contains filtered or unexported fields
}

func (*ReceiverCommandRequest) Descriptor deprecated

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

Deprecated: Use ReceiverCommandRequest.ProtoReflect.Descriptor instead.

func (*ReceiverCommandRequest) GetCommand

func (m *ReceiverCommandRequest) GetCommand() isReceiverCommandRequest_Command

func (*ReceiverCommandRequest) GetPlaySongChunk

func (x *ReceiverCommandRequest) GetPlaySongChunk() *PlaySongChunk

func (*ReceiverCommandRequest) GetPlaySongHeader

func (x *ReceiverCommandRequest) GetPlaySongHeader() *PlaySongHeader

func (*ReceiverCommandRequest) GetPlaySongTrailer

func (x *ReceiverCommandRequest) GetPlaySongTrailer() *PlaySongTrailer

func (*ReceiverCommandRequest) ProtoMessage

func (*ReceiverCommandRequest) ProtoMessage()

func (*ReceiverCommandRequest) ProtoReflect

func (x *ReceiverCommandRequest) ProtoReflect() protoreflect.Message

func (*ReceiverCommandRequest) Reset

func (x *ReceiverCommandRequest) Reset()

func (*ReceiverCommandRequest) String

func (x *ReceiverCommandRequest) String() string

type ReceiverCommandRequest_PlaySongChunk

type ReceiverCommandRequest_PlaySongChunk struct {
	PlaySongChunk *PlaySongChunk `protobuf:"bytes,2,opt,name=playSongChunk,proto3,oneof"`
}

type ReceiverCommandRequest_PlaySongHeader

type ReceiverCommandRequest_PlaySongHeader struct {
	PlaySongHeader *PlaySongHeader `protobuf:"bytes,1,opt,name=playSongHeader,proto3,oneof"`
}

type ReceiverCommandRequest_PlaySongTrailer

type ReceiverCommandRequest_PlaySongTrailer struct {
	PlaySongTrailer *PlaySongTrailer `protobuf:"bytes,3,opt,name=playSongTrailer,proto3,oneof"`
}

type ReceiverCommandResponse

type ReceiverCommandResponse struct {

	// Types that are assignable to Response:
	//
	//	*ReceiverCommandResponse_PlaySongHeaderResponse
	//	*ReceiverCommandResponse_PlaySongChunkResponse
	//	*ReceiverCommandResponse_PlaySongTrailerResponse
	Response isReceiverCommandResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*ReceiverCommandResponse) Descriptor deprecated

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

Deprecated: Use ReceiverCommandResponse.ProtoReflect.Descriptor instead.

func (*ReceiverCommandResponse) GetPlaySongChunkResponse

func (x *ReceiverCommandResponse) GetPlaySongChunkResponse() *PlaySongChunkResponse

func (*ReceiverCommandResponse) GetPlaySongHeaderResponse

func (x *ReceiverCommandResponse) GetPlaySongHeaderResponse() *PlaySongHeaderResponse

func (*ReceiverCommandResponse) GetPlaySongTrailerResponse

func (x *ReceiverCommandResponse) GetPlaySongTrailerResponse() *PlaySongTrailerResponse

func (*ReceiverCommandResponse) GetResponse

func (m *ReceiverCommandResponse) GetResponse() isReceiverCommandResponse_Response

func (*ReceiverCommandResponse) ProtoMessage

func (*ReceiverCommandResponse) ProtoMessage()

func (*ReceiverCommandResponse) ProtoReflect

func (x *ReceiverCommandResponse) ProtoReflect() protoreflect.Message

func (*ReceiverCommandResponse) Reset

func (x *ReceiverCommandResponse) Reset()

func (*ReceiverCommandResponse) String

func (x *ReceiverCommandResponse) String() string

type ReceiverCommandResponse_PlaySongChunkResponse

type ReceiverCommandResponse_PlaySongChunkResponse struct {
	PlaySongChunkResponse *PlaySongChunkResponse `protobuf:"bytes,2,opt,name=playSongChunkResponse,proto3,oneof"`
}

type ReceiverCommandResponse_PlaySongHeaderResponse

type ReceiverCommandResponse_PlaySongHeaderResponse struct {
	PlaySongHeaderResponse *PlaySongHeaderResponse `protobuf:"bytes,1,opt,name=playSongHeaderResponse,proto3,oneof"`
}

type ReceiverCommandResponse_PlaySongTrailerResponse

type ReceiverCommandResponse_PlaySongTrailerResponse struct {
	PlaySongTrailerResponse *PlaySongTrailerResponse `protobuf:"bytes,3,opt,name=playSongTrailerResponse,proto3,oneof"`
}

type ReceiverCreateRequest

type ReceiverCreateRequest struct {
	Receiver *Receiver `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiverCreateRequest) Descriptor deprecated

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

Deprecated: Use ReceiverCreateRequest.ProtoReflect.Descriptor instead.

func (*ReceiverCreateRequest) GetReceiver

func (x *ReceiverCreateRequest) GetReceiver() *Receiver

func (*ReceiverCreateRequest) ProtoMessage

func (*ReceiverCreateRequest) ProtoMessage()

func (*ReceiverCreateRequest) ProtoReflect

func (x *ReceiverCreateRequest) ProtoReflect() protoreflect.Message

func (*ReceiverCreateRequest) Reset

func (x *ReceiverCreateRequest) Reset()

func (*ReceiverCreateRequest) String

func (x *ReceiverCreateRequest) String() string

type ReceiverList

type ReceiverList struct {
	Items []*Receiver `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiverList) Descriptor deprecated

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

Deprecated: Use ReceiverList.ProtoReflect.Descriptor instead.

func (*ReceiverList) GetItems

func (x *ReceiverList) GetItems() []*Receiver

func (*ReceiverList) ProtoMessage

func (*ReceiverList) ProtoMessage()

func (*ReceiverList) ProtoReflect

func (x *ReceiverList) ProtoReflect() protoreflect.Message

func (*ReceiverList) Reset

func (x *ReceiverList) Reset()

func (*ReceiverList) String

func (x *ReceiverList) String() string

type ReceiverQuery

type ReceiverQuery struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Url  string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiverQuery) Descriptor deprecated

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

Deprecated: Use ReceiverQuery.ProtoReflect.Descriptor instead.

func (*ReceiverQuery) GetId

func (x *ReceiverQuery) GetId() string

func (*ReceiverQuery) GetName

func (x *ReceiverQuery) GetName() string

func (*ReceiverQuery) GetUrl

func (x *ReceiverQuery) GetUrl() string

func (*ReceiverQuery) ProtoMessage

func (*ReceiverQuery) ProtoMessage()

func (*ReceiverQuery) ProtoReflect

func (x *ReceiverQuery) ProtoReflect() protoreflect.Message

func (*ReceiverQuery) Reset

func (x *ReceiverQuery) Reset()

func (*ReceiverQuery) String

func (x *ReceiverQuery) String() string

type ReceiverServiceClient

ReceiverServiceClient is the client API for ReceiverService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ReceiverServiceServer

ReceiverServiceServer is the server API for ReceiverService service. All implementations should embed UnimplementedReceiverServiceServer for forward compatibility

type ReceiverService_ReceiverChatClient

type ReceiverService_ReceiverChatClient interface {
	Send(*ReceiverCommandResponse) error
	Recv() (*ReceiverCommandRequest, error)
	grpc.ClientStream
}

type ReceiverService_ReceiverChatServer

type ReceiverService_ReceiverChatServer interface {
	Send(*ReceiverCommandRequest) error
	Recv() (*ReceiverCommandResponse, error)
	grpc.ServerStream
}

type ReceiverUpdateRequest

type ReceiverUpdateRequest struct {
	Receiver *Receiver `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiverUpdateRequest) Descriptor deprecated

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

Deprecated: Use ReceiverUpdateRequest.ProtoReflect.Descriptor instead.

func (*ReceiverUpdateRequest) GetReceiver

func (x *ReceiverUpdateRequest) GetReceiver() *Receiver

func (*ReceiverUpdateRequest) ProtoMessage

func (*ReceiverUpdateRequest) ProtoMessage()

func (*ReceiverUpdateRequest) ProtoReflect

func (x *ReceiverUpdateRequest) ProtoReflect() protoreflect.Message

func (*ReceiverUpdateRequest) Reset

func (x *ReceiverUpdateRequest) Reset()

func (*ReceiverUpdateRequest) String

func (x *ReceiverUpdateRequest) String() string

type ReceiversPlayRequest

type ReceiversPlayRequest struct {
	Song *Song `protobuf:"bytes,100,opt,name=song,proto3" json:"song,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiversPlayRequest) Descriptor deprecated

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

Deprecated: Use ReceiversPlayRequest.ProtoReflect.Descriptor instead.

func (*ReceiversPlayRequest) GetSong

func (x *ReceiversPlayRequest) GetSong() *Song

func (*ReceiversPlayRequest) ProtoMessage

func (*ReceiversPlayRequest) ProtoMessage()

func (*ReceiversPlayRequest) ProtoReflect

func (x *ReceiversPlayRequest) ProtoReflect() protoreflect.Message

func (*ReceiversPlayRequest) Reset

func (x *ReceiversPlayRequest) Reset()

func (*ReceiversPlayRequest) String

func (x *ReceiversPlayRequest) String() string

type ReceiversPlayResponse

type ReceiversPlayResponse struct {
	Song      *Song         `protobuf:"bytes,100,opt,name=song,proto3" json:"song,omitempty"`
	Receivers *ReceiverList `protobuf:"bytes,101,opt,name=receivers,proto3" json:"receivers,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiversPlayResponse) Descriptor deprecated

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

Deprecated: Use ReceiversPlayResponse.ProtoReflect.Descriptor instead.

func (*ReceiversPlayResponse) GetReceivers

func (x *ReceiversPlayResponse) GetReceivers() *ReceiverList

func (*ReceiversPlayResponse) GetSong

func (x *ReceiversPlayResponse) GetSong() *Song

func (*ReceiversPlayResponse) ProtoMessage

func (*ReceiversPlayResponse) ProtoMessage()

func (*ReceiversPlayResponse) ProtoReflect

func (x *ReceiversPlayResponse) ProtoReflect() protoreflect.Message

func (*ReceiversPlayResponse) Reset

func (x *ReceiversPlayResponse) Reset()

func (*ReceiversPlayResponse) String

func (x *ReceiversPlayResponse) String() string

type ReceiversStopRequest

type ReceiversStopRequest struct {
	Song *Song `protobuf:"bytes,100,opt,name=song,proto3" json:"song,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiversStopRequest) Descriptor deprecated

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

Deprecated: Use ReceiversStopRequest.ProtoReflect.Descriptor instead.

func (*ReceiversStopRequest) GetSong

func (x *ReceiversStopRequest) GetSong() *Song

func (*ReceiversStopRequest) ProtoMessage

func (*ReceiversStopRequest) ProtoMessage()

func (*ReceiversStopRequest) ProtoReflect

func (x *ReceiversStopRequest) ProtoReflect() protoreflect.Message

func (*ReceiversStopRequest) Reset

func (x *ReceiversStopRequest) Reset()

func (*ReceiversStopRequest) String

func (x *ReceiversStopRequest) String() string

type ReceiversStopResponse

type ReceiversStopResponse struct {
	Receivers *ReceiverList `protobuf:"bytes,100,opt,name=receivers,proto3" json:"receivers,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiversStopResponse) Descriptor deprecated

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

Deprecated: Use ReceiversStopResponse.ProtoReflect.Descriptor instead.

func (*ReceiversStopResponse) GetReceivers

func (x *ReceiversStopResponse) GetReceivers() *ReceiverList

func (*ReceiversStopResponse) ProtoMessage

func (*ReceiversStopResponse) ProtoMessage()

func (*ReceiversStopResponse) ProtoReflect

func (x *ReceiversStopResponse) ProtoReflect() protoreflect.Message

func (*ReceiversStopResponse) Reset

func (x *ReceiversStopResponse) Reset()

func (*ReceiversStopResponse) String

func (x *ReceiversStopResponse) String() string

type Song

type Song struct {
	Id          string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	TrackNumber int32   `protobuf:"varint,3,opt,name=trackNumber,proto3" json:"trackNumber,omitempty"`
	TrackLength int32   `protobuf:"varint,4,opt,name=trackLength,proto3" json:"trackLength,omitempty"`
	Album       *Album  `protobuf:"bytes,5,opt,name=album,proto3" json:"album,omitempty"`
	Artist      *Artist `protobuf:"bytes,6,opt,name=artist,proto3" json:"artist,omitempty"`
	// contains filtered or unexported fields
}

func (*Song) Descriptor deprecated

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

Deprecated: Use Song.ProtoReflect.Descriptor instead.

func (*Song) GetAlbum

func (x *Song) GetAlbum() *Album

func (*Song) GetArtist

func (x *Song) GetArtist() *Artist

func (*Song) GetId

func (x *Song) GetId() string

func (*Song) GetName

func (x *Song) GetName() string

func (*Song) GetTrackLength

func (x *Song) GetTrackLength() int32

func (*Song) GetTrackNumber

func (x *Song) GetTrackNumber() int32

func (*Song) ProtoMessage

func (*Song) ProtoMessage()

func (*Song) ProtoReflect

func (x *Song) ProtoReflect() protoreflect.Message

func (*Song) Reset

func (x *Song) Reset()

func (*Song) String

func (x *Song) String() string

type SongCreateRequest

type SongCreateRequest struct {
	Song *Song `protobuf:"bytes,100,opt,name=song,proto3" json:"song,omitempty"`
	// contains filtered or unexported fields
}

func (*SongCreateRequest) Descriptor deprecated

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

Deprecated: Use SongCreateRequest.ProtoReflect.Descriptor instead.

func (*SongCreateRequest) GetSong

func (x *SongCreateRequest) GetSong() *Song

func (*SongCreateRequest) ProtoMessage

func (*SongCreateRequest) ProtoMessage()

func (*SongCreateRequest) ProtoReflect

func (x *SongCreateRequest) ProtoReflect() protoreflect.Message

func (*SongCreateRequest) Reset

func (x *SongCreateRequest) Reset()

func (*SongCreateRequest) String

func (x *SongCreateRequest) String() string

type SongList

type SongList struct {
	Items []*Song `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*SongList) Descriptor deprecated

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

Deprecated: Use SongList.ProtoReflect.Descriptor instead.

func (*SongList) GetItems

func (x *SongList) GetItems() []*Song

func (*SongList) ProtoMessage

func (*SongList) ProtoMessage()

func (*SongList) ProtoReflect

func (x *SongList) ProtoReflect() protoreflect.Message

func (*SongList) Reset

func (x *SongList) Reset()

func (*SongList) String

func (x *SongList) String() string

type SongQuery

type SongQuery struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ArtistId   string `protobuf:"bytes,2,opt,name=artistId,proto3" json:"artistId,omitempty"`
	AlbumId    string `protobuf:"bytes,3,opt,name=albumId,proto3" json:"albumId,omitempty"`
	Name       string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	ArtistName string `protobuf:"bytes,5,opt,name=artistName,proto3" json:"artistName,omitempty"`
	AlbumName  string `protobuf:"bytes,6,opt,name=albumName,proto3" json:"albumName,omitempty"`
	// contains filtered or unexported fields
}

func (*SongQuery) Descriptor deprecated

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

Deprecated: Use SongQuery.ProtoReflect.Descriptor instead.

func (*SongQuery) GetAlbumId

func (x *SongQuery) GetAlbumId() string

func (*SongQuery) GetAlbumName

func (x *SongQuery) GetAlbumName() string

func (*SongQuery) GetArtistId

func (x *SongQuery) GetArtistId() string

func (*SongQuery) GetArtistName

func (x *SongQuery) GetArtistName() string

func (*SongQuery) GetId

func (x *SongQuery) GetId() string

func (*SongQuery) GetName

func (x *SongQuery) GetName() string

func (*SongQuery) ProtoMessage

func (*SongQuery) ProtoMessage()

func (*SongQuery) ProtoReflect

func (x *SongQuery) ProtoReflect() protoreflect.Message

func (*SongQuery) Reset

func (x *SongQuery) Reset()

func (*SongQuery) String

func (x *SongQuery) String() string

type SongServiceClient

type SongServiceClient interface {
	List(ctx context.Context, in *SongQuery, opts ...grpc.CallOption) (*SongList, error)
	Create(ctx context.Context, in *SongCreateRequest, opts ...grpc.CallOption) (*Song, error)
	Get(ctx context.Context, in *SongQuery, opts ...grpc.CallOption) (*Song, error)
	Update(ctx context.Context, in *SongUpdateRequest, opts ...grpc.CallOption) (*Song, error)
	Delete(ctx context.Context, in *SongQuery, opts ...grpc.CallOption) (*Song, error)
}

SongServiceClient is the client API for SongService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SongServiceServer

type SongServiceServer interface {
	List(context.Context, *SongQuery) (*SongList, error)
	Create(context.Context, *SongCreateRequest) (*Song, error)
	Get(context.Context, *SongQuery) (*Song, error)
	Update(context.Context, *SongUpdateRequest) (*Song, error)
	Delete(context.Context, *SongQuery) (*Song, error)
}

SongServiceServer is the server API for SongService service. All implementations should embed UnimplementedSongServiceServer for forward compatibility

type SongUpdateRequest

type SongUpdateRequest struct {
	Song *Song `protobuf:"bytes,100,opt,name=song,proto3" json:"song,omitempty"`
	// contains filtered or unexported fields
}

func (*SongUpdateRequest) Descriptor deprecated

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

Deprecated: Use SongUpdateRequest.ProtoReflect.Descriptor instead.

func (*SongUpdateRequest) GetSong

func (x *SongUpdateRequest) GetSong() *Song

func (*SongUpdateRequest) ProtoMessage

func (*SongUpdateRequest) ProtoMessage()

func (*SongUpdateRequest) ProtoReflect

func (x *SongUpdateRequest) ProtoReflect() protoreflect.Message

func (*SongUpdateRequest) Reset

func (x *SongUpdateRequest) Reset()

func (*SongUpdateRequest) String

func (x *SongUpdateRequest) String() string

type UnimplementedAlbumServiceServer

type UnimplementedAlbumServiceServer struct {
}

UnimplementedAlbumServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAlbumServiceServer) Create

func (UnimplementedAlbumServiceServer) Delete

func (UnimplementedAlbumServiceServer) Get

func (UnimplementedAlbumServiceServer) List

func (UnimplementedAlbumServiceServer) Update

type UnimplementedArtistServiceServer

type UnimplementedArtistServiceServer struct {
}

UnimplementedArtistServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedArtistServiceServer) Create

func (UnimplementedArtistServiceServer) Delete

func (UnimplementedArtistServiceServer) Get

func (UnimplementedArtistServiceServer) List

func (UnimplementedArtistServiceServer) Update

type UnimplementedPlaylistServiceServer

type UnimplementedPlaylistServiceServer struct {
}

UnimplementedPlaylistServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPlaylistServiceServer) Create

func (UnimplementedPlaylistServiceServer) Delete

func (UnimplementedPlaylistServiceServer) Get

func (UnimplementedPlaylistServiceServer) List

func (UnimplementedPlaylistServiceServer) Update

type UnimplementedReceiverServiceServer

type UnimplementedReceiverServiceServer struct {
}

UnimplementedReceiverServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedReceiverServiceServer) Create

func (UnimplementedReceiverServiceServer) Delete

func (UnimplementedReceiverServiceServer) Get

func (UnimplementedReceiverServiceServer) List

func (UnimplementedReceiverServiceServer) Play

func (UnimplementedReceiverServiceServer) ReceiverChat

func (UnimplementedReceiverServiceServer) Stop

func (UnimplementedReceiverServiceServer) Update

type UnimplementedSongServiceServer

type UnimplementedSongServiceServer struct {
}

UnimplementedSongServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedSongServiceServer) Create

func (UnimplementedSongServiceServer) Delete

func (UnimplementedSongServiceServer) Get

func (UnimplementedSongServiceServer) List

func (UnimplementedSongServiceServer) Update

type UnsafeAlbumServiceServer

type UnsafeAlbumServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAlbumServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AlbumServiceServer will result in compilation errors.

type UnsafeArtistServiceServer

type UnsafeArtistServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeArtistServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ArtistServiceServer will result in compilation errors.

type UnsafePlaylistServiceServer

type UnsafePlaylistServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePlaylistServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PlaylistServiceServer will result in compilation errors.

type UnsafeReceiverServiceServer

type UnsafeReceiverServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeReceiverServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReceiverServiceServer will result in compilation errors.

type UnsafeSongServiceServer

type UnsafeSongServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSongServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SongServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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