content_prober

package
v0.0.0-...-facff27 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Format) GetBitRate

func (m *Format) GetBitRate() string

func (*Format) GetDuration

func (m *Format) GetDuration() string

func (*Format) GetFormatName

func (m *Format) GetFormatName() string

func (*Format) GetTags

func (m *Format) GetTags() map[string]string

func (*Format) ProtoMessage

func (*Format) ProtoMessage()

func (*Format) Reset

func (m *Format) Reset()

func (*Format) String

func (m *Format) String() string

func (*Format) XXX_DiscardUnknown

func (m *Format) XXX_DiscardUnknown()

func (*Format) XXX_Marshal

func (m *Format) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Format) XXX_Merge

func (dst *Format) XXX_Merge(src proto.Message)

func (*Format) XXX_Size

func (m *Format) XXX_Size() int

func (*Format) XXX_Unmarshal

func (m *Format) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Stream) GetBitRate

func (m *Stream) GetBitRate() string

func (*Stream) GetChannelLayout

func (m *Stream) GetChannelLayout() string

func (*Stream) GetChannels

func (m *Stream) GetChannels() int32

func (*Stream) GetCodecName

func (m *Stream) GetCodecName() string

func (*Stream) GetCodecType

func (m *Stream) GetCodecType() string

func (*Stream) GetDuration

func (m *Stream) GetDuration() string

func (*Stream) GetHeight

func (m *Stream) GetHeight() int32

func (*Stream) GetIndex

func (m *Stream) GetIndex() int32

func (*Stream) GetSampleRate

func (m *Stream) GetSampleRate() string

func (*Stream) GetTags

func (m *Stream) GetTags() map[string]string

func (*Stream) GetWidth

func (m *Stream) GetWidth() int32

func (*Stream) ProtoMessage

func (*Stream) ProtoMessage()

func (*Stream) Reset

func (m *Stream) Reset()

func (*Stream) String

func (m *Stream) String() string

func (*Stream) XXX_DiscardUnknown

func (m *Stream) XXX_DiscardUnknown()

func (*Stream) XXX_Marshal

func (m *Stream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stream) XXX_Merge

func (dst *Stream) XXX_Merge(src proto.Message)

func (*Stream) XXX_Size

func (m *Stream) XXX_Size() int

func (*Stream) XXX_Unmarshal

func (m *Stream) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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