actor

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 (
	ActorRemoteService_FindGenre_FullMethodName = "/gnboot.ActorRemoteService/FindGenre"
)
View Source
const OperationActorRemoteServiceFindGenre = "/gnboot.ActorRemoteService/FindGenre"

Variables

View Source
var ActorRemoteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gnboot.ActorRemoteService",
	HandlerType: (*ActorRemoteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FindGenre",
			Handler:    _ActorRemoteService_FindGenre_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/actor.proto",
}

ActorRemoteService_ServiceDesc is the grpc.ServiceDesc for ActorRemoteService 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_proto_actor_proto protoreflect.FileDescriptor

Functions

func RegisterActorRemoteServiceHTTPServer

func RegisterActorRemoteServiceHTTPServer(s *http.Server, srv ActorRemoteServiceHTTPServer)

func RegisterActorRemoteServiceServer

func RegisterActorRemoteServiceServer(s grpc.ServiceRegistrar, srv ActorRemoteServiceServer)

Types

type ActorRemoteServiceClient

type ActorRemoteServiceClient interface {
	FindGenre(ctx context.Context, in *FindActorRequest, opts ...grpc.CallOption) (*FindActorResp, error)
}

ActorRemoteServiceClient is the client API for ActorRemoteService 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 ActorRemoteServiceHTTPClient

type ActorRemoteServiceHTTPClient interface {
	FindGenre(ctx context.Context, req *FindActorRequest, opts ...http.CallOption) (rsp *FindActorResp, err error)
}

func NewActorRemoteServiceHTTPClient

func NewActorRemoteServiceHTTPClient(client *http.Client) ActorRemoteServiceHTTPClient

type ActorRemoteServiceHTTPClientImpl

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

func (*ActorRemoteServiceHTTPClientImpl) FindGenre

type ActorRemoteServiceHTTPServer

type ActorRemoteServiceHTTPServer interface {
	FindGenre(context.Context, *FindActorRequest) (*FindActorResp, error)
}

type ActorRemoteServiceServer

type ActorRemoteServiceServer interface {
	FindGenre(context.Context, *FindActorRequest) (*FindActorResp, error)
	// contains filtered or unexported methods
}

ActorRemoteServiceServer is the server API for ActorRemoteService service. All implementations must embed UnimplementedActorRemoteServiceServer for forward compatibility

type ActorResp

