api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_src_api_api_proto protoreflect.FileDescriptor
View Source
var SetMakerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.SetMakerService",
	HandlerType: (*SetMakerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetArtist",
			Handler:    _SetMakerService_GetArtist_Handler,
		},
		{
			MethodName: "CreateArtist",
			Handler:    _SetMakerService_CreateArtist_Handler,
		},
		{
			MethodName: "UpdateArtist",
			Handler:    _SetMakerService_UpdateArtist_Handler,
		},
		{
			MethodName: "DeleteArtist",
			Handler:    _SetMakerService_DeleteArtist_Handler,
		},
		{
			MethodName: "ListArtists",
			Handler:    _SetMakerService_ListArtists_Handler,
		},
		{
			MethodName: "GetSong",
			Handler:    _SetMakerService_GetSong_Handler,
		},
		{
			MethodName: "CreateSong",
			Handler:    _SetMakerService_CreateSong_Handler,
		},
		{
			MethodName: "UpdateSong",
			Handler:    _SetMakerService_UpdateSong_Handler,
		},
		{
			MethodName: "DeleteSong",
			Handler:    _SetMakerService_DeleteSong_Handler,
		},
		{
			MethodName: "ListSongs",
			Handler:    _SetMakerService_ListSongs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/src/api/api.proto",
}

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

Functions

func RegisterSetMakerServiceServer

func RegisterSetMakerServiceServer(s grpc.ServiceRegistrar, srv SetMakerServiceServer)

Types

type CreateArtistRequest

type CreateArtistRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateArtistRequest) Descriptor deprecated

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

Deprecated: Use CreateArtistRequest.ProtoReflect.Descriptor instead.

func (*CreateArtistRequest) GetImage

func (x *CreateArtistRequest) GetImage() string

func (*CreateArtistRequest) GetName

func (x *CreateArtistRequest) GetName() string

func (*CreateArtistRequest) ProtoMessage

func (*CreateArtistRequest) ProtoMessage()

func (*CreateArtistRequest) ProtoReflect

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

func (*CreateArtistRequest) Reset

func (x *CreateArtistRequest) Reset()

func (*CreateArtistRequest) String

func (x *CreateArtistRequest) String() string

type CreateSongRequest

type CreateSongRequest struct {
	Title    string          `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Artist   *domain.Artist  `protobuf:"bytes,32,opt,name=artist,proto3" json:"artist,omitempty"`
	Key      domain.Key      `protobuf:"varint,3,opt,name=key,proto3,enum=domain.Key" json:"key,omitempty"`
	Tonality domain.Tonality `protobuf:"varint,4,opt,name=tonality,proto3,enum=domain.Tonality" json:"tonality,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSongRequest) Descriptor deprecated

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

Deprecated: Use CreateSongRequest.ProtoReflect.Descriptor instead.

func (*CreateSongRequest) GetArtist

func (x *CreateSongRequest) GetArtist() *domain.Artist

func (*CreateSongRequest) GetKey

func (x *CreateSongRequest) GetKey() domain.Key

func (*CreateSongRequest) GetTitle

func (x *CreateSongRequest) GetTitle() string

func (*CreateSongRequest) GetTonality

func (x *CreateSongRequest) GetTonality() domain.Tonality

func (*CreateSongRequest) ProtoMessage

func (*CreateSongRequest) ProtoMessage()

func (*CreateSongRequest) ProtoReflect

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

func (*CreateSongRequest) Reset

func (x *CreateSongRequest) Reset()

func (*CreateSongRequest) String

func (x *CreateSongRequest) String() string

type DeleteArtistResponse

type DeleteArtistResponse struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Deleted bool   `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteArtistResponse) Descriptor deprecated

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

Deprecated: Use DeleteArtistResponse.ProtoReflect.Descriptor instead.

func (*DeleteArtistResponse) GetDeleted

func (x *DeleteArtistResponse) GetDeleted() bool

func (*DeleteArtistResponse) GetId

func (x *DeleteArtistResponse) GetId() string

func (*DeleteArtistResponse) ProtoMessage

func (*DeleteArtistResponse) ProtoMessage()

func (*DeleteArtistResponse) ProtoReflect

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

func (*DeleteArtistResponse) Reset

func (x *DeleteArtistResponse) Reset()

func (*DeleteArtistResponse) String

func (x *DeleteArtistResponse) String() string

type DeleteSongResponse

type DeleteSongResponse struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Deleted bool   `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSongResponse) Descriptor deprecated

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

Deprecated: Use DeleteSongResponse.ProtoReflect.Descriptor instead.

func (*DeleteSongResponse) GetDeleted

func (x *DeleteSongResponse) GetDeleted() bool

func (*DeleteSongResponse) GetId

func (x *DeleteSongResponse) GetId() string

