artistProto

package
v0.0.0-...-704a905 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Artist.ProtoReflect.Descriptor instead.

func (*Artist) GetCountFollowers

func (x *Artist) GetCountFollowers() int64

func (*Artist) GetCountLikes

func (x *Artist) GetCountLikes() int64

func (*Artist) GetCountListenings

func (x *Artist) GetCountListenings() int64

func (*Artist) GetId

func (x *Artist) GetId() int64

func (*Artist) GetName

func (x *Artist) GetName() string

func (*Artist) ProtoMessage

func (*Artist) ProtoMessage()

func (*Artist) ProtoReflect

func (x *Artist) ProtoReflect() protoreflect.Message

func (*Artist) Reset

func (x *Artist) Reset()

func (*Artist) String

func (x *Artist) String() string

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 (*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.

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 (*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

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) Create

func (UnimplementedArtistUseCaseServer) Delete

func (UnimplementedArtistUseCaseServer) GetAll

func (UnimplementedArtistUseCaseServer) GetById

func (UnimplementedArtistUseCaseServer) GetFavorites

func (UnimplementedArtistUseCaseServer) GetLastId

func (UnimplementedArtistUseCaseServer) GetPopular

func (UnimplementedArtistUseCaseServer) GetSize

func (UnimplementedArtistUseCaseServer) Like

func (UnimplementedArtistUseCaseServer) RemoveFromFavorites

func (UnimplementedArtistUseCaseServer) SearchByName

func (UnimplementedArtistUseCaseServer) Update

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL