Documentation ¶
Index ¶
- Variables
- func RegisterArtistUseCaseServer(s grpc.ServiceRegistrar, srv ArtistUseCaseServer)
- type Artist
- func (*Artist) Descriptor() ([]byte, []int)deprecated
- func (x *Artist) GetCountFollowers() int64
- func (x *Artist) GetCountLikes() int64
- func (x *Artist) GetCountListenings() int64
- func (x *Artist) GetId() int64
- func (x *Artist) GetName() string
- func (*Artist) ProtoMessage()
- func (x *Artist) ProtoReflect() protoreflect.Message
- func (x *Artist) Reset()
- func (x *Artist) String() string
- type ArtistDataTransfer
- func (*ArtistDataTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *ArtistDataTransfer) GetAlbums() map[int64]*albumProto.AlbumDataTransfer
- func (x *ArtistDataTransfer) GetCover() string
- func (x *ArtistDataTransfer) GetId() int64
- func (x *ArtistDataTransfer) GetIsLiked() bool
- func (x *ArtistDataTransfer) GetLikes() int64
- func (x *ArtistDataTransfer) GetName() string
- func (*ArtistDataTransfer) ProtoMessage()
- func (x *ArtistDataTransfer) ProtoReflect() protoreflect.Message
- func (x *ArtistDataTransfer) Reset()
- func (x *ArtistDataTransfer) String() string
- type ArtistUseCaseClient
- type ArtistUseCaseResponse
- func (*ArtistUseCaseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArtistUseCaseResponse) GetData() *ArtistDataTransfer
- func (*ArtistUseCaseResponse) ProtoMessage()
- func (x *ArtistUseCaseResponse) ProtoReflect() protoreflect.Message
- func (x *ArtistUseCaseResponse) Reset()
- func (x *ArtistUseCaseResponse) String() string
- type ArtistUseCaseServer
- type ArtistsResponse
- type UnimplementedArtistUseCaseServer
- func (UnimplementedArtistUseCaseServer) AddToFavorites(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error)
- func (UnimplementedArtistUseCaseServer) Create(context.Context, *Artist) (*empty.Empty, error)
- func (UnimplementedArtistUseCaseServer) Delete(context.Context, *gatewayProto.IdArg) (*empty.Empty, error)
- func (UnimplementedArtistUseCaseServer) GetAll(context.Context, *empty.Empty) (*ArtistsResponse, error)
- func (UnimplementedArtistUseCaseServer) GetById(context.Context, *gatewayProto.IdArg) (*Artist, error)
- func (UnimplementedArtistUseCaseServer) GetFavorites(context.Context, *gatewayProto.IdArg) (*ArtistsResponse, error)
- func (UnimplementedArtistUseCaseServer) GetLastId(context.Context, *empty.Empty) (*gatewayProto.IntResponse, error)
- func (UnimplementedArtistUseCaseServer) GetPopular(context.Context, *empty.Empty) (*ArtistsResponse, error)
- func (UnimplementedArtistUseCaseServer) GetSize(context.Context, *empty.Empty) (*gatewayProto.IntResponse, error)
- func (UnimplementedArtistUseCaseServer) Like(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error)
- func (UnimplementedArtistUseCaseServer) LikeCheckByUser(context.Context, *gatewayProto.UserIdArtistIdArg) (*gatewayProto.LikeCheckResponse, error)
- func (UnimplementedArtistUseCaseServer) RemoveFromFavorites(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error)
- func (UnimplementedArtistUseCaseServer) SearchByName(context.Context, *gatewayProto.StringArg) (*ArtistsResponse, error)
- func (UnimplementedArtistUseCaseServer) Update(context.Context, *Artist) (*empty.Empty, error)
- type UnsafeArtistUseCaseServer
Constants ¶
This section is empty.
Variables ¶
var ArtistUseCase_ServiceDesc = grpc.ServiceDesc{ ServiceName: "track.ArtistUseCase", HandlerType: (*ArtistUseCaseServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAll", Handler: _ArtistUseCase_GetAll_Handler, }, { MethodName: "GetLastId", Handler: _ArtistUseCase_GetLastId_Handler, }, { MethodName: "Create", Handler: _ArtistUseCase_Create_Handler, }, { MethodName: "Update", Handler: _ArtistUseCase_Update_Handler, }, { MethodName: "Delete", Handler: _ArtistUseCase_Delete_Handler, }, { MethodName: "GetById", Handler: _ArtistUseCase_GetById_Handler, }, { MethodName: "GetPopular", Handler: _ArtistUseCase_GetPopular_Handler, }, { MethodName: "GetSize", Handler: _ArtistUseCase_GetSize_Handler, }, { MethodName: "SearchByName", Handler: _ArtistUseCase_SearchByName_Handler, }, { MethodName: "GetFavorites", Handler: _ArtistUseCase_GetFavorites_Handler, }, { MethodName: "AddToFavorites", Handler: _ArtistUseCase_AddToFavorites_Handler, }, { MethodName: "RemoveFromFavorites", Handler: _ArtistUseCase_RemoveFromFavorites_Handler, }, { MethodName: "Like", Handler: _ArtistUseCase_Like_Handler, }, { MethodName: "LikeCheckByUser", Handler: _ArtistUseCase_LikeCheckByUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "artist/artistProto/artist.proto", }
ArtistUseCase_ServiceDesc is the grpc.ServiceDesc for ArtistUseCase service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_artist_artistProto_artist_proto protoreflect.FileDescriptor
Functions ¶
func RegisterArtistUseCaseServer ¶
func RegisterArtistUseCaseServer(s grpc.ServiceRegistrar, srv ArtistUseCaseServer)
Types ¶
type Artist ¶
type Artist struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" example:"6" db:"id" validate:"min=0,nonnil"` // @gotags: json:"id" example:"6" db:"id" validate:"min=0,nonnil" Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" example:"Imagine Dragons" db:"name" validate:"max=256,nonnil"` // @gotags: json:"name" example:"Imagine Dragons" db:"name" validate:"max=256,nonnil" CountLikes int64 `` // @gotags: json:"countLikes" example:"54" db:"count_likes" validate:"min=0,nonnil" /* 135-byte string literal not displayed */ CountFollowers int64 `` // @gotags: json:"countFollowers" example:"1001" db:"count_followers" validate:"min=0,nonnil" /* 153-byte string literal not displayed */ CountListenings int64 `` // @gotags: json:"countListening" example:"7654" db:"count_listening" validate:"min=0,nonnil" /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Artist) Descriptor
deprecated
func (*Artist) GetCountFollowers ¶
func (*Artist) GetCountLikes ¶
func (*Artist) GetCountListenings ¶
func (*Artist) ProtoMessage ¶
func (*Artist) ProtoMessage()
func (*Artist) ProtoReflect ¶
func (x *Artist) ProtoReflect() protoreflect.Message
type ArtistDataTransfer ¶
type ArtistDataTransfer struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" example:"1"` // @gotags: json:"id" example:"1" Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" example:"Mercury"` // @gotags: json:"name" example:"Mercury" Cover string `protobuf:"bytes,3,opt,name=cover,proto3" json:"cover" example:"assets/artist_1.png"` // @gotags: json:"cover" example:"assets/artist_1.png" Likes int64 `protobuf:"varint,4,opt,name=likes,proto3" json:"likes" example:"5"` // @gotags: json:"likes" example:"5" IsLiked bool `protobuf:"varint,5,opt,name=isLiked,proto3" json:"isLiked" example:"true"` // @gotags: json:"isLiked" example:"true" Albums map[int64]*albumProto.AlbumDataTransfer `` // @gotags: json:"albums" /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ArtistDataTransfer) Descriptor
deprecated
func (*ArtistDataTransfer) Descriptor() ([]byte, []int)
Deprecated: Use ArtistDataTransfer.ProtoReflect.Descriptor instead.
func (*ArtistDataTransfer) GetAlbums ¶
func (x *ArtistDataTransfer) GetAlbums() map[int64]*albumProto.AlbumDataTransfer
func (*ArtistDataTransfer) GetCover ¶
func (x *ArtistDataTransfer) GetCover() string
func (*ArtistDataTransfer) GetId ¶
func (x *ArtistDataTransfer) GetId() int64
func (*ArtistDataTransfer) GetIsLiked ¶
func (x *ArtistDataTransfer) GetIsLiked() bool
func (*ArtistDataTransfer) GetLikes ¶
func (x *ArtistDataTransfer) GetLikes() int64
func (*ArtistDataTransfer) GetName ¶
func (x *ArtistDataTransfer) GetName() string
func (*ArtistDataTransfer) ProtoMessage ¶
func (*ArtistDataTransfer) ProtoMessage()
func (*ArtistDataTransfer) ProtoReflect ¶
func (x *ArtistDataTransfer) ProtoReflect() protoreflect.Message
func (*ArtistDataTransfer) Reset ¶
func (x *ArtistDataTransfer) Reset()
func (*ArtistDataTransfer) String ¶
func (x *ArtistDataTransfer) String() string
type ArtistUseCaseClient ¶
type ArtistUseCaseClient interface { GetAll(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ArtistsResponse, error) GetLastId(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*gatewayProto.IntResponse, error) Create(ctx context.Context, in *Artist, opts ...grpc.CallOption) (*empty.Empty, error) Update(ctx context.Context, in *Artist, opts ...grpc.CallOption) (*empty.Empty, error) Delete(ctx context.Context, in *gatewayProto.IdArg, opts ...grpc.CallOption) (*empty.Empty, error) GetById(ctx context.Context, in *gatewayProto.IdArg, opts ...grpc.CallOption) (*Artist, error) GetPopular(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ArtistsResponse, error) GetSize(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*gatewayProto.IntResponse, error) SearchByName(ctx context.Context, in *gatewayProto.StringArg, opts ...grpc.CallOption) (*ArtistsResponse, error) GetFavorites(ctx context.Context, in *gatewayProto.IdArg, opts ...grpc.CallOption) (*ArtistsResponse, error) AddToFavorites(ctx context.Context, in *gatewayProto.UserIdArtistIdArg, opts ...grpc.CallOption) (*empty.Empty, error) RemoveFromFavorites(ctx context.Context, in *gatewayProto.UserIdArtistIdArg, opts ...grpc.CallOption) (*empty.Empty, error) Like(ctx context.Context, in *gatewayProto.UserIdArtistIdArg, opts ...grpc.CallOption) (*empty.Empty, error) LikeCheckByUser(ctx context.Context, in *gatewayProto.UserIdArtistIdArg, opts ...grpc.CallOption) (*gatewayProto.LikeCheckResponse, error) }
ArtistUseCaseClient is the client API for ArtistUseCase 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 NewArtistUseCaseClient ¶
func NewArtistUseCaseClient(cc grpc.ClientConnInterface) ArtistUseCaseClient
type ArtistUseCaseResponse ¶
type ArtistUseCaseResponse struct { Data *ArtistDataTransfer `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ArtistUseCaseResponse) Descriptor
deprecated
func (*ArtistUseCaseResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArtistUseCaseResponse.ProtoReflect.Descriptor instead.
func (*ArtistUseCaseResponse) GetData ¶
func (x *ArtistUseCaseResponse) GetData() *ArtistDataTransfer
func (*ArtistUseCaseResponse) ProtoMessage ¶
func (*ArtistUseCaseResponse) ProtoMessage()
func (*ArtistUseCaseResponse) ProtoReflect ¶
func (x *ArtistUseCaseResponse) ProtoReflect() protoreflect.Message
func (*ArtistUseCaseResponse) Reset ¶
func (x *ArtistUseCaseResponse) Reset()
func (*ArtistUseCaseResponse) String ¶
func (x *ArtistUseCaseResponse) String() string
type ArtistUseCaseServer ¶
type ArtistUseCaseServer interface { GetAll(context.Context, *empty.Empty) (*ArtistsResponse, error) GetLastId(context.Context, *empty.Empty) (*gatewayProto.IntResponse, error) Create(context.Context, *Artist) (*empty.Empty, error) Update(context.Context, *Artist) (*empty.Empty, error) Delete(context.Context, *gatewayProto.IdArg) (*empty.Empty, error) GetById(context.Context, *gatewayProto.IdArg) (*Artist, error) GetPopular(context.Context, *empty.Empty) (*ArtistsResponse, error) GetSize(context.Context, *empty.Empty) (*gatewayProto.IntResponse, error) SearchByName(context.Context, *gatewayProto.StringArg) (*ArtistsResponse, error) GetFavorites(context.Context, *gatewayProto.IdArg) (*ArtistsResponse, error) AddToFavorites(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error) RemoveFromFavorites(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error) Like(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error) LikeCheckByUser(context.Context, *gatewayProto.UserIdArtistIdArg) (*gatewayProto.LikeCheckResponse, error) // contains filtered or unexported methods }
ArtistUseCaseServer is the server API for ArtistUseCase service. All implementations must embed UnimplementedArtistUseCaseServer for forward compatibility
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 UnimplementedArtistUseCaseServer ¶
type UnimplementedArtistUseCaseServer struct { }
UnimplementedArtistUseCaseServer must be embedded to have forward compatible implementations.
func (UnimplementedArtistUseCaseServer) AddToFavorites ¶
func (UnimplementedArtistUseCaseServer) AddToFavorites(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error)
func (UnimplementedArtistUseCaseServer) Delete ¶
func (UnimplementedArtistUseCaseServer) Delete(context.Context, *gatewayProto.IdArg) (*empty.Empty, error)
func (UnimplementedArtistUseCaseServer) GetAll ¶
func (UnimplementedArtistUseCaseServer) GetAll(context.Context, *empty.Empty) (*ArtistsResponse, error)
func (UnimplementedArtistUseCaseServer) GetById ¶
func (UnimplementedArtistUseCaseServer) GetById(context.Context, *gatewayProto.IdArg) (*Artist, error)
func (UnimplementedArtistUseCaseServer) GetFavorites ¶
func (UnimplementedArtistUseCaseServer) GetFavorites(context.Context, *gatewayProto.IdArg) (*ArtistsResponse, error)
func (UnimplementedArtistUseCaseServer) GetLastId ¶
func (UnimplementedArtistUseCaseServer) GetLastId(context.Context, *empty.Empty) (*gatewayProto.IntResponse, error)
func (UnimplementedArtistUseCaseServer) GetPopular ¶
func (UnimplementedArtistUseCaseServer) GetPopular(context.Context, *empty.Empty) (*ArtistsResponse, error)
func (UnimplementedArtistUseCaseServer) GetSize ¶
func (UnimplementedArtistUseCaseServer) GetSize(context.Context, *empty.Empty) (*gatewayProto.IntResponse, error)
func (UnimplementedArtistUseCaseServer) Like ¶
func (UnimplementedArtistUseCaseServer) Like(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error)
func (UnimplementedArtistUseCaseServer) LikeCheckByUser ¶
func (UnimplementedArtistUseCaseServer) LikeCheckByUser(context.Context, *gatewayProto.UserIdArtistIdArg) (*gatewayProto.LikeCheckResponse, error)
func (UnimplementedArtistUseCaseServer) RemoveFromFavorites ¶
func (UnimplementedArtistUseCaseServer) RemoveFromFavorites(context.Context, *gatewayProto.UserIdArtistIdArg) (*empty.Empty, error)
func (UnimplementedArtistUseCaseServer) SearchByName ¶
func (UnimplementedArtistUseCaseServer) SearchByName(context.Context, *gatewayProto.StringArg) (*ArtistsResponse, error)
type UnsafeArtistUseCaseServer ¶
type UnsafeArtistUseCaseServer interface {
// contains filtered or unexported methods
}
UnsafeArtistUseCaseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ArtistUseCaseServer will result in compilation errors.