func (*DeleteSongResponse) ProtoMessage

func (*DeleteSongResponse) ProtoMessage()

func (*DeleteSongResponse) ProtoReflect

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

func (*DeleteSongResponse) Reset

func (x *DeleteSongResponse) Reset()

func (*DeleteSongResponse) String

func (x *DeleteSongResponse) String() string

type ListArtistsRequest

type ListArtistsRequest struct {
	Limit  int32  `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArtistsRequest) Descriptor deprecated

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

Deprecated: Use ListArtistsRequest.ProtoReflect.Descriptor instead.

func (*ListArtistsRequest) GetCursor

func (x *ListArtistsRequest) GetCursor() string

func (*ListArtistsRequest) GetLimit

func (x *ListArtistsRequest) GetLimit() int32

func (*ListArtistsRequest) ProtoMessage

func (*ListArtistsRequest) ProtoMessage()

func (*ListArtistsRequest) ProtoReflect

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

func (*ListArtistsRequest) Reset

func (x *ListArtistsRequest) Reset()

func (*ListArtistsRequest) String

func (x *ListArtistsRequest) String() string

type ListArtistsResponse

type ListArtistsResponse struct {
	Results     []*domain.Artist `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	SearchAfter string           `protobuf:"bytes,2,opt,name=searchAfter,proto3" json:"searchAfter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArtistsResponse) Descriptor deprecated

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

Deprecated: Use ListArtistsResponse.ProtoReflect.Descriptor instead.

func (*ListArtistsResponse) GetResults

func (x *ListArtistsResponse) GetResults() []*domain.Artist

func (*ListArtistsResponse) GetSearchAfter

func (x *ListArtistsResponse) GetSearchAfter() string

func (*ListArtistsResponse) ProtoMessage

func (*ListArtistsResponse) ProtoMessage()

func (*ListArtistsResponse) ProtoReflect

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

func (*ListArtistsResponse) Reset

func (x *ListArtistsResponse) Reset()

func (*ListArtistsResponse) String

func (x *ListArtistsResponse) String() string

type ListSongsRequest

type ListSongsRequest struct {
	Limit    int32  `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Cursor   string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	ArtistId string `protobuf:"bytes,3,opt,name=artistId,proto3" json:"artistId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSongsRequest) Descriptor deprecated

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

Deprecated: Use ListSongsRequest.ProtoReflect.Descriptor instead.

func (*ListSongsRequest) GetArtistId

func (x *ListSongsRequest) GetArtistId() string

func (*ListSongsRequest) GetCursor

func (x *ListSongsRequest) GetCursor() string

func (*ListSongsRequest) GetLimit

func (x *ListSongsRequest) GetLimit() int32

func (*ListSongsRequest) ProtoMessage

func (*ListSongsRequest) ProtoMessage()

func (*ListSongsRequest) ProtoReflect

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

func (*ListSongsRequest) Reset

func (x *ListSongsRequest) Reset()

func (*ListSongsRequest) String

func (x *ListSongsRequest) String() string

type ListSongsResponse

type ListSongsResponse struct {
	Results     []*domain.Song `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	SearchAfter string         `protobuf:"bytes,2,opt,name=searchAfter,proto3" json:"searchAfter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSongsResponse) Descriptor deprecated

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

Deprecated: Use ListSongsResponse.ProtoReflect.Descriptor instead.

func (*ListSongsResponse) GetResults

func (x *ListSongsResponse) GetResults() []*domain.Song

func (*ListSongsResponse) GetSearchAfter

func (x *ListSongsResponse) GetSearchAfter() string

func (*ListSongsResponse) ProtoMessage

func (*ListSongsResponse) ProtoMessage()

func (*ListSongsResponse) ProtoReflect

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

func (*ListSongsResponse) Reset

func (x *ListSongsResponse) Reset()

func (*ListSongsResponse) String

func (x *ListSongsResponse) String() string

type SetMakerServiceClient

type SetMakerServiceClient interface {
	// artists
	GetArtist(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*domain.Artist, error)
	CreateArtist(ctx context.Context, in *CreateArtistRequest, opts ...grpc.CallOption) (*domain.Artist, error)
	UpdateArtist(ctx context.Context, in *UpdateArtistRequest, opts ...grpc.CallOption) (*domain.Artist, error)
	DeleteArtist(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*DeleteArtistResponse, error)
	ListArtists(ctx context.Context, in *ListArtistsRequest, opts ...grpc.CallOption) (*ListArtistsResponse, error)
	// songs
	GetSong(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*domain.Song, error)
	CreateSong(ctx context.Context, in *CreateSongRequest, opts ...grpc.CallOption) (*domain.Song, error)
	UpdateSong(ctx context.Context, in *UpdateSongRequest, opts ...grpc.CallOption) (*domain.Song, error)
	DeleteSong(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*DeleteSongResponse, error)
	ListSongs(ctx context.Context, in *ListSongsRequest, opts ...grpc.CallOption) (*ListSongsResponse, error)
}

SetMakerServiceClient is the client API for SetMakerService 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 SetMakerServiceServer

type SetMakerServiceServer interface {
	// artists
	GetArtist(context.Context, *wrapperspb.StringValue) (*domain.Artist, error)
	CreateArtist(context.Context, *CreateArtistRequest) (*domain.Artist, error)
	UpdateArtist(context.Context, *UpdateArtistRequest) (*domain.Artist, error)
	DeleteArtist(context.Context, *wrapperspb.StringValue) (*DeleteArtistResponse, error)
	ListArtists(context.Context, *ListArtistsRequest) (*ListArtistsResponse, error)
	// songs
	GetSong(context.Context, *wrapperspb.StringValue) (*domain.Song, error)
	CreateSong(context.Context, *CreateSongRequest) (*domain.Song, error)
	UpdateSong(context.Context, *UpdateSongRequest) (*domain.Song, error)
	DeleteSong(context.Context, *wrapperspb.StringValue) (*DeleteSongResponse, error)
	ListSongs(context.Context, *ListSongsRequest) (*ListSongsResponse, error)
	// contains filtered or unexported methods
}

SetMakerServiceServer is the server API for SetMakerService service. All implementations must embed UnimplementedSetMakerServiceServer for forward compatibility

type UnimplementedSetMakerServiceServer

type UnimplementedSetMakerServiceServer struct {
}

UnimplementedSetMakerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSetMakerServiceServer) CreateArtist

func (UnimplementedSetMakerServiceServer) CreateSong

func (UnimplementedSetMakerServiceServer) DeleteArtist

func (UnimplementedSetMakerServiceServer) DeleteSong

func (UnimplementedSetMakerServiceServer) GetArtist

func (UnimplementedSetMakerServiceServer) GetSong

func (UnimplementedSetMakerServiceServer) ListArtists

func (UnimplementedSetMakerServiceServer) ListSongs

func (UnimplementedSetMakerServiceServer) UpdateArtist

func (UnimplementedSetMakerServiceServer) UpdateSong

type UnsafeSetMakerServiceServer

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

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

type UpdateArtistRequest

type UpdateArtistRequest struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateArtistRequest) Descriptor deprecated

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

Deprecated: Use UpdateArtistRequest.ProtoReflect.Descriptor instead.

func (*UpdateArtistRequest) GetId

func (x *UpdateArtistRequest) GetId() string

func (*UpdateArtistRequest) GetImage

func (x *UpdateArtistRequest) GetImage() string

func (*UpdateArtistRequest) GetName

func (x *UpdateArtistRequest) GetName() string

func (*UpdateArtistRequest) ProtoMessage

func (*UpdateArtistRequest) ProtoMessage()

func (*UpdateArtistRequest) ProtoReflect

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

func (*UpdateArtistRequest) Reset

func (x *UpdateArtistRequest) Reset()

func (*UpdateArtistRequest) String

func (x *UpdateArtistRequest) String() string

type UpdateSongRequest

type UpdateSongRequest struct {
	Id       string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title    string          `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Artist   *domain.Artist  `protobuf:"bytes,3,opt,name=artist,proto3" json:"artist,omitempty"`
	Key      domain.Key      `protobuf:"varint,4,opt,name=key,proto3,enum=domain.Key" json:"key,omitempty"`
	Tonality domain.Tonality `protobuf:"varint,5,opt,name=tonality,proto3,enum=domain.Tonality" json:"tonality,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSongRequest) Descriptor deprecated

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

Deprecated: Use UpdateSongRequest.ProtoReflect.Descriptor instead.

func (*UpdateSongRequest) GetArtist

func (x *UpdateSongRequest) GetArtist() *domain.Artist

func (*UpdateSongRequest) GetId

func (x *UpdateSongRequest) GetId() string

func (*UpdateSongRequest) GetKey

func (x *UpdateSongRequest) GetKey() domain.Key

func (*UpdateSongRequest) GetTitle

func (x *UpdateSongRequest) GetTitle() string

func (*UpdateSongRequest) GetTonality

func (x *UpdateSongRequest) GetTonality() domain.Tonality

func (*UpdateSongRequest) ProtoMessage

func (*UpdateSongRequest) ProtoMessage()

func (*UpdateSongRequest) ProtoReflect

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

func (*UpdateSongRequest) Reset

func (x *UpdateSongRequest) Reset()

func (*UpdateSongRequest) String

func (x *UpdateSongRequest) String() string

Jump to

Keyboard shortcuts

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