playlistProto

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 File_playlist_playlistProto_playlist_proto protoreflect.FileDescriptor
View Source
var PlaylistUseCase_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "playlist.PlaylistUseCase",
	HandlerType: (*PlaylistUseCaseServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAll",
			Handler:    _PlaylistUseCase_GetAll_Handler,
		},
		{
			MethodName: "GetAllOfCurrentUser",
			Handler:    _PlaylistUseCase_GetAllOfCurrentUser_Handler,
		},
		{
			MethodName: "GetLastId",
			Handler:    _PlaylistUseCase_GetLastId_Handler,
		},
		{
			MethodName: "GetLastIdOfCurrentUser",
			Handler:    _PlaylistUseCase_GetLastIdOfCurrentUser_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _PlaylistUseCase_Create_Handler,
		},
		{
			MethodName: "AddToPlaylist",
			Handler:    _PlaylistUseCase_AddToPlaylist_Handler,
		},
		{
			MethodName: "RemoveFromPlaylist",
			Handler:    _PlaylistUseCase_RemoveFromPlaylist_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _PlaylistUseCase_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _PlaylistUseCase_Delete_Handler,
		},
		{
			MethodName: "GetById",
			Handler:    _PlaylistUseCase_GetById_Handler,
		},
		{
			MethodName: "GetByIdOfCurrentUser",
			Handler:    _PlaylistUseCase_GetByIdOfCurrentUser_Handler,
		},
		{
			MethodName: "GetSize",
			Handler:    _PlaylistUseCase_GetSize_Handler,
		},
		{
			MethodName: "GetSizeOfCurrentUser",
			Handler:    _PlaylistUseCase_GetSizeOfCurrentUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "playlist/playlistProto/playlist.proto",
}

PlaylistUseCase_ServiceDesc is the grpc.ServiceDesc for PlaylistUseCase service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPlaylistUseCaseServer

func RegisterPlaylistUseCaseServer(s grpc.ServiceRegistrar, srv PlaylistUseCaseServer)

Types

type Playlist

type Playlist struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id" example:"4" db:"id" validate:"min=0"`                     // @gotags: json:"id" example:"4" db:"id" validate:"min=0"
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title" example:"Rain" db:"title" validate:"max=256,nonnil"` // @gotags: json:"title" example:"Rain" db:"title" validate:"max=256,nonnil"
	// contains filtered or unexported fields
}

func (*Playlist) Descriptor deprecated

func (*Playlist) Descriptor() ([]byte, []int)

Deprecated: Use Playlist.ProtoReflect.Descriptor instead.

func (*Playlist) GetId

func (x *Playlist) GetId() int64

func (*Playlist) GetTitle

func (x *Playlist) GetTitle() string

func (*Playlist) ProtoMessage

func (*Playlist) ProtoMessage()

func (*Playlist) ProtoReflect

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

func (*Playlist) Reset

func (x *Playlist) Reset()

func (*Playlist) String

func (x *Playlist) String() string

type PlaylistDataTransfer

