Documentation ¶
Index ¶
- func NewCreatorHostHealthCheckFetcher(appName string) *creatorHostHealthCheckFetcher
- func NewDiscoveryHostFetcher(appName string) *discoveryHostFetcher
- func NewDiscoveryHostHealthCheckFetcher(appName string) *discoveryHostHealthCheckFetcher
- type APIPlaylist
- type APITrack
- type APIUser
- type Client
- func (c *Client) GetFollowees(userID string, limit uint64, offset uint64) (GetFolloweesResponse, error)
- func (c *Client) GetFollowers(userID string, limit uint64, offset uint64) (GetFollowersResponse, error)
- func (c *Client) GetFullUser(userID string) (GetFullUserResponse, error)
- func (c *Client) GetHost() (*url.URL, error)
- func (c *Client) GetPlaylist(playlistID string) (GetPlaylistResponse, error)
- func (c *Client) GetPlaylistTracks(playlistID string) (GetPlaylistTracksResponse, error)
- func (c *Client) GetResolvedResource(audiusURL string) (resourceType string, resourceID string, err error)
- func (c *Client) GetTrack(trackID string) (GetTrackResponse, error)
- func (c *Client) GetTrendingPlaylists(time string) (GetTrendingPlaylistsResponse, error)
- func (c *Client) GetTrendingTracks(genre string, time string) (GetTrendingTracksResponse, error)
- func (c *Client) GetUser(userID string) (GetUserResponse, error)
- func (c *Client) SearchPlaylists(query string) (SearchPlaylistsResponse, error)
- func (c *Client) SearchTracks(query string) (SearchTracksResponse, error)
- func (c *Client) SearchUsers(query string) (SearchUsersResponse, error)
- type GetFolloweesResponse
- type GetFollowersResponse
- type GetFullUserResponse
- type GetPlaylistResponse
- type GetPlaylistTracksResponse
- type GetTrackResponse
- type GetTrendingPlaylistsResponse
- type GetTrendingTracksResponse
- type GetUserResponse
- type HostHealthCheckFetcher
- type HostHealthCheckService
- type HostSelectionService
- type SearchPlaylistsResponse
- type SearchTracksResponse
- type SearchUsersResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreatorHostHealthCheckFetcher ¶ added in v1.0.13
func NewCreatorHostHealthCheckFetcher(appName string) *creatorHostHealthCheckFetcher
func NewDiscoveryHostFetcher ¶ added in v1.0.9
func NewDiscoveryHostFetcher(appName string) *discoveryHostFetcher
func NewDiscoveryHostHealthCheckFetcher ¶ added in v1.0.9
func NewDiscoveryHostHealthCheckFetcher(appName string) *discoveryHostHealthCheckFetcher
Types ¶
type APIPlaylist ¶
type APIPlaylist struct { ID string `json:"id"` PlaylistName string `json:"playlist_name"` Description string `json:"description"` IsAlbum bool `json:"is_album"` Artwork map[string]string `json:"artwork"` TotalPlayCount int `json:"total_play_count"` RepostCount int `json:"repost_count"` FavoriteCount int `json:"favorite_count"` User APIUser `json:"user"` }
type APITrack ¶
type APITrack struct { ID string `json:"id"` Title string `json:"title"` Description string `json:"description"` Duration int `json:"duration"` Mood string `json:"mood"` Genre string `json:"genre"` Tags string `json:"tags"` IsDownloadable bool `json:"downloadable"` ReleaseDate string `json:"release_date"` Artwork map[string]string `json:"artwork"` PlayCount int `json:"play_count"` RepostCount int `json:"repost_count"` FavoriteCount int `json:"favorite_count"` User APIUser `json:"user"` StreamURL string `json:"-"` }
type APIUser ¶
type APIUser struct { ID string `json:"id"` Name string `json:"name"` Handle string `json:"handle"` Bio string `json:"bio"` Location string `json:"location"` IsVerified bool `json:"is_verified"` ProfilePicture map[string]string `json:"profile_picture"` CoverPhoto map[string]string `json:"cover_photo"` FollowerCount int `json:"follower_count"` FolloweeCount int `json:"followee_count"` AlbumCount int `json:"album_count"` TrackCount int `json:"track_count"` PlaylistCount int `json:"playlist_count"` RepostCount int `json:"repost_count"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(hostSelectionService *HostSelectionService) *Client
func (*Client) GetFollowees ¶ added in v1.0.18
func (*Client) GetFollowers ¶ added in v1.0.18
func (*Client) GetFullUser ¶ added in v1.0.18
func (c *Client) GetFullUser(userID string) (GetFullUserResponse, error)
func (*Client) GetPlaylist ¶
func (c *Client) GetPlaylist(playlistID string) (GetPlaylistResponse, error)
func (*Client) GetPlaylistTracks ¶
func (c *Client) GetPlaylistTracks(playlistID string) (GetPlaylistTracksResponse, error)
func (*Client) GetResolvedResource ¶ added in v1.0.7
func (c *Client) GetResolvedResource(audiusURL string) (resourceType string, resourceID string, err error)
GetResolvedResource -
func (*Client) GetTrendingPlaylists ¶ added in v1.0.6
func (c *Client) GetTrendingPlaylists(time string) (GetTrendingPlaylistsResponse, error)
func (*Client) GetTrendingTracks ¶
func (c *Client) GetTrendingTracks(genre string, time string) (GetTrendingTracksResponse, error)
func (*Client) SearchPlaylists ¶
func (c *Client) SearchPlaylists(query string) (SearchPlaylistsResponse, error)
func (*Client) SearchTracks ¶
func (c *Client) SearchTracks(query string) (SearchTracksResponse, error)
func (*Client) SearchUsers ¶ added in v1.0.21
func (c *Client) SearchUsers(query string) (SearchUsersResponse, error)
type GetFolloweesResponse ¶ added in v1.0.18
type GetFolloweesResponse struct {
Data []APIUser
}
type GetFollowersResponse ¶ added in v1.0.18
type GetFollowersResponse struct {
Data []APIUser
}
type GetFullUserResponse ¶ added in v1.0.18
type GetFullUserResponse struct {
Data []APIUser
}
type GetPlaylistResponse ¶
type GetPlaylistResponse struct {
Data APIPlaylist
}
type GetPlaylistTracksResponse ¶
type GetPlaylistTracksResponse struct {
Data []APITrack
}
type GetTrackResponse ¶
type GetTrackResponse struct {
Data APITrack
}
type GetTrendingPlaylistsResponse ¶ added in v1.0.6
type GetTrendingPlaylistsResponse struct {
Data []APIPlaylist
}
type GetTrendingTracksResponse ¶
type GetTrendingTracksResponse struct {
Data []APITrack
}
type GetUserResponse ¶
type GetUserResponse struct {
Data APIUser
}
type HostHealthCheckFetcher ¶ added in v1.0.9
type HostHealthCheckService ¶ added in v1.0.12
type HostHealthCheckService struct {
// contains filtered or unexported fields
}
func NewHostHealthCheckService ¶ added in v1.0.12
func NewHostHealthCheckService(healthCheckFetcher HostHealthCheckFetcher) *HostHealthCheckService
func (*HostHealthCheckService) HealthCheckHosts ¶ added in v1.0.12
func (s *HostHealthCheckService) HealthCheckHosts(hosts []string) map[string]hostHealthCheckResult
type HostSelectionService ¶ added in v1.0.9
type HostSelectionService struct {
// contains filtered or unexported fields
}
func NewHostSelectionService ¶ added in v1.0.9
func NewHostSelectionService( appName string, ) *HostSelectionService
func (*HostSelectionService) GetSelectedHost ¶ added in v1.0.9
func (s *HostSelectionService) GetSelectedHost() (string, error)
type SearchPlaylistsResponse ¶
type SearchPlaylistsResponse struct {
Data []APIPlaylist
}
type SearchTracksResponse ¶
type SearchTracksResponse struct {
Data []APITrack
}
type SearchUsersResponse ¶ added in v1.0.21
type SearchUsersResponse struct {
Data []APIUser
}
Source Files ¶
- api_models.go
- client.go
- creator_host_health_check_fetcher.go
- discovery_host_fetcher.go
- discovery_host_health_check_fetcher.go
- get_followees.go
- get_followers.go
- get_full_user.go
- get_host.go
- get_hosts.go
- get_playlist.go
- get_playlist_tracks.go
- get_resolved_resource.go
- get_track.go
- get_trending_playlists.go
- get_trending_tracks.go
- get_user.go
- host_fetcher.go
- host_health_check_fetcher.go
- host_health_check_service.go
- host_health_check_service_config.go
- host_selection_service.go
- host_selection_service_config.go
- init.go
- search_playlists.go
- search_tracks.go
- search_users.go
Click to show internal directories.
Click to hide internal directories.