type ActorResp 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"`
	OriginalName string `protobuf:"bytes,3,opt,name=originalName,proto3" json:"originalName,omitempty"`
	Adult        bool   `protobuf:"varint,4,opt,name=adult,proto3" json:"adult,omitempty"`
	Gender       int32  `protobuf:"varint,5,opt,name=gender,proto3" json:"gender,omitempty"`
	Character    string `protobuf:"bytes,6,opt,name=character,proto3" json:"character,omitempty"`
	Profile      string `protobuf:"bytes,7,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*ActorResp) Descriptor deprecated

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

Deprecated: Use ActorResp.ProtoReflect.Descriptor instead.

func (*ActorResp) GetAdult

func (x *ActorResp) GetAdult() bool

func (*ActorResp) GetCharacter

func (x *ActorResp) GetCharacter() string

func (*ActorResp) GetGender

func (x *ActorResp) GetGender() int32

func (*ActorResp) GetId

func (x *ActorResp) GetId() int64

func (*ActorResp) GetName

func (x *ActorResp) GetName() string

func (*ActorResp) GetOriginalName

func (x *ActorResp) GetOriginalName() string

func (*ActorResp) GetProfile

func (x *ActorResp) GetProfile() string

func (*ActorResp) ProtoMessage

func (*ActorResp) ProtoMessage()

func (*ActorResp) ProtoReflect

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

func (*ActorResp) Reset

func (x *ActorResp) Reset()

func (*ActorResp) String

func (x *ActorResp) String() string

func (*ActorResp) Validate

func (m *ActorResp) Validate() error

Validate checks the field values on ActorResp 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 (*ActorResp) ValidateAll

func (m *ActorResp) ValidateAll() error

ValidateAll checks the field values on ActorResp 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 ActorRespMultiError, or nil if none found.

type ActorRespMultiError

type ActorRespMultiError []error

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

func (ActorRespMultiError) AllErrors

func (m ActorRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ActorRespMultiError) Error

func (m ActorRespMultiError) Error() string

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

type ActorRespValidationError

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

ActorRespValidationError is the validation error returned by ActorResp.Validate if the designated constraints aren't met.

func (ActorRespValidationError) Cause

func (e ActorRespValidationError) Cause() error

Cause function returns cause value.

func (ActorRespValidationError) Error

func (e ActorRespValidationError) Error() string

Error satisfies the builtin error interface

func (ActorRespValidationError) ErrorName

func (e ActorRespValidationError) ErrorName() string

ErrorName returns error name.

func (ActorRespValidationError) Field

func (e ActorRespValidationError) Field() string

Field function returns field value.

func (ActorRespValidationError) Key

Key function returns key value.

func (ActorRespValidationError) Reason

func (e ActorRespValidationError) Reason() string

Reason function returns reason value.

type FindActorRequest

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

func (*FindActorRequest) Descriptor deprecated

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

Deprecated: Use FindActorRequest.ProtoReflect.Descriptor instead.

func (*FindActorRequest) ProtoMessage

func (*FindActorRequest) ProtoMessage()

func (*FindActorRequest) ProtoReflect

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

func (*FindActorRequest) Reset

func (x *FindActorRequest) Reset()

func (*FindActorRequest) String

func (x *FindActorRequest) String() string

func (*FindActorRequest) Validate

func (m *FindActorRequest) Validate() error

Validate checks the field values on FindActorRequest 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 (*FindActorRequest) ValidateAll

func (m *FindActorRequest) ValidateAll() error

ValidateAll checks the field values on FindActorRequest 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 FindActorRequestMultiError, or nil if none found.

type FindActorRequestMultiError

type FindActorRequestMultiError []error

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

func (FindActorRequestMultiError) AllErrors

func (m FindActorRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindActorRequestMultiError) Error

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

type FindActorRequestValidationError

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

FindActorRequestValidationError is the validation error returned by FindActorRequest.Validate if the designated constraints aren't met.

func (FindActorRequestValidationError) Cause

Cause function returns cause value.

func (FindActorRequestValidationError) Error

Error satisfies the builtin error interface

func (FindActorRequestValidationError) ErrorName

ErrorName returns error name.

func (FindActorRequestValidationError) Field

Field function returns field value.

func (FindActorRequestValidationError) Key

Key function returns key value.

func (FindActorRequestValidationError) Reason

Reason function returns reason value.

type FindActorResp

type FindActorResp struct {
	Actors []*ActorResp `protobuf:"bytes,1,rep,name=actors,proto3" json:"actors,omitempty"`
	// contains filtered or unexported fields
}

func (*FindActorResp) Descriptor deprecated

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

Deprecated: Use FindActorResp.ProtoReflect.Descriptor instead.

func (*FindActorResp) GetActors added in v1.0.6

func (x *FindActorResp) GetActors() []*ActorResp

func (*FindActorResp) ProtoMessage

func (*FindActorResp) ProtoMessage()

func (*FindActorResp) ProtoReflect

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

func (*FindActorResp) Reset

func (x *FindActorResp) Reset()

func (*FindActorResp) String

func (x *FindActorResp) String() string

func (*FindActorResp) Validate

func (m *FindActorResp) Validate() error

Validate checks the field values on FindActorResp 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 (*FindActorResp) ValidateAll

func (m *FindActorResp) ValidateAll() error

ValidateAll checks the field values on FindActorResp 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 FindActorRespMultiError, or nil if none found.

type FindActorRespMultiError

type FindActorRespMultiError []error

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

func (FindActorRespMultiError) AllErrors

func (m FindActorRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindActorRespMultiError) Error

func (m FindActorRespMultiError) Error() string

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

type FindActorRespValidationError

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

FindActorRespValidationError is the validation error returned by FindActorResp.Validate if the designated constraints aren't met.

func (FindActorRespValidationError) Cause

Cause function returns cause value.

func (FindActorRespValidationError) Error

Error satisfies the builtin error interface

func (FindActorRespValidationError) ErrorName

func (e FindActorRespValidationError) ErrorName() string

ErrorName returns error name.

func (FindActorRespValidationError) Field

Field function returns field value.

func (FindActorRespValidationError) Key

Key function returns key value.

func (FindActorRespValidationError) Reason

Reason function returns reason value.

type UnimplementedActorRemoteServiceServer

type UnimplementedActorRemoteServiceServer struct {
}

UnimplementedActorRemoteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedActorRemoteServiceServer) FindGenre

type UnsafeActorRemoteServiceServer

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

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

Jump to

Keyboard shortcuts

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