type PlaylistDataTransfer struct {
	Id     int64                           `protobuf:"varint,1,opt,name=id,proto3" json:"id" example:"4"`         // @gotags: json:"id" example:"4"
	Title  string                          `protobuf:"bytes,2,opt,name=title,proto3" json:"title" example:"Rain"` // @gotags: json:"title" example:"Rain"
	Tracks []*trackProto.TrackDataTransfer `protobuf:"bytes,3,rep,name=tracks,proto3" json:"tracks,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaylistDataTransfer) Descriptor deprecated

func (*PlaylistDataTransfer) Descriptor() ([]byte, []int)

Deprecated: Use PlaylistDataTransfer.ProtoReflect.Descriptor instead.

func (*PlaylistDataTransfer) GetId

func (x *PlaylistDataTransfer) GetId() int64

func (*PlaylistDataTransfer) GetTitle

func (x *PlaylistDataTransfer) GetTitle() string

func (*PlaylistDataTransfer) GetTracks

func (*PlaylistDataTransfer) ProtoMessage

func (*PlaylistDataTransfer) ProtoMessage()

func (*PlaylistDataTransfer) ProtoReflect

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

func (*PlaylistDataTransfer) Reset

func (x *PlaylistDataTransfer) Reset()

func (*PlaylistDataTransfer) String

func (x *PlaylistDataTransfer) String() string

type PlaylistIdTrackId

type PlaylistIdTrackId struct {
	PlaylistId int64 `protobuf:"varint,1,opt,name=playlistId,proto3" json:"playlistId" example:"4" db:"playlist_id" validate:"min=0"` // @gotags: json:"playlistId" example:"4" db:"playlist_id" validate:"min=0"
	TrackId    int64 `protobuf:"varint,2,opt,name=trackId,proto3" json:"trackId" example:"5" db:"track_id" validate:"min=0"`          // @gotags: json:"trackId" example:"5" db:"track_id" validate:"min=0"
	// contains filtered or unexported fields
}

func (*PlaylistIdTrackId) Descriptor deprecated

func (*PlaylistIdTrackId) Descriptor() ([]byte, []int)

Deprecated: Use PlaylistIdTrackId.ProtoReflect.Descriptor instead.

func (*PlaylistIdTrackId) GetPlaylistId

func (x *PlaylistIdTrackId) GetPlaylistId() int64

func (*PlaylistIdTrackId) GetTrackId

func (x *PlaylistIdTrackId) GetTrackId() int64

func (*PlaylistIdTrackId) ProtoMessage

func (*PlaylistIdTrackId) ProtoMessage()

func (*PlaylistIdTrackId) ProtoReflect

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

func (*PlaylistIdTrackId) Reset

func (x *PlaylistIdTrackId) Reset()

func (*PlaylistIdTrackId) String

func (x *PlaylistIdTrackId) String() string

type PlaylistUseCaseClient

type PlaylistUseCaseClient interface {
	GetAll(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PlaylistsResponse, error)
	GetAllOfCurrentUser(ctx context.Context, in *gatewayProto.IdArg, opts ...grpc.CallOption) (*PlaylistsResponse, error)
	GetLastId(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*gatewayProto.IntResponse, error)
	GetLastIdOfCurrentUser(ctx context.Context, in *gatewayProto.IdArg, opts ...grpc.CallOption) (*gatewayProto.IntResponse, error)
	Create(ctx context.Context, in *UserIdPlaylistArg, opts ...grpc.CallOption) (*empty.Empty, error)
	AddToPlaylist(ctx context.Context, in *UserIdPlaylistIdTracksArg, opts ...grpc.CallOption) (*empty.Empty, error)
	RemoveFromPlaylist(ctx context.Context, in *UserIdPlaylistIdTracksArg, opts ...grpc.CallOption) (*empty.Empty, error)
	Update(ctx context.Context, in *UserIdPlaylistArg, opts ...grpc.CallOption) (*empty.Empty, error)
	Delete(ctx context.Context, in *UserIdPlaylistIdArg, opts ...grpc.CallOption) (*empty.Empty, error)
	GetById(ctx context.Context, in *gatewayProto.IdArg, opts ...grpc.CallOption) (*Playlist, error)
	GetByIdOfCurrentUser(ctx context.Context, in *UserIdPlaylistIdArg, opts ...grpc.CallOption) (*Playlist, error)
	GetSize(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*gatewayProto.IntResponse, error)
	GetSizeOfCurrentUser(ctx context.Context, in *gatewayProto.IdArg, opts ...grpc.CallOption) (*gatewayProto.IntResponse, error)
}

PlaylistUseCaseClient is the client API for PlaylistUseCase 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 PlaylistUseCaseResponse

type PlaylistUseCaseResponse struct {
	Data *PlaylistDataTransfer `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaylistUseCaseResponse) Descriptor deprecated

func (*PlaylistUseCaseResponse) Descriptor() ([]byte, []int)

Deprecated: Use PlaylistUseCaseResponse.ProtoReflect.Descriptor instead.

