Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultBitRate = 250000
DefaultBitRate is the bitrate that Channel defaults to using.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
ChannelOptions ChannelOptions
// contains filtered or unexported fields
}
func NewChannel ¶
func NewChannel(ctx context.Context, log *logrus.Logger, ChannelOptions ChannelOptions, opts ...ChannelOption) (*Channel, error)
type ChannelOption ¶
type ChannelOption func(*Channel)
ChannelOption is the type used to apply function options to Channel.
func WithBitRate ¶
func WithBitRate(br int32) ChannelOption
WithBitRate overrides the DefaultBitRate set on Channel.
type ChannelOptions ¶
type ChannelOptions struct {
CanInterfaceName string
MessageHandler can.HandlerFunc
}
ChannelOptions is a type that contains required options on a Channel.
Click to show internal directories.
Click to hide internal directories.