Documentation
¶
Index ¶
- func NextId(db *mgo.Database, objectType string) (int, error)
- type Account
- type AccountAuthParams
- type AccountAuthResult
- type AccountCreateParams
- type AccountCreateResult
- type AccountService
- type Audio
- type AudioGetParams
- type AudioResult
- type AudioService
- type ChannelsResult
- type Playlist
- type PlaylistAddParams
- type PlaylistGetParams
- type PlaylistInfo
- type PlaylistResult
- type PlaylistService
- type Radio
- type RadioDeleteParams
- type RadioGetParams
- type RadioResult
- type RadioSearchParams
- type RadioService
- func (r *RadioService) Add(radio Radio, result *int) error
- func (r *RadioService) Delete(params *RadioDeleteParams, response *bool) error
- func (r *RadioService) Edit(radio Radio, result *int) error
- func (r *RadioService) Get(params RadioGetParams, result *RadioResult) error
- func (r *RadioService) Search(params RadioSearchParams, result *RadioResult) error
- type Stream
- type StreamChannel
- type StreamDeleteParams
- type StreamFetchInfoParams
- type StreamGetChannelsParams
- type StreamGetListenParams
- type StreamGetListenResult
- type StreamGetParams
- type StreamInfo
- type StreamListen
- type StreamResult
- type StreamSearchParams
- type StreamService
- func (s *StreamService) Delete(params StreamDeleteParams, response *bool) error
- func (s *StreamService) Edit(stream Stream, result *int) error
- func (s *StreamService) FetchInfo(params StreamFetchInfoParams, result *radio.StreamInfo) error
- func (s *StreamService) Get(params StreamGetParams, result *StreamResult) error
- func (s *StreamService) GetChannels(params StreamGetChannelsParams, result *ChannelsResult) error
- func (s *StreamService) GetListen(params StreamGetListenParams, result *StreamListen) error
- func (s *StreamService) Save(stream Stream, result *int) error
- func (s *StreamService) Search(params StreamSearchParams, result *StreamResult) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountAuthParams ¶
type AccountAuthResult ¶
type AccountCreateParams ¶
type AccountCreateResult ¶
type AccountCreateResult struct {
Id int
}
type AccountService ¶
type AccountService struct {
// contains filtered or unexported fields
}
func NewAccountService ¶
func NewAccountService(db *mgo.Database) *AccountService
func (*AccountService) Auth ¶
func (a *AccountService) Auth(params AccountAuthParams, result *AccountAuthResult) error
func (*AccountService) Create ¶
func (a *AccountService) Create(params AccountCreateParams, result *AccountCreateResult) error
type AudioGetParams ¶
type AudioResult ¶
type AudioResult struct {
Items []Audio
}
type AudioService ¶
type AudioService struct {
// contains filtered or unexported fields
}
func NewAudioService ¶
func NewAudioService(db *mgo.Database) *AudioService
func (*AudioService) Get ¶
func (a *AudioService) Get(params AudioGetParams, result *AudioResult) error
type ChannelsResult ¶
type ChannelsResult struct {
Items []StreamChannel
}
type PlaylistAddParams ¶
type PlaylistGetParams ¶
type PlaylistInfo ¶
type PlaylistInfo struct {
Url string
Error string
Info *radio.StreamInfo
}
type PlaylistResult ¶
type PlaylistResult struct {
Items []Playlist
}
type PlaylistService ¶
type PlaylistService struct {
// contains filtered or unexported fields
}
func NewPlaylistService ¶
func NewPlaylistService(db *mgo.Database) *PlaylistService
func (*PlaylistService) Add ¶
func (p *PlaylistService) Add(params PlaylistAddParams, result *int) error
func (*PlaylistService) Get ¶
func (p *PlaylistService) Get(params PlaylistGetParams, result *PlaylistResult) error
type RadioDeleteParams ¶
type RadioGetParams ¶
type RadioResult ¶
type RadioResult struct {
Items []Radio
}
type RadioSearchParams ¶
type RadioSearchParams struct {
Query string
}
type RadioService ¶
type RadioService struct {
// contains filtered or unexported fields
}
func NewRadioService ¶
func NewRadioService(db *mgo.Database) *RadioService
func (*RadioService) Delete ¶
func (r *RadioService) Delete(params *RadioDeleteParams, response *bool) error
func (*RadioService) Get ¶
func (r *RadioService) Get(params RadioGetParams, result *RadioResult) error
func (*RadioService) Search ¶
func (r *RadioService) Search(params RadioSearchParams, result *RadioResult) error
type Stream ¶
type Stream struct {
Id int `bson:"_id"`
Name string `bson:"name,omitempty" json:"-"`
RadioId int `bson:"radio_id,minsize,omitempty"`
OwnerId int `bson:"owner_id,omitempty"`
DeletedAt int64 `bson:"deleted_at,minsize" json:"-"`
AddedAt int64 `bson:"added_at,omitempty,minsize" json:"-"`
Url string `bson:"url"`
// info from headers
Info radio.StreamInfo `bson:"info,omitempty"`
}
type StreamChannel ¶
type StreamDeleteParams ¶
type StreamFetchInfoParams ¶
type StreamFetchInfoParams struct {
Url string
}
type StreamGetChannelsParams ¶
type StreamGetListenParams ¶
type StreamGetListenResult ¶
type StreamGetListenResult struct {
}
type StreamGetParams ¶
type StreamInfo ¶
type StreamInfo struct {
Url string `bson:"_id"`
Date int64 `bson:"date,minsize"`
Info radio.StreamInfo `bson:"info"`
}
type StreamListen ¶
type StreamResult ¶
type StreamResult struct {
Items []Stream
}
type StreamSearchParams ¶
type StreamSearchParams struct {
Query string
}
type StreamService ¶
type StreamService struct {
// contains filtered or unexported fields
}
func NewStreamService ¶
func NewStreamService(db *mgo.Database, bd *rpc.Client) *StreamService
func (*StreamService) Delete ¶
func (s *StreamService) Delete(params StreamDeleteParams, response *bool) error
func (*StreamService) FetchInfo ¶
func (s *StreamService) FetchInfo(params StreamFetchInfoParams, result *radio.StreamInfo) error
func (*StreamService) Get ¶
func (s *StreamService) Get(params StreamGetParams, result *StreamResult) error
func (*StreamService) GetChannels ¶
func (s *StreamService) GetChannels(params StreamGetChannelsParams, result *ChannelsResult) error
func (*StreamService) GetListen ¶
func (s *StreamService) GetListen(params StreamGetListenParams, result *StreamListen) error
func (*StreamService) Search ¶
func (s *StreamService) Search(params StreamSearchParams, result *StreamResult) error
Click to show internal directories.
Click to hide internal directories.