func (*PlaylistUseCaseResponse) GetData

func (*PlaylistUseCaseResponse) ProtoMessage

func (*PlaylistUseCaseResponse) ProtoMessage()

func (*PlaylistUseCaseResponse) ProtoReflect

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

func (*PlaylistUseCaseResponse) Reset

func (x *PlaylistUseCaseResponse) Reset()

func (*PlaylistUseCaseResponse) String

func (x *PlaylistUseCaseResponse) String() string

type PlaylistUseCaseServer

PlaylistUseCaseServer is the server API for PlaylistUseCase service. All implementations must embed UnimplementedPlaylistUseCaseServer for forward compatibility

type PlaylistsResponse

type PlaylistsResponse struct {
	Playlists []*Playlist `protobuf:"bytes,1,rep,name=playlists,proto3" json:"playlists,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaylistsResponse) Descriptor deprecated

func (*PlaylistsResponse) Descriptor() ([]byte, []int)

Deprecated: Use PlaylistsResponse.ProtoReflect.Descriptor instead.

func (*PlaylistsResponse) GetPlaylists

func (x *PlaylistsResponse) GetPlaylists() []*Playlist

func (*PlaylistsResponse) ProtoMessage

func (*PlaylistsResponse) ProtoMessage()

func (*PlaylistsResponse) ProtoReflect

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

func (*PlaylistsResponse) Reset

func (x *PlaylistsResponse) Reset()

func (*PlaylistsResponse) String

func (x *PlaylistsResponse) String() string

type UnimplementedPlaylistUseCaseServer

type UnimplementedPlaylistUseCaseServer struct {
}

UnimplementedPlaylistUseCaseServer must be embedded to have forward compatible implementations.

func (UnimplementedPlaylistUseCaseServer) AddToPlaylist

func (UnimplementedPlaylistUseCaseServer) Create

func (UnimplementedPlaylistUseCaseServer) Delete

func (UnimplementedPlaylistUseCaseServer) GetAll

func (UnimplementedPlaylistUseCaseServer) GetAllOfCurrentUser

func (UnimplementedPlaylistUseCaseServer) GetById

func (UnimplementedPlaylistUseCaseServer) GetByIdOfCurrentUser

func (UnimplementedPlaylistUseCaseServer) GetLastId

func (UnimplementedPlaylistUseCaseServer) GetLastIdOfCurrentUser

func (UnimplementedPlaylistUseCaseServer) GetSize

func (UnimplementedPlaylistUseCaseServer) GetSizeOfCurrentUser

func (UnimplementedPlaylistUseCaseServer) RemoveFromPlaylist

func (UnimplementedPlaylistUseCaseServer) Update

type UnsafePlaylistUseCaseServer

type UnsafePlaylistUseCaseServer interface {
	// contains filtered or unexported methods
}

UnsafePlaylistUseCaseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PlaylistUseCaseServer will result in compilation errors.

type UserIdPlaylistArg

type UserIdPlaylistArg struct {
	UserId   int64     `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Playlist *Playlist `protobuf:"bytes,2,opt,name=playlist,proto3" json:"playlist,omitempty"`
	// contains filtered or unexported fields
}

func (*UserIdPlaylistArg) Descriptor deprecated

func (*UserIdPlaylistArg) Descriptor() ([]byte, []int)

Deprecated: Use UserIdPlaylistArg.ProtoReflect.Descriptor instead.

func (*UserIdPlaylistArg) GetPlaylist

func (x *UserIdPlaylistArg) GetPlaylist() *Playlist

func (*UserIdPlaylistArg) GetUserId

func (x *UserIdPlaylistArg) GetUserId() int64

func (*UserIdPlaylistArg) ProtoMessage

func (*UserIdPlaylistArg) ProtoMessage()

func (*UserIdPlaylistArg) ProtoReflect

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

func (*UserIdPlaylistArg) Reset

func (x *UserIdPlaylistArg) Reset()

func (*UserIdPlaylistArg) String

func (x *UserIdPlaylistArg) String() string

type UserIdPlaylistIdArg

