studio

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const OperationStudioRemoteServiceFindGenre = "/gnboot.StudioRemoteService/FindGenre"
View Source
const (
	StudioRemoteService_FindGenre_FullMethodName = "/gnboot.StudioRemoteService/FindGenre"
)

Variables

View Source
var File_proto_studio_proto protoreflect.FileDescriptor
View Source
var StudioRemoteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gnboot.StudioRemoteService",
	HandlerType: (*StudioRemoteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FindGenre",
			Handler:    _StudioRemoteService_FindGenre_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/studio.proto",
}

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

Functions

func RegisterStudioRemoteServiceHTTPServer

func RegisterStudioRemoteServiceHTTPServer(s *http.Server, srv StudioRemoteServiceHTTPServer)

func RegisterStudioRemoteServiceServer

func RegisterStudioRemoteServiceServer(s grpc.ServiceRegistrar, srv StudioRemoteServiceServer)

Types

type FindStudioRequest

type FindStudioRequest struct {
	// contains filtered or unexported fields
}

func (*FindStudioRequest) Descriptor deprecated

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

Deprecated: Use FindStudioRequest.ProtoReflect.Descriptor instead.

func (*FindStudioRequest) ProtoMessage

func (*FindStudioRequest) ProtoMessage()

func (*FindStudioRequest) ProtoReflect

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

func (*FindStudioRequest) Reset

func (x *FindStudioRequest) Reset()

func (*FindStudioRequest) String

func (x *FindStudioRequest) String() string

func (*FindStudioRequest) Validate

func (m *FindStudioRequest) Validate() error

Validate checks the field values on FindStudioRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindStudioRequest) ValidateAll

func (m *FindStudioRequest) ValidateAll() error

ValidateAll checks the field values on FindStudioRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindStudioRequestMultiError, or nil if none found.

type FindStudioRequestMultiError

type FindStudioRequestMultiError []error

FindStudioRequestMultiError is an error wrapping multiple validation errors returned by FindStudioRequest.ValidateAll() if the designated constraints aren't met.

func (FindStudioRequestMultiError) AllErrors

func (m FindStudioRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindStudioRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindStudioRequestValidationError

type FindStudioRequestValidationError struct {
	// contains filtered or unexported fields
}

FindStudioRequestValidationError is the validation error returned by FindStudioRequest.Validate if the designated constraints aren't met.

func (FindStudioRequestValidationError) Cause

Cause function returns cause value.

func (FindStudioRequestValidationError) Error

Error satisfies the builtin error interface

func (FindStudioRequestValidationError) ErrorName

ErrorName returns error name.

func (FindStudioRequestValidationError) Field

Field function returns field value.

func (FindStudioRequestValidationError) Key

Key function returns key value.

func (FindStudioRequestValidationError) Reason

Reason function returns reason value.

type FindStudioResp

type FindStudioResp struct {
	Studios []*StudioResp `protobuf:"bytes,1,rep,name=studios,proto3" json:"studios,omitempty"`
	// contains filtered or unexported fields
}

func (*FindStudioResp) Descriptor deprecated

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

Deprecated: Use FindStudioResp.ProtoReflect.Descriptor instead.

func (*FindStudioResp) GetStudios added in v1.0.6

func (x *FindStudioResp) GetStudios() []*StudioResp

func (*FindStudioResp) ProtoMessage

func (*FindStudioResp) ProtoMessage()

func (*FindStudioResp) ProtoReflect

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

func (*FindStudioResp) Reset

func (x *FindStudioResp) Reset()

func (*FindStudioResp) String

func (x *FindStudioResp) String() string

func (*FindStudioResp) Validate

func (m *FindStudioResp) Validate() error

Validate checks the field values on FindStudioResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindStudioResp) ValidateAll

func (m *FindStudioResp) ValidateAll() error

ValidateAll checks the field values on FindStudioResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindStudioRespMultiError, or nil if none found.

type FindStudioRespMultiError

type FindStudioRespMultiError []error

FindStudioRespMultiError is an error wrapping multiple validation errors returned by FindStudioResp.ValidateAll() if the designated constraints aren't met.

func (FindStudioRespMultiError) AllErrors

func (m FindStudioRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindStudioRespMultiError) Error

