Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongHTTPCall = errors.New("Wrong http call")
ErrWrongHTTPCall indicates failure due wrong http call
Functions ¶
func GetURLFromConfig ¶
GetURLFromConfig retrieves URL from config and checks it
func SupportAudioExt ¶
SupportAudioExt checks if audio ext is supported
func ValidateResponse ¶
ValidateResponse returns error if code is not in [200, 299]
Types ¶
type MultiCloseChannel ¶
MultiCloseChannel can be close several times
func NewMultiCloseChannel ¶
func NewMultiCloseChannel() *MultiCloseChannel
NewMultiCloseChannel creates new channel
func NewSignalChannel ¶
func NewSignalChannel() *MultiCloseChannel
NewSignalChannel returns new channel that listens for system interupts
func (*MultiCloseChannel) Close ¶
func (mc *MultiCloseChannel) Close()
Close closes channel if not closed
Click to show internal directories.
Click to hide internal directories.