Documentation ¶
Index ¶
- Variables
- func RegisterServerHandler(s server.Server, hdlr ServerHandler, opts ...server.HandlerOption) error
- type Capabilities
- func (*Capabilities) Descriptor() ([]byte, []int)
- func (m *Capabilities) GetIndex() int32
- func (m *Capabilities) GetName() string
- func (m *Capabilities) GetRxStreamAddress() string
- func (m *Capabilities) GetStateUpdatesAddress() string
- func (m *Capabilities) GetTxStreamAddress() string
- func (m *Capabilities) Marshal() (dAtA []byte, err error)
- func (m *Capabilities) MarshalTo(dAtA []byte) (int, error)
- func (m *Capabilities) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Capabilities) ProtoMessage()
- func (m *Capabilities) Reset()
- func (m *Capabilities) Size() (n int)
- func (m *Capabilities) String() string
- func (m *Capabilities) Unmarshal(dAtA []byte) error
- func (m *Capabilities) XXX_DiscardUnknown()
- func (m *Capabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Capabilities) XXX_Merge(src proto.Message)
- func (m *Capabilities) XXX_Size() int
- func (m *Capabilities) XXX_Unmarshal(b []byte) error
- type Channels
- type Codec
- type Frame
- func (*Frame) Descriptor() ([]byte, []int)
- func (m *Frame) GetBitDepth() int32
- func (m *Frame) GetChannels() Channels
- func (m *Frame) GetCodec() Codec
- func (m *Frame) GetData() []byte
- func (m *Frame) GetFrameLength() int32
- func (m *Frame) GetSamplingRate() int32
- func (m *Frame) GetUserId() string
- func (m *Frame) Marshal() (dAtA []byte, err error)
- func (m *Frame) MarshalTo(dAtA []byte) (int, error)
- func (m *Frame) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Frame) ProtoMessage()
- func (m *Frame) Reset()
- func (m *Frame) Size() (n int)
- func (m *Frame) String() string
- func (m *Frame) Unmarshal(dAtA []byte) error
- func (m *Frame) XXX_DiscardUnknown()
- func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Frame) XXX_Merge(src proto.Message)
- func (m *Frame) XXX_Size() int
- func (m *Frame) XXX_Unmarshal(b []byte) error
- type None
- func (*None) Descriptor() ([]byte, []int)
- func (m *None) Marshal() (dAtA []byte, err error)
- func (m *None) MarshalTo(dAtA []byte) (int, error)
- func (m *None) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*None) ProtoMessage()
- func (m *None) Reset()
- func (m *None) Size() (n int)
- func (m *None) String() string
- func (m *None) Unmarshal(dAtA []byte) error
- func (m *None) XXX_DiscardUnknown()
- func (m *None) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *None) XXX_Merge(src proto.Message)
- func (m *None) XXX_Size() int
- func (m *None) XXX_Unmarshal(b []byte) error
- type PingPong
- func (*PingPong) Descriptor() ([]byte, []int)
- func (m *PingPong) GetPing() int64
- func (m *PingPong) Marshal() (dAtA []byte, err error)
- func (m *PingPong) MarshalTo(dAtA []byte) (int, error)
- func (m *PingPong) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PingPong) ProtoMessage()
- func (m *PingPong) Reset()
- func (m *PingPong) Size() (n int)
- func (m *PingPong) String() string
- func (m *PingPong) Unmarshal(dAtA []byte) error
- func (m *PingPong) XXX_DiscardUnknown()
- func (m *PingPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingPong) XXX_Merge(src proto.Message)
- func (m *PingPong) XXX_Size() int
- func (m *PingPong) XXX_Unmarshal(b []byte) error
- type ServerHandler
- type ServerService
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetRxOn() bool
- func (m *State) GetTxUser() string
- func (m *State) Marshal() (dAtA []byte, err error)
- func (m *State) MarshalTo(dAtA []byte) (int, error)
- func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) Size() (n int)
- func (m *State) String() string
- func (m *State) Unmarshal(dAtA []byte) error
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthAudio = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAudio = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAudio = fmt.Errorf("proto: unexpected end of group") )
View Source
var Channels_name = map[int32]string{
0: "unknown",
1: "mono",
2: "stereo",
}
View Source
var Channels_value = map[string]int32{
"unknown": 0,
"mono": 1,
"stereo": 2,
}
View Source
var Codec_name = map[int32]string{
0: "none",
1: "opus",
2: "pcm",
}
View Source
var Codec_value = map[string]int32{
"none": 0,
"opus": 1,
"pcm": 2,
}
Functions ¶
func RegisterServerHandler ¶
func RegisterServerHandler(s server.Server, hdlr ServerHandler, opts ...server.HandlerOption) error
Types ¶
type Capabilities ¶
type Capabilities struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` RxStreamAddress string `protobuf:"bytes,2,opt,name=rx_stream_address,json=rxStreamAddress,proto3" json:"rx_stream_address,omitempty"` TxStreamAddress string `protobuf:"bytes,3,opt,name=tx_stream_address,json=txStreamAddress,proto3" json:"tx_stream_address,omitempty"` StateUpdatesAddress string `protobuf:"bytes,4,opt,name=state_updates_address,json=stateUpdatesAddress,proto3" json:"state_updates_address,omitempty"` Index int32 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Capabilities) Descriptor ¶
func (*Capabilities) Descriptor() ([]byte, []int)
func (*Capabilities) GetIndex ¶
func (m *Capabilities) GetIndex() int32
func (*Capabilities) GetName ¶
func (m *Capabilities) GetName() string
func (*Capabilities) GetRxStreamAddress ¶
func (m *Capabilities) GetRxStreamAddress() string
func (*Capabilities) GetStateUpdatesAddress ¶
func (m *Capabilities) GetStateUpdatesAddress() string
func (*Capabilities) GetTxStreamAddress ¶
func (m *Capabilities) GetTxStreamAddress() string
func (*Capabilities) Marshal ¶
func (m *Capabilities) Marshal() (dAtA []byte, err error)
func (*Capabilities) MarshalToSizedBuffer ¶
func (m *Capabilities) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Capabilities) ProtoMessage ¶
func (*Capabilities) ProtoMessage()
func (*Capabilities) Reset ¶
func (m *Capabilities) Reset()
func (*Capabilities) Size ¶
func (m *Capabilities) Size() (n int)
func (*Capabilities) String ¶
func (m *Capabilities) String() string
func (*Capabilities) Unmarshal ¶
func (m *Capabilities) Unmarshal(dAtA []byte) error
func (*Capabilities) XXX_DiscardUnknown ¶
func (m *Capabilities) XXX_DiscardUnknown()
func (*Capabilities) XXX_Marshal ¶
func (m *Capabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Capabilities) XXX_Merge ¶
func (m *Capabilities) XXX_Merge(src proto.Message)
func (*Capabilities) XXX_Size ¶
func (m *Capabilities) XXX_Size() int
func (*Capabilities) XXX_Unmarshal ¶
func (m *Capabilities) XXX_Unmarshal(b []byte) error
type Frame ¶
type Frame struct { Codec Codec `protobuf:"varint,1,opt,name=codec,proto3,enum=shackbus.audio.Codec" json:"codec,omitempty"` Channels Channels `protobuf:"varint,2,opt,name=channels,proto3,enum=shackbus.audio.Channels" json:"channels,omitempty"` FrameLength int32 `protobuf:"varint,3,opt,name=frame_length,json=frameLength,proto3" json:"frame_length,omitempty"` SamplingRate int32 `protobuf:"varint,4,opt,name=sampling_rate,json=samplingRate,proto3" json:"sampling_rate,omitempty"` BitDepth int32 `protobuf:"varint,5,opt,name=bit_depth,json=bitDepth,proto3" json:"bit_depth,omitempty"` Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` UserId string `protobuf:"bytes,8,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Audio frame consisting of the raw audio byte array + metadata
func (*Frame) Descriptor ¶
func (*Frame) GetBitDepth ¶
func (*Frame) GetChannels ¶
func (*Frame) GetFrameLength ¶
func (*Frame) GetSamplingRate ¶
func (*Frame) ProtoMessage ¶
func (*Frame) ProtoMessage()
func (*Frame) XXX_DiscardUnknown ¶
func (m *Frame) XXX_DiscardUnknown()
func (*Frame) XXX_Marshal ¶
func (*Frame) XXX_Unmarshal ¶
type None ¶
type None struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*None) Descriptor ¶
func (*None) ProtoMessage ¶
func (*None) ProtoMessage()
func (*None) XXX_DiscardUnknown ¶
func (m *None) XXX_DiscardUnknown()
func (*None) XXX_Unmarshal ¶
type PingPong ¶
type PingPong struct { Ping int64 `protobuf:"varint,1,opt,name=ping,proto3" json:"ping,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingPong) Descriptor ¶
func (*PingPong) MarshalToSizedBuffer ¶
func (*PingPong) ProtoMessage ¶
func (*PingPong) ProtoMessage()
func (*PingPong) XXX_DiscardUnknown ¶
func (m *PingPong) XXX_DiscardUnknown()
func (*PingPong) XXX_Marshal ¶
func (*PingPong) XXX_Unmarshal ¶
type ServerHandler ¶
type ServerService ¶
type ServerService interface { GetCapabilities(ctx context.Context, in *None, opts ...client.CallOption) (*Capabilities, error) GetState(ctx context.Context, in *None, opts ...client.CallOption) (*State, error) StartStream(ctx context.Context, in *None, opts ...client.CallOption) (*None, error) StopStream(ctx context.Context, in *None, opts ...client.CallOption) (*None, error) Ping(ctx context.Context, in *PingPong, opts ...client.CallOption) (*PingPong, error) }
func NewServerService ¶
func NewServerService(name string, c client.Client) ServerService
type State ¶
type State struct { RxOn bool `protobuf:"varint,1,opt,name=rx_on,json=rxOn,proto3" json:"rx_on,omitempty"` TxUser string `protobuf:"bytes,3,opt,name=tx_user,json=txUser,proto3" json:"tx_user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*State) Descriptor ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.