Documentation ¶
Index ¶
- Variables
- func Dial(ctx context.Context, u string, opts ...Option) (net.Conn, error)
- func DialURL(ctx context.Context, u *url.URL, opts ...Option) (net.Conn, error)
- type MetadataFunc
- type Option
- func Auth(user, password string) Option
- func ContentType(ct string) Option
- func Description(desc string) Option
- func Genre(genre string) Option
- func Name(name string) Option
- func Public(public bool) Option
- func URL(u string) Option
- func UserAgent(ua string) Option
- func WithHeader(header, value string) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = http.DefaultClient
View Source
var Dialer net.Dialer
Functions ¶
Types ¶
type MetadataFunc ¶
func Metadata ¶
func Metadata(u string, opts ...Option) (MetadataFunc, error)
Metadata is like MetadataURL but takes a string and parses it for you with url.Parse
func MetadataURL ¶
func MetadataURL(u *url.URL, opts ...Option) MetadataFunc
MetadataURL takes an URL as passed to DialURL and creates a function that can be called to send metadata to icecast for that DialURL
type Option ¶
func ContentType ¶
ContentType sets the Content-Type header and is REQUIRED
func WithHeader ¶
WithHeader sets a header on the request to icecast
Click to show internal directories.
Click to hide internal directories.