Documentation
¶
Index ¶
- Variables
- func RegisterOAuthServiceServer(s grpc.ServiceRegistrar, srv OAuthServiceServer)
- func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer)
- type Album
- func (*Album) Descriptor() ([]byte, []int)deprecated
- func (x *Album) GetArtistName() string
- func (x *Album) GetImages() []*v1.Image
- func (x *Album) GetName() string
- func (x *Album) GetPlayCount() int32
- func (*Album) ProtoMessage()
- func (x *Album) ProtoReflect() protoreflect.Message
- func (x *Album) Reset()
- func (x *Album) String() string
- type AlbumsRequest
- func (*AlbumsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AlbumsRequest) GetArtist() string
- func (x *AlbumsRequest) GetLang() string
- func (x *AlbumsRequest) GetLimit() int32
- func (x *AlbumsRequest) GetTimeRange() *v1.TimeRange
- func (x *AlbumsRequest) GetUserId() string
- func (*AlbumsRequest) ProtoMessage()
- func (x *AlbumsRequest) ProtoReflect() protoreflect.Message
- func (x *AlbumsRequest) Reset()
- func (x *AlbumsRequest) String() string
- type AlbumsResponse
- type Artist
- func (*Artist) Descriptor() ([]byte, []int)deprecated
- func (x *Artist) GetImages() []*v1.Image
- func (x *Artist) GetName() string
- func (x *Artist) GetPlayCount() int32
- func (*Artist) ProtoMessage()
- func (x *Artist) ProtoReflect() protoreflect.Message
- func (x *Artist) Reset()
- func (x *Artist) String() string
- type ArtistsRequest
- func (*ArtistsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ArtistsRequest) GetLang() string
- func (x *ArtistsRequest) GetLimit() int32
- func (x *ArtistsRequest) GetTimeRange() *v1.TimeRange
- func (x *ArtistsRequest) GetUserId() string
- func (*ArtistsRequest) ProtoMessage()
- func (x *ArtistsRequest) ProtoReflect() protoreflect.Message
- func (x *ArtistsRequest) Reset()
- func (x *ArtistsRequest) String() string
- type ArtistsResponse
- type GetTokenRequest
- type GetTokenResponse
- func (*GetTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTokenResponse) GetOpenUrl() string
- func (x *GetTokenResponse) GetToken() string
- func (*GetTokenResponse) ProtoMessage()
- func (x *GetTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GetTokenResponse) Reset()
- func (x *GetTokenResponse) String() string
- type IsUserAuthedRequest
- func (*IsUserAuthedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsUserAuthedRequest) GetUserId() string
- func (*IsUserAuthedRequest) ProtoMessage()
- func (x *IsUserAuthedRequest) ProtoReflect() protoreflect.Message
- func (x *IsUserAuthedRequest) Reset()
- func (x *IsUserAuthedRequest) String() string
- type IsUserAuthedResponse
- func (*IsUserAuthedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsUserAuthedResponse) GetHasAuth() bool
- func (*IsUserAuthedResponse) ProtoMessage()
- func (x *IsUserAuthedResponse) ProtoReflect() protoreflect.Message
- func (x *IsUserAuthedResponse) Reset()
- func (x *IsUserAuthedResponse) String() string
- type OAuthServiceClient
- type OAuthServiceServer
- type SourceServiceClient
- type SourceServiceServer
- type StartOAuthSessionRequest
- func (*StartOAuthSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartOAuthSessionRequest) GetToken() string
- func (x *StartOAuthSessionRequest) GetUserId() string
- func (*StartOAuthSessionRequest) ProtoMessage()
- func (x *StartOAuthSessionRequest) ProtoReflect() protoreflect.Message
- func (x *StartOAuthSessionRequest) Reset()
- func (x *StartOAuthSessionRequest) String() string
- type StartOAuthSessionResponse
- type Track
- func (*Track) Descriptor() ([]byte, []int)deprecated
- func (x *Track) GetAlbumName() string
- func (x *Track) GetArtistName() string
- func (x *Track) GetImages() []*v1.Image
- func (x *Track) GetName() string
- func (x *Track) GetPlayCount() int32
- func (*Track) ProtoMessage()
- func (x *Track) ProtoReflect() protoreflect.Message
- func (x *Track) Reset()
- func (x *Track) String() string
- type TracksRequest
- func (*TracksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TracksRequest) GetAlbum() string
- func (x *TracksRequest) GetArtist() string
- func (x *TracksRequest) GetLang() string
- func (x *TracksRequest) GetLimit() int32
- func (x *TracksRequest) GetTimeRange() *v1.TimeRange
- func (x *TracksRequest) GetUserId() string
- func (*TracksRequest) ProtoMessage()
- func (x *TracksRequest) ProtoReflect() protoreflect.Message
- func (x *TracksRequest) Reset()
- func (x *TracksRequest) String() string
- type TracksResponse
- type UnimplementedOAuthServiceServer
- type UnimplementedSourceServiceServer
- func (UnimplementedSourceServiceServer) Albums(context.Context, *AlbumsRequest) (*AlbumsResponse, error)
- func (UnimplementedSourceServiceServer) Artists(context.Context, *ArtistsRequest) (*ArtistsResponse, error)
- func (UnimplementedSourceServiceServer) IsUserAuthed(context.Context, *IsUserAuthedRequest) (*IsUserAuthedResponse, error)
- func (UnimplementedSourceServiceServer) Tracks(context.Context, *TracksRequest) (*TracksResponse, error)
- type UnsafeOAuthServiceServer
- type UnsafeSourceServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_source_v1_oauth_proto protoreflect.FileDescriptor
var File_source_v1_source_proto protoreflect.FileDescriptor
var OAuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "source.OAuthService", HandlerType: (*OAuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetToken", Handler: _OAuthService_GetToken_Handler, }, { MethodName: "StartOAuthSession", Handler: _OAuthService_StartOAuthSession_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "source/v1/oauth.proto", }
OAuthService_ServiceDesc is the grpc.ServiceDesc for OAuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SourceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "source.SourceService", HandlerType: (*SourceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Artists", Handler: _SourceService_Artists_Handler, }, { MethodName: "Albums", Handler: _SourceService_Albums_Handler, }, { MethodName: "Tracks", Handler: _SourceService_Tracks_Handler, }, { MethodName: "IsUserAuthed", Handler: _SourceService_IsUserAuthed_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "source/v1/source.proto", }
SourceService_ServiceDesc is the grpc.ServiceDesc for SourceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOAuthServiceServer ¶
func RegisterOAuthServiceServer(s grpc.ServiceRegistrar, srv OAuthServiceServer)
func RegisterSourceServiceServer ¶
func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer)
Types ¶
type Album ¶
type Album struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The Name of the Album. PlayCount int32 `protobuf:"varint,2,opt,name=play_count,json=playCount,proto3" json:"play_count,omitempty"` // The number of times the user has played this Album. ArtistName string `protobuf:"bytes,3,opt,name=artist_name,json=artistName,proto3" json:"artist_name,omitempty"` // The name of the artist(s) who performed this Album. Images []*v1.Image `protobuf:"bytes,4,rep,name=images,proto3" json:"images,omitempty"` // The artwork(s) for this Album. // contains filtered or unexported fields }
func (*Album) Descriptor
deprecated
func (*Album) GetArtistName ¶
func (*Album) GetPlayCount ¶
func (*Album) ProtoMessage ¶
func (*Album) ProtoMessage()
func (*Album) ProtoReflect ¶
func (x *Album) ProtoReflect() protoreflect.Message
type AlbumsRequest ¶
type AlbumsRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The user to request Artist s info for. Lang string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"` // The language to return results in. Default: en-GB. Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // The maximum number of Album s to return. TimeRange *v1.TimeRange `protobuf:"bytes,4,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` // The time period to filter scrobbles within. Artist string `protobuf:"bytes,5,opt,name=artist,proto3" json:"artist,omitempty"` // Which Artist s Album s to return. // contains filtered or unexported fields }
func (*AlbumsRequest) Descriptor
deprecated
func (*AlbumsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AlbumsRequest.ProtoReflect.Descriptor instead.
func (*AlbumsRequest) GetArtist ¶
func (x *AlbumsRequest) GetArtist() string
func (*AlbumsRequest) GetLang ¶
func (x *AlbumsRequest) GetLang() string
func (*AlbumsRequest) GetLimit ¶
func (x *AlbumsRequest) GetLimit() int32
func (*AlbumsRequest) GetTimeRange ¶
func (x *AlbumsRequest) GetTimeRange() *v1.TimeRange
func (*AlbumsRequest) GetUserId ¶
func (x *AlbumsRequest) GetUserId() string
func (*AlbumsRequest) ProtoMessage ¶
func (*AlbumsRequest) ProtoMessage()
func (*AlbumsRequest) ProtoReflect ¶
func (x *AlbumsRequest) ProtoReflect() protoreflect.Message
func (*AlbumsRequest) Reset ¶
func (x *AlbumsRequest) Reset()
func (*AlbumsRequest) String ¶
func (x *AlbumsRequest) String() string
type AlbumsResponse ¶
type AlbumsResponse struct { Albums []*Album `protobuf:"bytes,1,rep,name=albums,proto3" json:"albums,omitempty"` // contains filtered or unexported fields }
func (*AlbumsResponse) Descriptor
deprecated
func (*AlbumsResponse) Descriptor() ([]byte, []int)
Deprecated: Use AlbumsResponse.ProtoReflect.Descriptor instead.
func (*AlbumsResponse) GetAlbums ¶
func (x *AlbumsResponse) GetAlbums() []*Album
func (*AlbumsResponse) ProtoMessage ¶
func (*AlbumsResponse) ProtoMessage()
func (*AlbumsResponse) ProtoReflect ¶
func (x *AlbumsResponse) ProtoReflect() protoreflect.Message
func (*AlbumsResponse) Reset ¶
func (x *AlbumsResponse) Reset()
func (*AlbumsResponse) String ¶
func (x *AlbumsResponse) String() string
type Artist ¶
type Artist struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The Name of the Artist. PlayCount int32 `protobuf:"varint,2,opt,name=play_count,json=playCount,proto3" json:"play_count,omitempty"` // The number of times the user has played this Artist. Images []*v1.Image `protobuf:"bytes,3,rep,name=images,proto3" json:"images,omitempty"` // The artwork(s) for this Artist. // contains filtered or unexported fields }
func (*Artist) Descriptor
deprecated
func (*Artist) GetPlayCount ¶
func (*Artist) ProtoMessage ¶
func (*Artist) ProtoMessage()
func (*Artist) ProtoReflect ¶
func (x *Artist) ProtoReflect() protoreflect.Message
type ArtistsRequest ¶
type ArtistsRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The user to request Artist s info for. Lang string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"` // The language to return results in. Default: en-GB. Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // The maximum number of Artist s to return. TimeRange *v1.TimeRange `protobuf:"bytes,4,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` // The time period to filter scrobbles within. // contains filtered or unexported fields }
func (*ArtistsRequest) Descriptor
deprecated
func (*ArtistsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ArtistsRequest.ProtoReflect.Descriptor instead.
func (*ArtistsRequest) GetLang ¶
func (x *ArtistsRequest) GetLang() string
func (*ArtistsRequest) GetLimit ¶
func (x *ArtistsRequest) GetLimit() int32
func (*ArtistsRequest) GetTimeRange ¶
func (x *ArtistsRequest) GetTimeRange() *v1.TimeRange
func (*ArtistsRequest) GetUserId ¶
func (x *ArtistsRequest) GetUserId() string
func (*ArtistsRequest) ProtoMessage ¶
func (*ArtistsRequest) ProtoMessage()
func (*ArtistsRequest) ProtoReflect ¶
func (x *ArtistsRequest) ProtoReflect() protoreflect.Message
func (*ArtistsRequest) Reset ¶
func (x *ArtistsRequest) Reset()
func (*ArtistsRequest) String ¶
func (x *ArtistsRequest) String() string
type ArtistsResponse ¶
type ArtistsResponse struct { Artists []*Artist `protobuf:"bytes,1,rep,name=artists,proto3" json:"artists,omitempty"` // contains filtered or unexported fields }
func (*ArtistsResponse) Descriptor
deprecated
func (*ArtistsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArtistsResponse.ProtoReflect.Descriptor instead.
func (*ArtistsResponse) GetArtists ¶
func (x *ArtistsResponse) GetArtists() []*Artist
func (*ArtistsResponse) ProtoMessage ¶
func (*ArtistsResponse) ProtoMessage()
func (*ArtistsResponse) ProtoReflect ¶
func (x *ArtistsResponse) ProtoReflect() protoreflect.Message
func (*ArtistsResponse) Reset ¶
func (x *ArtistsResponse) Reset()
func (*ArtistsResponse) String ¶
func (x *ArtistsResponse) String() string
type GetTokenRequest ¶
type GetTokenRequest struct {
// contains filtered or unexported fields
}
func (*GetTokenRequest) Descriptor
deprecated
func (*GetTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead.
func (*GetTokenRequest) ProtoMessage ¶
func (*GetTokenRequest) ProtoMessage()
func (*GetTokenRequest) ProtoReflect ¶
func (x *GetTokenRequest) ProtoReflect() protoreflect.Message
func (*GetTokenRequest) Reset ¶
func (x *GetTokenRequest) Reset()
func (*GetTokenRequest) String ¶
func (x *GetTokenRequest) String() string
type GetTokenResponse ¶
type GetTokenResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // The OAuth token returned OpenUrl string `protobuf:"bytes,2,opt,name=open_url,json=openUrl,proto3" json:"open_url,omitempty"` // The OAuth URL the client should open to authorize the app // contains filtered or unexported fields }
func (*GetTokenResponse) Descriptor
deprecated
func (*GetTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenResponse.ProtoReflect.Descriptor instead.
func (*GetTokenResponse) GetOpenUrl ¶
func (x *GetTokenResponse) GetOpenUrl() string
func (*GetTokenResponse) GetToken ¶
func (x *GetTokenResponse) GetToken() string
func (*GetTokenResponse) ProtoMessage ¶
func (*GetTokenResponse) ProtoMessage()
func (*GetTokenResponse) ProtoReflect ¶
func (x *GetTokenResponse) ProtoReflect() protoreflect.Message
func (*GetTokenResponse) Reset ¶
func (x *GetTokenResponse) Reset()
func (*GetTokenResponse) String ¶
func (x *GetTokenResponse) String() string
type IsUserAuthedRequest ¶
type IsUserAuthedRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The user to check the auth state for. // contains filtered or unexported fields }
func (*IsUserAuthedRequest) Descriptor
deprecated
func (*IsUserAuthedRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsUserAuthedRequest.ProtoReflect.Descriptor instead.
func (*IsUserAuthedRequest) GetUserId ¶
func (x *IsUserAuthedRequest) GetUserId() string
func (*IsUserAuthedRequest) ProtoMessage ¶
func (*IsUserAuthedRequest) ProtoMessage()
func (*IsUserAuthedRequest) ProtoReflect ¶
func (x *IsUserAuthedRequest) ProtoReflect() protoreflect.Message
func (*IsUserAuthedRequest) Reset ¶
func (x *IsUserAuthedRequest) Reset()
func (*IsUserAuthedRequest) String ¶
func (x *IsUserAuthedRequest) String() string
type IsUserAuthedResponse ¶
type IsUserAuthedResponse struct { // Whether murum is authorized to use this user's info by the Source. // For services that don't implement OAuthService, this will always be true. HasAuth bool `protobuf:"varint,1,opt,name=has_auth,json=hasAuth,proto3" json:"has_auth,omitempty"` // contains filtered or unexported fields }
func (*IsUserAuthedResponse) Descriptor
deprecated
func (*IsUserAuthedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsUserAuthedResponse.ProtoReflect.Descriptor instead.
func (*IsUserAuthedResponse) GetHasAuth ¶
func (x *IsUserAuthedResponse) GetHasAuth() bool
func (*IsUserAuthedResponse) ProtoMessage ¶
func (*IsUserAuthedResponse) ProtoMessage()
func (*IsUserAuthedResponse) ProtoReflect ¶
func (x *IsUserAuthedResponse) ProtoReflect() protoreflect.Message
func (*IsUserAuthedResponse) Reset ¶
func (x *IsUserAuthedResponse) Reset()
func (*IsUserAuthedResponse) String ¶
func (x *IsUserAuthedResponse) String() string
type OAuthServiceClient ¶
type OAuthServiceClient interface { GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenResponse, error) StartOAuthSession(ctx context.Context, in *StartOAuthSessionRequest, opts ...grpc.CallOption) (*StartOAuthSessionResponse, error) }
OAuthServiceClient is the client API for OAuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOAuthServiceClient ¶
func NewOAuthServiceClient(cc grpc.ClientConnInterface) OAuthServiceClient
type OAuthServiceServer ¶
type OAuthServiceServer interface { GetToken(context.Context, *GetTokenRequest) (*GetTokenResponse, error) StartOAuthSession(context.Context, *StartOAuthSessionRequest) (*StartOAuthSessionResponse, error) // contains filtered or unexported methods }
OAuthServiceServer is the server API for OAuthService service. All implementations must embed UnimplementedOAuthServiceServer for forward compatibility
type SourceServiceClient ¶
type SourceServiceClient interface { Artists(ctx context.Context, in *ArtistsRequest, opts ...grpc.CallOption) (*ArtistsResponse, error) Albums(ctx context.Context, in *AlbumsRequest, opts ...grpc.CallOption) (*AlbumsResponse, error) Tracks(ctx context.Context, in *TracksRequest, opts ...grpc.CallOption) (*TracksResponse, error) // All SourceService s must implement this. If it is an OAuthService Source // and the client has not yet performed the OAuth flow, then the client must // first call the OAuthService methods for this SourceService. // If the Service does not implement the OAuthService, then this should always // return true. IsUserAuthed(ctx context.Context, in *IsUserAuthedRequest, opts ...grpc.CallOption) (*IsUserAuthedResponse, error) }
SourceServiceClient is the client API for SourceService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSourceServiceClient ¶
func NewSourceServiceClient(cc grpc.ClientConnInterface) SourceServiceClient
type SourceServiceServer ¶
type SourceServiceServer interface { Artists(context.Context, *ArtistsRequest) (*ArtistsResponse, error) Albums(context.Context, *AlbumsRequest) (*AlbumsResponse, error) Tracks(context.Context, *TracksRequest) (*TracksResponse, error) // All SourceService s must implement this. If it is an OAuthService Source // and the client has not yet performed the OAuth flow, then the client must // first call the OAuthService methods for this SourceService. // If the Service does not implement the OAuthService, then this should always // return true. IsUserAuthed(context.Context, *IsUserAuthedRequest) (*IsUserAuthedResponse, error) // contains filtered or unexported methods }
SourceServiceServer is the server API for SourceService service. All implementations must embed UnimplementedSourceServiceServer for forward compatibility
type StartOAuthSessionRequest ¶
type StartOAuthSessionRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // The now-authenticated token UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*StartOAuthSessionRequest) Descriptor
deprecated
func (*StartOAuthSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartOAuthSessionRequest.ProtoReflect.Descriptor instead.
func (*StartOAuthSessionRequest) GetToken ¶
func (x *StartOAuthSessionRequest) GetToken() string
func (*StartOAuthSessionRequest) GetUserId ¶
func (x *StartOAuthSessionRequest) GetUserId() string
func (*StartOAuthSessionRequest) ProtoMessage ¶
func (*StartOAuthSessionRequest) ProtoMessage()
func (*StartOAuthSessionRequest) ProtoReflect ¶
func (x *StartOAuthSessionRequest) ProtoReflect() protoreflect.Message
func (*StartOAuthSessionRequest) Reset ¶
func (x *StartOAuthSessionRequest) Reset()
func (*StartOAuthSessionRequest) String ¶
func (x *StartOAuthSessionRequest) String() string
type StartOAuthSessionResponse ¶
type StartOAuthSessionResponse struct {
// contains filtered or unexported fields
}
func (*StartOAuthSessionResponse) Descriptor
deprecated
func (*StartOAuthSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartOAuthSessionResponse.ProtoReflect.Descriptor instead.
func (*StartOAuthSessionResponse) ProtoMessage ¶
func (*StartOAuthSessionResponse) ProtoMessage()
func (*StartOAuthSessionResponse) ProtoReflect ¶
func (x *StartOAuthSessionResponse) ProtoReflect() protoreflect.Message
func (*StartOAuthSessionResponse) Reset ¶
func (x *StartOAuthSessionResponse) Reset()
func (*StartOAuthSessionResponse) String ¶
func (x *StartOAuthSessionResponse) String() string
type Track ¶
type Track struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The Name of the Track. PlayCount int32 `protobuf:"varint,2,opt,name=play_count,json=playCount,proto3" json:"play_count,omitempty"` // The number of times the user has played this Track. AlbumName string `protobuf:"bytes,3,opt,name=album_name,json=albumName,proto3" json:"album_name,omitempty"` // The name of the Album the Track appears on. ArtistName string `protobuf:"bytes,4,opt,name=artist_name,json=artistName,proto3" json:"artist_name,omitempty"` // The name of the artist(s) who performed this Track. Images []*v1.Image `protobuf:"bytes,5,rep,name=images,proto3" json:"images,omitempty"` // The artwork(s) for this Track. // contains filtered or unexported fields }
func (*Track) Descriptor
deprecated
func (*Track) GetAlbumName ¶
func (*Track) GetArtistName ¶
func (*Track) GetPlayCount ¶
func (*Track) ProtoMessage ¶
func (*Track) ProtoMessage()
func (*Track) ProtoReflect ¶
func (x *Track) ProtoReflect() protoreflect.Message
type TracksRequest ¶
type TracksRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The user to request Track s info for. Lang string `protobuf:"bytes,2,opt,name=lang,proto3" json:"lang,omitempty"` // The language to return results in. Default: en-GB. Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // The maximum number of Track s to return. TimeRange *v1.TimeRange `protobuf:"bytes,4,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` // The time period to filter scrobbles within. Artist string `protobuf:"bytes,5,opt,name=artist,proto3" json:"artist,omitempty"` // Which Artist s Track s to return. If Album is set, Artist must appear on it. Album string `protobuf:"bytes,6,opt,name=album,proto3" json:"album,omitempty"` // Which Album s Track s to return. If Artist is set, they must appear on it. // contains filtered or unexported fields }
func (*TracksRequest) Descriptor
deprecated
func (*TracksRequest) Descriptor() ([]byte, []int)
Deprecated: Use TracksRequest.ProtoReflect.Descriptor instead.
func (*TracksRequest) GetAlbum ¶
func (x *TracksRequest) GetAlbum() string
func (*TracksRequest) GetArtist ¶
func (x *TracksRequest) GetArtist() string
func (*TracksRequest) GetLang ¶
func (x *TracksRequest) GetLang() string
func (*TracksRequest) GetLimit ¶
func (x *TracksRequest) GetLimit() int32
func (*TracksRequest) GetTimeRange ¶
func (x *TracksRequest) GetTimeRange() *v1.TimeRange
func (*TracksRequest) GetUserId ¶
func (x *TracksRequest) GetUserId() string
func (*TracksRequest) ProtoMessage ¶
func (*TracksRequest) ProtoMessage()
func (*TracksRequest) ProtoReflect ¶
func (x *TracksRequest) ProtoReflect() protoreflect.Message
func (*TracksRequest) Reset ¶
func (x *TracksRequest) Reset()
func (*TracksRequest) String ¶
func (x *TracksRequest) String() string
type TracksResponse ¶
type TracksResponse struct { Tracks []*Track `protobuf:"bytes,1,rep,name=tracks,proto3" json:"tracks,omitempty"` // contains filtered or unexported fields }
func (*TracksResponse) Descriptor
deprecated
func (*TracksResponse) Descriptor() ([]byte, []int)
Deprecated: Use TracksResponse.ProtoReflect.Descriptor instead.
func (*TracksResponse) GetTracks ¶
func (x *TracksResponse) GetTracks() []*Track
func (*TracksResponse) ProtoMessage ¶
func (*TracksResponse) ProtoMessage()
func (*TracksResponse) ProtoReflect ¶
func (x *TracksResponse) ProtoReflect() protoreflect.Message
func (*TracksResponse) Reset ¶
func (x *TracksResponse) Reset()
func (*TracksResponse) String ¶
func (x *TracksResponse) String() string
type UnimplementedOAuthServiceServer ¶
type UnimplementedOAuthServiceServer struct { }
UnimplementedOAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOAuthServiceServer) GetToken ¶
func (UnimplementedOAuthServiceServer) GetToken(context.Context, *GetTokenRequest) (*GetTokenResponse, error)
func (UnimplementedOAuthServiceServer) StartOAuthSession ¶
func (UnimplementedOAuthServiceServer) StartOAuthSession(context.Context, *StartOAuthSessionRequest) (*StartOAuthSessionResponse, error)
type UnimplementedSourceServiceServer ¶
type UnimplementedSourceServiceServer struct { }
UnimplementedSourceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSourceServiceServer) Albums ¶
func (UnimplementedSourceServiceServer) Albums(context.Context, *AlbumsRequest) (*AlbumsResponse, error)
func (UnimplementedSourceServiceServer) Artists ¶
func (UnimplementedSourceServiceServer) Artists(context.Context, *ArtistsRequest) (*ArtistsResponse, error)
func (UnimplementedSourceServiceServer) IsUserAuthed ¶
func (UnimplementedSourceServiceServer) IsUserAuthed(context.Context, *IsUserAuthedRequest) (*IsUserAuthedResponse, error)
func (UnimplementedSourceServiceServer) Tracks ¶
func (UnimplementedSourceServiceServer) Tracks(context.Context, *TracksRequest) (*TracksResponse, error)
type UnsafeOAuthServiceServer ¶
type UnsafeOAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OAuthServiceServer will result in compilation errors.
type UnsafeSourceServiceServer ¶
type UnsafeSourceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSourceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SourceServiceServer will result in compilation errors.