msaService

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_msa_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "msaService.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Call",
			Handler:    _Service_Call_Handler,
		},
		{
			MethodName: "AddService",
			Handler:    _Service_AddService_Handler,
		},
		{
			MethodName: "DeleteService",
			Handler:    _Service_DeleteService_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "msa/proto/msa_servoce.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type RequestAddService

type RequestAddService struct {
	Host      string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"`
	Port      int32  `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"`
	GroupType string `protobuf:"bytes,3,opt,name=GroupType,proto3" json:"GroupType,omitempty"`
	Key       string `protobuf:"bytes,4,opt,name=Key,proto3" json:"Key,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestAddService) Descriptor deprecated

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

Deprecated: Use RequestAddService.ProtoReflect.Descriptor instead.

func (*RequestAddService) GetGroupType

func (x *RequestAddService) GetGroupType() string

func (*RequestAddService) GetHost

func (x *RequestAddService) GetHost() string

func (*RequestAddService) GetKey

func (x *RequestAddService) GetKey() string

func (*RequestAddService) GetPort

func (x *RequestAddService) GetPort() int32

func (*RequestAddService) ProtoMessage

func (*RequestAddService) ProtoMessage()

func (*RequestAddService) ProtoReflect

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

func (*RequestAddService) Reset

func (x *RequestAddService) Reset()

func (*RequestAddService) String

func (x *RequestAddService) String() string

type RequestCall

type RequestCall struct {
	Data     []byte            `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	FuncName string            `protobuf:"bytes,2,opt,name=FuncName,proto3" json:"FuncName,omitempty"`
	Args     map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RequestCall) Descriptor deprecated

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

Deprecated: Use RequestCall.ProtoReflect.Descriptor instead.

func (*RequestCall) GetArgs

func (x *RequestCall) GetArgs() map[string]string

func (*RequestCall) GetData

func (x *RequestCall) GetData() []byte

func (*RequestCall) GetFuncName

func (x *RequestCall) GetFuncName() string

func (*RequestCall) ProtoMessage

func (*RequestCall) ProtoMessage()

func (*RequestCall) ProtoReflect

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

func (*RequestCall) Reset

func (x *RequestCall) Reset()

func (*RequestCall) String

func (x *RequestCall) String() string

type RequestDelService

type RequestDelService struct {
	GroupType string `protobuf:"bytes,1,opt,name=GroupType,proto3" json:"GroupType,omitempty"`
	Key       string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestDelService) Descriptor deprecated

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

Deprecated: Use RequestDelService.ProtoReflect.Descriptor instead.

func (*RequestDelService) GetGroupType

func (x *RequestDelService) GetGroupType() string

func (*RequestDelService) GetKey

func (x *RequestDelService) GetKey() string

func (*RequestDelService) ProtoMessage

func (*RequestDelService) ProtoMessage()

func (*RequestDelService) ProtoReflect

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

func (*RequestDelService) Reset

func (x *RequestDelService) Reset()

func (*RequestDelService) String

func (x *RequestDelService) String() string

type Response

type Response struct {
	Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetSuccess

func (x *Response) GetSuccess() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type ResponseCall

type ResponseCall struct {
	Result []byte `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseCall) Descriptor deprecated

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

Deprecated: Use ResponseCall.ProtoReflect.Descriptor instead.

func (*ResponseCall) GetResult

func (x *ResponseCall) GetResult() []byte

func (*ResponseCall) ProtoMessage

func (*ResponseCall) ProtoMessage()

func (*ResponseCall) ProtoReflect

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

func (*ResponseCall) Reset

func (x *ResponseCall) Reset()

func (*ResponseCall) String

func (x *ResponseCall) String() string

type ServiceClient

type ServiceClient interface {
	Call(ctx context.Context, in *RequestCall, opts ...grpc.CallOption) (*ResponseCall, error)
	AddService(ctx context.Context, in *RequestAddService, opts ...grpc.CallOption) (*Response, error)
	DeleteService(ctx context.Context, in *RequestDelService, opts ...grpc.CallOption) (*Response, error)
}

ServiceClient is the client API for Service 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.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	Call(context.Context, *RequestCall) (*ResponseCall, error)
	AddService(context.Context, *RequestAddService) (*Response, error)
	DeleteService(context.Context, *RequestDelService) (*Response, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddService

func (UnimplementedServiceServer) Call

func (UnimplementedServiceServer) DeleteService

type UnsafeServiceServer

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

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

Jump to

Keyboard shortcuts

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