Documentation ¶
Index ¶
- func RegisterContentProberServer(s *grpc.Server, srv ContentProberServer)
- type ContentProberClient
- type ContentProberServer
- type Format
- func (*Format) Descriptor() ([]byte, []int)
- func (m *Format) GetBitRate() string
- func (m *Format) GetDuration() string
- func (m *Format) GetFormatName() string
- func (m *Format) GetTags() map[string]string
- func (*Format) ProtoMessage()
- func (m *Format) Reset()
- func (m *Format) String() string
- func (m *Format) XXX_DiscardUnknown()
- func (m *Format) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Format) XXX_Merge(src proto.Message)
- func (m *Format) XXX_Size() int
- func (m *Format) XXX_Unmarshal(b []byte) error
- type ProbeReply
- func (*ProbeReply) Descriptor() ([]byte, []int)
- func (m *ProbeReply) GetFormat() *Format
- func (m *ProbeReply) GetStreams() []*Stream
- func (*ProbeReply) ProtoMessage()
- func (m *ProbeReply) Reset()
- func (m *ProbeReply) String() string
- func (m *ProbeReply) XXX_DiscardUnknown()
- func (m *ProbeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProbeReply) XXX_Merge(src proto.Message)
- func (m *ProbeReply) XXX_Size() int
- func (m *ProbeReply) XXX_Unmarshal(b []byte) error
- type ProbeRequest
- func (*ProbeRequest) Descriptor() ([]byte, []int)
- func (m *ProbeRequest) GetUrl() string
- func (*ProbeRequest) ProtoMessage()
- func (m *ProbeRequest) Reset()
- func (m *ProbeRequest) String() string
- func (m *ProbeRequest) XXX_DiscardUnknown()
- func (m *ProbeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProbeRequest) XXX_Merge(src proto.Message)
- func (m *ProbeRequest) XXX_Size() int
- func (m *ProbeRequest) XXX_Unmarshal(b []byte) error
- type Stream
- func (*Stream) Descriptor() ([]byte, []int)
- func (m *Stream) GetBitRate() string
- func (m *Stream) GetChannelLayout() string
- func (m *Stream) GetChannels() int32
- func (m *Stream) GetCodecName() string
- func (m *Stream) GetCodecType() string
- func (m *Stream) GetDuration() string
- func (m *Stream) GetHeight() int32
- func (m *Stream) GetIndex() int32
- func (m *Stream) GetSampleRate() string
- func (m *Stream) GetTags() map[string]string
- func (m *Stream) GetWidth() int32
- func (*Stream) ProtoMessage()
- func (m *Stream) Reset()
- func (m *Stream) String() string
- func (m *Stream) XXX_DiscardUnknown()
- func (m *Stream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Stream) XXX_Merge(src proto.Message)
- func (m *Stream) XXX_Size() int
- func (m *Stream) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterContentProberServer ¶
func RegisterContentProberServer(s *grpc.Server, srv ContentProberServer)
Types ¶
type ContentProberClient ¶
type ContentProberClient interface { // Gets information about media content Probe(ctx context.Context, in *ProbeRequest, opts ...grpc.CallOption) (*ProbeReply, error) }
ContentProberClient is the client API for ContentProber service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewContentProberClient ¶
func NewContentProberClient(cc *grpc.ClientConn) ContentProberClient
type ContentProberServer ¶
type ContentProberServer interface { // Gets information about media content Probe(context.Context, *ProbeRequest) (*ProbeReply, error) }
ContentProberServer is the server API for ContentProber service.
type Format ¶
type Format struct { FormatName string `protobuf:"bytes,1,opt,name=format_name,json=formatName,proto3" json:"format_name,omitempty"` BitRate string `protobuf:"bytes,2,opt,name=bit_rate,json=bitRate,proto3" json:"bit_rate,omitempty"` Duration string `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` Tags map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Media format
func (*Format) Descriptor ¶
func (*Format) GetBitRate ¶
func (*Format) GetDuration ¶
func (*Format) GetFormatName ¶
func (*Format) ProtoMessage ¶
func (*Format) ProtoMessage()
func (*Format) XXX_DiscardUnknown ¶
func (m *Format) XXX_DiscardUnknown()
func (*Format) XXX_Marshal ¶
func (*Format) XXX_Unmarshal ¶
type ProbeReply ¶
type ProbeReply struct { Format *Format `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"` Streams []*Stream `protobuf:"bytes,2,rep,name=streams,proto3" json:"streams,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The probe response message
func (*ProbeReply) Descriptor ¶
func (*ProbeReply) Descriptor() ([]byte, []int)
func (*ProbeReply) GetFormat ¶
func (m *ProbeReply) GetFormat() *Format
func (*ProbeReply) GetStreams ¶
func (m *ProbeReply) GetStreams() []*Stream
func (*ProbeReply) ProtoMessage ¶
func (*ProbeReply) ProtoMessage()
func (*ProbeReply) Reset ¶
func (m *ProbeReply) Reset()
func (*ProbeReply) String ¶
func (m *ProbeReply) String() string
func (*ProbeReply) XXX_DiscardUnknown ¶
func (m *ProbeReply) XXX_DiscardUnknown()
func (*ProbeReply) XXX_Marshal ¶
func (m *ProbeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProbeReply) XXX_Merge ¶
func (dst *ProbeReply) XXX_Merge(src proto.Message)
func (*ProbeReply) XXX_Size ¶
func (m *ProbeReply) XXX_Size() int
func (*ProbeReply) XXX_Unmarshal ¶
func (m *ProbeReply) XXX_Unmarshal(b []byte) error
type ProbeRequest ¶
type ProbeRequest struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The probe request message
func (*ProbeRequest) Descriptor ¶
func (*ProbeRequest) Descriptor() ([]byte, []int)
func (*ProbeRequest) GetUrl ¶
func (m *ProbeRequest) GetUrl() string
func (*ProbeRequest) ProtoMessage ¶
func (*ProbeRequest) ProtoMessage()
func (*ProbeRequest) Reset ¶
func (m *ProbeRequest) Reset()
func (*ProbeRequest) String ¶
func (m *ProbeRequest) String() string
func (*ProbeRequest) XXX_DiscardUnknown ¶
func (m *ProbeRequest) XXX_DiscardUnknown()
func (*ProbeRequest) XXX_Marshal ¶
func (m *ProbeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProbeRequest) XXX_Merge ¶
func (dst *ProbeRequest) XXX_Merge(src proto.Message)
func (*ProbeRequest) XXX_Size ¶
func (m *ProbeRequest) XXX_Size() int
func (*ProbeRequest) XXX_Unmarshal ¶
func (m *ProbeRequest) XXX_Unmarshal(b []byte) error
type Stream ¶
type Stream struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` CodecName string `protobuf:"bytes,2,opt,name=codec_name,json=codecName,proto3" json:"codec_name,omitempty"` CodecType string `protobuf:"bytes,3,opt,name=codec_type,json=codecType,proto3" json:"codec_type,omitempty"` Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` BitRate string `protobuf:"bytes,6,opt,name=bit_rate,json=bitRate,proto3" json:"bit_rate,omitempty"` Duration string `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"` Channels int32 `protobuf:"varint,8,opt,name=channels,proto3" json:"channels,omitempty"` ChannelLayout string `protobuf:"bytes,9,opt,name=channel_layout,json=channelLayout,proto3" json:"channel_layout,omitempty"` SampleRate string `protobuf:"bytes,10,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"` Tags map[string]string `` /* 150-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Media stream
func (*Stream) Descriptor ¶
func (*Stream) GetBitRate ¶
func (*Stream) GetChannelLayout ¶
func (*Stream) GetChannels ¶
func (*Stream) GetCodecName ¶
func (*Stream) GetCodecType ¶
func (*Stream) GetDuration ¶
func (*Stream) GetSampleRate ¶
func (*Stream) ProtoMessage ¶
func (*Stream) ProtoMessage()
func (*Stream) XXX_DiscardUnknown ¶
func (m *Stream) XXX_DiscardUnknown()
func (*Stream) XXX_Marshal ¶
func (*Stream) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.