func (m FindStudioRespMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FindStudioRespValidationError

type FindStudioRespValidationError struct {
	// contains filtered or unexported fields
}

FindStudioRespValidationError is the validation error returned by FindStudioResp.Validate if the designated constraints aren't met.

func (FindStudioRespValidationError) Cause

Cause function returns cause value.

func (FindStudioRespValidationError) Error

Error satisfies the builtin error interface

func (FindStudioRespValidationError) ErrorName

func (e FindStudioRespValidationError) ErrorName() string

ErrorName returns error name.

func (FindStudioRespValidationError) Field

Field function returns field value.

func (FindStudioRespValidationError) Key

Key function returns key value.

func (FindStudioRespValidationError) Reason

Reason function returns reason value.

type StudioRemoteServiceClient

type StudioRemoteServiceClient interface {
	FindGenre(ctx context.Context, in *FindStudioRequest, opts ...grpc.CallOption) (*FindStudioResp, error)
}

StudioRemoteServiceClient is the client API for StudioRemoteService 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 StudioRemoteServiceHTTPClient

type StudioRemoteServiceHTTPClient interface {
	FindGenre(ctx context.Context, req *FindStudioRequest, opts ...http.CallOption) (rsp *FindStudioResp, err error)
}

func NewStudioRemoteServiceHTTPClient

func NewStudioRemoteServiceHTTPClient(client *http.Client) StudioRemoteServiceHTTPClient

type StudioRemoteServiceHTTPClientImpl

type StudioRemoteServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*StudioRemoteServiceHTTPClientImpl) FindGenre

type StudioRemoteServiceHTTPServer

type StudioRemoteServiceHTTPServer interface {
	FindGenre(context.Context, *FindStudioRequest) (*FindStudioResp, error)
}

type StudioRemoteServiceServer

type StudioRemoteServiceServer interface {
	FindGenre(context.Context, *FindStudioRequest) (*FindStudioResp, error)
	// contains filtered or unexported methods
}

StudioRemoteServiceServer is the server API for StudioRemoteService service. All implementations must embed UnimplementedStudioRemoteServiceServer for forward compatibility

type StudioResp

type StudioResp struct {
	Id      int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
	// contains filtered or unexported fields
}

func (*StudioResp) Descriptor deprecated

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

Deprecated: Use StudioResp.ProtoReflect.Descriptor instead.

func (*StudioResp) GetCountry

func (x *StudioResp) GetCountry() string

func (*StudioResp) GetId

func (x *StudioResp) GetId() int64
func (x *StudioResp) GetLogo() string

func (*StudioResp) GetName

func (x *StudioResp) GetName() string

func (*StudioResp) ProtoMessage

func (*StudioResp) ProtoMessage()

func (*StudioResp) ProtoReflect

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

func (*StudioResp) Reset

func (x *StudioResp) Reset()

func (*StudioResp) String

func (x *StudioResp) String() string

func (*StudioResp) Validate

func (m *StudioResp) Validate() error

Validate checks the field values on StudioResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StudioResp) ValidateAll

func (m *StudioResp) ValidateAll() error

ValidateAll checks the field values on StudioResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StudioRespMultiError, or nil if none found.

type StudioRespMultiError

type StudioRespMultiError []error

StudioRespMultiError is an error wrapping multiple validation errors returned by StudioResp.ValidateAll() if the designated constraints aren't met.

func (StudioRespMultiError) AllErrors

func (m StudioRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StudioRespMultiError) Error

func (m StudioRespMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StudioRespValidationError

type StudioRespValidationError struct {
	// contains filtered or unexported fields
}

StudioRespValidationError is the validation error returned by StudioResp.Validate if the designated constraints aren't met.

func (StudioRespValidationError) Cause

func (e StudioRespValidationError) Cause() error

Cause function returns cause value.

func (StudioRespValidationError) Error

Error satisfies the builtin error interface

func (StudioRespValidationError) ErrorName

func (e StudioRespValidationError) ErrorName() string

ErrorName returns error name.

func (StudioRespValidationError) Field

Field function returns field value.

func (StudioRespValidationError) Key

Key function returns key value.

func (StudioRespValidationError) Reason

func (e StudioRespValidationError) Reason() string

Reason function returns reason value.

type UnimplementedStudioRemoteServiceServer

type UnimplementedStudioRemoteServiceServer struct {
}

UnimplementedStudioRemoteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStudioRemoteServiceServer) FindGenre

type UnsafeStudioRemoteServiceServer

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

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

Jump to

Keyboard shortcuts

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