type UserIdPlaylistIdArg struct {
	UserId     int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	PlaylistId int64 `protobuf:"varint,2,opt,name=playlistId,proto3" json:"playlistId,omitempty"`
	// contains filtered or unexported fields
}

func (*UserIdPlaylistIdArg) Descriptor deprecated

func (*UserIdPlaylistIdArg) Descriptor() ([]byte, []int)

Deprecated: Use UserIdPlaylistIdArg.ProtoReflect.Descriptor instead.

func (*UserIdPlaylistIdArg) GetPlaylistId

func (x *UserIdPlaylistIdArg) GetPlaylistId() int64

func (*UserIdPlaylistIdArg) GetUserId

func (x *UserIdPlaylistIdArg) GetUserId() int64

func (*UserIdPlaylistIdArg) ProtoMessage

func (*UserIdPlaylistIdArg) ProtoMessage()

func (*UserIdPlaylistIdArg) ProtoReflect

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

func (*UserIdPlaylistIdArg) Reset

func (x *UserIdPlaylistIdArg) Reset()

func (*UserIdPlaylistIdArg) String

func (x *UserIdPlaylistIdArg) String() string

type UserIdPlaylistIdTracksArg

type UserIdPlaylistIdTracksArg struct {
	UserId     int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	PlaylistId int64 `protobuf:"varint,2,opt,name=playlistId,proto3" json:"playlistId,omitempty"`
	TrackId    int64 `protobuf:"varint,3,opt,name=track_id,json=trackId,proto3" json:"track_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserIdPlaylistIdTracksArg) Descriptor deprecated

func (*UserIdPlaylistIdTracksArg) Descriptor() ([]byte, []int)

Deprecated: Use UserIdPlaylistIdTracksArg.ProtoReflect.Descriptor instead.

func (*UserIdPlaylistIdTracksArg) GetPlaylistId

func (x *UserIdPlaylistIdTracksArg) GetPlaylistId() int64

func (*UserIdPlaylistIdTracksArg) GetTrackId

func (x *UserIdPlaylistIdTracksArg) GetTrackId() int64

func (*UserIdPlaylistIdTracksArg) GetUserId

func (x *UserIdPlaylistIdTracksArg) GetUserId() int64

func (*UserIdPlaylistIdTracksArg) ProtoMessage

func (*UserIdPlaylistIdTracksArg) ProtoMessage()

func (*UserIdPlaylistIdTracksArg) ProtoReflect

func (*UserIdPlaylistIdTracksArg) Reset

func (x *UserIdPlaylistIdTracksArg) Reset()

func (*UserIdPlaylistIdTracksArg) String

func (x *UserIdPlaylistIdTracksArg) String() string

type UserPlaylist

type UserPlaylist struct {
	UserId     int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId" example:"4" db:"user_id" validate:"min=0, nonnil"`             // @gotags: json:"userId" example:"4" db:"user_id" validate:"min=0, nonnil"
	PlaylistId int64 `protobuf:"varint,2,opt,name=playlistId,proto3" json:"playlistId" example:"3" db:"playlist_id" validate:"min=0, nonnil"` // @gotags: json:"playlistId" example:"3" db:"playlist_id" validate:"min=0, nonnil"
	// contains filtered or unexported fields
}

func (*UserPlaylist) Descriptor deprecated

func (*UserPlaylist) Descriptor() ([]byte, []int)

Deprecated: Use UserPlaylist.ProtoReflect.Descriptor instead.

func (*UserPlaylist) GetPlaylistId

func (x *UserPlaylist) GetPlaylistId() int64

func (*UserPlaylist) GetUserId

func (x *UserPlaylist) GetUserId() int64

func (*UserPlaylist) ProtoMessage

func (*UserPlaylist) ProtoMessage()

func (*UserPlaylist) ProtoReflect

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

func (*UserPlaylist) Reset

func (x *UserPlaylist) Reset()

func (*UserPlaylist) String

func (x *UserPlaylist) String() string

Jump to

Keyboard shortcuts

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