Documentation ¶
Index ¶
- Variables
- func RegisterGossipServiceServer(s grpc.ServiceRegistrar, srv GossipServiceServer)
- type EncodingParams
- func (p *EncodingParams) DebugString() string
- func (*EncodingParams) Descriptor() ([]byte, []int)deprecated
- func (x *EncodingParams) GetBitRate() int32
- func (x *EncodingParams) GetChannels() int32
- func (x *EncodingParams) GetFormat() string
- func (x *EncodingParams) GetQuality() float32
- func (x *EncodingParams) GetSampleRate() int32
- func (x *EncodingParams) GetSourcePath() string
- func (x *EncodingParams) GetStereoMode() string
- func (*EncodingParams) ProtoMessage()
- func (x *EncodingParams) ProtoReflect() protoreflect.Message
- func (x *EncodingParams) Reset()
- func (x *EncodingParams) String() string
- func (p *EncodingParams) Valid() error
- type Endpoint
- type ExchangeRequest
- type ExchangeResponse
- type GossipServiceClient
- type GossipServiceServer
- type IcecastMount
- func (*IcecastMount) Descriptor() ([]byte, []int)deprecated
- func (x *IcecastMount) GetArtist() string
- func (x *IcecastMount) GetBitRate() int32
- func (x *IcecastMount) GetChannels() int32
- func (x *IcecastMount) GetDescription() string
- func (x *IcecastMount) GetListeners() int32
- func (x *IcecastMount) GetName() string
- func (x *IcecastMount) GetPath() string
- func (x *IcecastMount) GetQuality() float32
- func (x *IcecastMount) GetSampleRate() int32
- func (x *IcecastMount) GetTitle() string
- func (*IcecastMount) ProtoMessage()
- func (x *IcecastMount) ProtoReflect() protoreflect.Message
- func (x *IcecastMount) Reset()
- func (x *IcecastMount) String() string
- type Mount
- func (*Mount) Descriptor() ([]byte, []int)deprecated
- func (x *Mount) GetFallbackPath() string
- func (x *Mount) GetPath() string
- func (x *Mount) GetRelayUrl() string
- func (x *Mount) GetSourcePassword() string
- func (x *Mount) GetSourceUsername() string
- func (x *Mount) GetTranscode() bool
- func (x *Mount) GetTranscodeParams() *EncodingParams
- func (m *Mount) HasTranscoder() bool
- func (m *Mount) IsRelay() bool
- func (*Mount) ProtoMessage()
- func (x *Mount) ProtoReflect() protoreflect.Message
- func (x *Mount) Reset()
- func (x *Mount) String() string
- func (m *Mount) Valid() error
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetCurBandwidth() int32
- func (x *Status) GetIcecastMounts() []*IcecastMount
- func (x *Status) GetIcecastOk() bool
- func (x *Status) GetMaxBandwidth() int32
- func (x *Status) GetMaxListeners() int32
- func (x *Status) GetName() string
- func (x *Status) GetNumListeners() int32
- func (x *Status) GetTimestamp() uint64
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- type UnimplementedGossipServiceServer
- type UnsafeGossipServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_autoradio_proto protoreflect.FileDescriptor
var File_presence_proto protoreflect.FileDescriptor
var File_status_proto protoreflect.FileDescriptor
var GossipService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "autoradio.GossipService", HandlerType: (*GossipServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Exchange", Handler: _GossipService_Exchange_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "status.proto", }
GossipService_ServiceDesc is the grpc.ServiceDesc for GossipService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGossipServiceServer ¶
func RegisterGossipServiceServer(s grpc.ServiceRegistrar, srv GossipServiceServer)
Types ¶
type EncodingParams ¶
type EncodingParams struct { SourcePath string `protobuf:"bytes,1,opt,name=source_path,json=sourcePath,proto3" json:"source_path,omitempty"` Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` BitRate int32 `protobuf:"varint,3,opt,name=bit_rate,json=bitRate,proto3" json:"bit_rate,omitempty"` SampleRate int32 `protobuf:"varint,4,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"` Channels int32 `protobuf:"varint,5,opt,name=channels,proto3" json:"channels,omitempty"` StereoMode string `protobuf:"bytes,6,opt,name=stereo_mode,json=stereoMode,proto3" json:"stereo_mode,omitempty"` Quality float32 `protobuf:"fixed32,7,opt,name=quality,proto3" json:"quality,omitempty"` // contains filtered or unexported fields }
func (*EncodingParams) DebugString ¶
func (p *EncodingParams) DebugString() string
func (*EncodingParams) Descriptor
deprecated
func (*EncodingParams) Descriptor() ([]byte, []int)
Deprecated: Use EncodingParams.ProtoReflect.Descriptor instead.
func (*EncodingParams) GetBitRate ¶
func (x *EncodingParams) GetBitRate() int32
func (*EncodingParams) GetChannels ¶
func (x *EncodingParams) GetChannels() int32
func (*EncodingParams) GetFormat ¶
func (x *EncodingParams) GetFormat() string
func (*EncodingParams) GetQuality ¶
func (x *EncodingParams) GetQuality() float32
func (*EncodingParams) GetSampleRate ¶
func (x *EncodingParams) GetSampleRate() int32
func (*EncodingParams) GetSourcePath ¶
func (x *EncodingParams) GetSourcePath() string
func (*EncodingParams) GetStereoMode ¶
func (x *EncodingParams) GetStereoMode() string
func (*EncodingParams) ProtoMessage ¶
func (*EncodingParams) ProtoMessage()
func (*EncodingParams) ProtoReflect ¶
func (x *EncodingParams) ProtoReflect() protoreflect.Message
func (*EncodingParams) Reset ¶
func (x *EncodingParams) Reset()
func (*EncodingParams) String ¶
func (x *EncodingParams) String() string
func (*EncodingParams) Valid ¶
func (p *EncodingParams) Valid() error
Valid returns true if the EncodingParams seem to make sense. We try to be as close to the liquidsoap capabilities as possible.
type Endpoint ¶
type Endpoint struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Addrs []string `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"` // contains filtered or unexported fields }
func NewEndpointWithIPAndPort ¶
NewEndpointWithIPAndPort creates an Endpoint with the specified IP address and port.
func (*Endpoint) Descriptor
deprecated
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) ProtoReflect ¶
func (x *Endpoint) ProtoReflect() protoreflect.Message
type ExchangeRequest ¶
type ExchangeRequest struct { Nodes []*Status `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*ExchangeRequest) Descriptor
deprecated
func (*ExchangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeRequest.ProtoReflect.Descriptor instead.
func (*ExchangeRequest) GetNodes ¶
func (x *ExchangeRequest) GetNodes() []*Status
func (*ExchangeRequest) ProtoMessage ¶
func (*ExchangeRequest) ProtoMessage()
func (*ExchangeRequest) ProtoReflect ¶
func (x *ExchangeRequest) ProtoReflect() protoreflect.Message
func (*ExchangeRequest) Reset ¶
func (x *ExchangeRequest) Reset()
func (*ExchangeRequest) String ¶
func (x *ExchangeRequest) String() string
type ExchangeResponse ¶
type ExchangeResponse struct { Nodes []*Status `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*ExchangeResponse) Descriptor
deprecated
func (*ExchangeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeResponse.ProtoReflect.Descriptor instead.
func (*ExchangeResponse) GetNodes ¶
func (x *ExchangeResponse) GetNodes() []*Status
func (*ExchangeResponse) ProtoMessage ¶
func (*ExchangeResponse) ProtoMessage()
func (*ExchangeResponse) ProtoReflect ¶
func (x *ExchangeResponse) ProtoReflect() protoreflect.Message
func (*ExchangeResponse) Reset ¶
func (x *ExchangeResponse) Reset()
func (*ExchangeResponse) String ¶
func (x *ExchangeResponse) String() string
type GossipServiceClient ¶
type GossipServiceClient interface {
Exchange(ctx context.Context, in *ExchangeRequest, opts ...grpc.CallOption) (*ExchangeResponse, error)
}
GossipServiceClient is the client API for GossipService 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.
func NewGossipServiceClient ¶
func NewGossipServiceClient(cc grpc.ClientConnInterface) GossipServiceClient
type GossipServiceServer ¶
type GossipServiceServer interface { Exchange(context.Context, *ExchangeRequest) (*ExchangeResponse, error) // contains filtered or unexported methods }
GossipServiceServer is the server API for GossipService service. All implementations must embed UnimplementedGossipServiceServer for forward compatibility
type IcecastMount ¶
type IcecastMount struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Listeners int32 `protobuf:"varint,2,opt,name=listeners,proto3" json:"listeners,omitempty"` BitRate int32 `protobuf:"varint,3,opt,name=bit_rate,json=bitRate,proto3" json:"bit_rate,omitempty"` SampleRate int32 `protobuf:"varint,4,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"` Quality float32 `protobuf:"fixed32,5,opt,name=quality,proto3" json:"quality,omitempty"` Channels int32 `protobuf:"varint,6,opt,name=channels,proto3" json:"channels,omitempty"` Artist string `protobuf:"bytes,7,opt,name=artist,proto3" json:"artist,omitempty"` Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*IcecastMount) Descriptor
deprecated
func (*IcecastMount) Descriptor() ([]byte, []int)
Deprecated: Use IcecastMount.ProtoReflect.Descriptor instead.
func (*IcecastMount) GetArtist ¶
func (x *IcecastMount) GetArtist() string
func (*IcecastMount) GetBitRate ¶
func (x *IcecastMount) GetBitRate() int32
func (*IcecastMount) GetChannels ¶
func (x *IcecastMount) GetChannels() int32
func (*IcecastMount) GetDescription ¶
func (x *IcecastMount) GetDescription() string
func (*IcecastMount) GetListeners ¶
func (x *IcecastMount) GetListeners() int32
func (*IcecastMount) GetName ¶
func (x *IcecastMount) GetName() string
func (*IcecastMount) GetPath ¶
func (x *IcecastMount) GetPath() string
func (*IcecastMount) GetQuality ¶
func (x *IcecastMount) GetQuality() float32
func (*IcecastMount) GetSampleRate ¶
func (x *IcecastMount) GetSampleRate() int32
func (*IcecastMount) GetTitle ¶
func (x *IcecastMount) GetTitle() string
func (*IcecastMount) ProtoMessage ¶
func (*IcecastMount) ProtoMessage()
func (*IcecastMount) ProtoReflect ¶
func (x *IcecastMount) ProtoReflect() protoreflect.Message
func (*IcecastMount) Reset ¶
func (x *IcecastMount) Reset()
func (*IcecastMount) String ¶
func (x *IcecastMount) String() string
type Mount ¶
type Mount struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` SourceUsername string `protobuf:"bytes,2,opt,name=source_username,json=sourceUsername,proto3" json:"source_username,omitempty"` SourcePassword string `protobuf:"bytes,3,opt,name=source_password,json=sourcePassword,proto3" json:"source_password,omitempty"` RelayUrl string `protobuf:"bytes,4,opt,name=relay_url,json=relayUrl,proto3" json:"relay_url,omitempty"` FallbackPath string `protobuf:"bytes,5,opt,name=fallback_path,json=fallbackPath,proto3" json:"fallback_path,omitempty"` Transcode bool `protobuf:"varint,6,opt,name=transcode,proto3" json:"transcode,omitempty"` TranscodeParams *EncodingParams `protobuf:"bytes,7,opt,name=transcode_params,json=transcodeParams,proto3" json:"transcode_params,omitempty"` // contains filtered or unexported fields }
func (*Mount) Descriptor
deprecated
func (*Mount) GetFallbackPath ¶
func (*Mount) GetRelayUrl ¶
func (*Mount) GetSourcePassword ¶
func (*Mount) GetSourceUsername ¶
func (*Mount) GetTranscode ¶
func (*Mount) GetTranscodeParams ¶
func (x *Mount) GetTranscodeParams() *EncodingParams
func (*Mount) HasTranscoder ¶
HasTranscoder returns true if the stream has transcoding sub-streams.
func (*Mount) IsRelay ¶
IsRelay returns true if the stream is configured as a relay of an external source.
func (*Mount) ProtoMessage ¶
func (*Mount) ProtoMessage()
func (*Mount) ProtoReflect ¶
func (x *Mount) ProtoReflect() protoreflect.Message
type Status ¶
type Status struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` IcecastOk bool `protobuf:"varint,3,opt,name=icecast_ok,json=icecastOk,proto3" json:"icecast_ok,omitempty"` IcecastMounts []*IcecastMount `protobuf:"bytes,4,rep,name=icecast_mounts,json=icecastMounts,proto3" json:"icecast_mounts,omitempty"` CurBandwidth int32 `protobuf:"varint,5,opt,name=cur_bandwidth,json=curBandwidth,proto3" json:"cur_bandwidth,omitempty"` MaxBandwidth int32 `protobuf:"varint,6,opt,name=max_bandwidth,json=maxBandwidth,proto3" json:"max_bandwidth,omitempty"` MaxListeners int32 `protobuf:"varint,7,opt,name=max_listeners,json=maxListeners,proto3" json:"max_listeners,omitempty"` NumListeners int32 `protobuf:"varint,8,opt,name=num_listeners,json=numListeners,proto3" json:"num_listeners,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
func (*Status) GetCurBandwidth ¶
func (*Status) GetIcecastMounts ¶
func (x *Status) GetIcecastMounts() []*IcecastMount
func (*Status) GetIcecastOk ¶
func (*Status) GetMaxBandwidth ¶
func (*Status) GetMaxListeners ¶
func (*Status) GetNumListeners ¶
func (*Status) GetTimestamp ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type UnimplementedGossipServiceServer ¶
type UnimplementedGossipServiceServer struct { }
UnimplementedGossipServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGossipServiceServer) Exchange ¶
func (UnimplementedGossipServiceServer) Exchange(context.Context, *ExchangeRequest) (*ExchangeResponse, error)
type UnsafeGossipServiceServer ¶
type UnsafeGossipServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGossipServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GossipServiceServer will result in compilation errors.