Documentation ¶
Index ¶
- Variables
- func RegisterReverseServer(s grpc.ServiceRegistrar, srv ReverseServer)
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetAPIVersion() string
- func (x *Request) GetAction() string
- func (x *Request) GetArgs() map[string]*anypb.Any
- func (x *Request) GetChunk() []byte
- func (x *Request) GetCompleted() int32
- func (x *Request) GetFileName() string
- func (x *Request) GetFileSize() uint32
- func (x *Request) GetIsAdmin() int32
- func (x *Request) GetLanguage() string
- func (x *Request) GetMethod() string
- func (x *Request) GetModule() string
- func (x *Request) GetParam() string
- func (x *Request) GetParamID() string
- func (x *Request) GetPath() string
- func (x *Request) GetReadonly() int32
- func (x *Request) GetSessionEnd() int32
- func (x *Request) GetTimeStamp() int32
- func (x *Request) GetToken() string
- func (x *Request) GetTokenType() string
- func (x *Request) GetUID() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetData() map[string]*anypb.Any
- func (x *Response) GetRequestBack() *Request
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type ReverseClient
- type ReverseServer
- type UnimplementedReverseServer
- type UnsafeReverseServer
Constants ¶
This section is empty.
Variables ¶
var File_microservice_proto protoreflect.FileDescriptor
var Reverse_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Reverse", HandlerType: (*ReverseServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Do", Handler: _Reverse_Do_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "microservice.proto", }
Reverse_ServiceDesc is the grpc.ServiceDesc for Reverse service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReverseServer ¶
func RegisterReverseServer(s grpc.ServiceRegistrar, srv ReverseServer)
Types ¶
type Request ¶
type Request struct { Module *string `protobuf:"bytes,1,opt,name=Module,proto3,oneof" json:"Module,omitempty"` Param *string `protobuf:"bytes,2,opt,name=Param,proto3,oneof" json:"Param,omitempty"` ParamID *string `protobuf:"bytes,3,opt,name=ParamID,proto3,oneof" json:"ParamID,omitempty"` Action *string `protobuf:"bytes,4,opt,name=Action,proto3,oneof" json:"Action,omitempty"` Args map[string]*anypb.Any `` /* 149-byte string literal not displayed */ Path *string `protobuf:"bytes,6,opt,name=Path,proto3,oneof" json:"Path,omitempty"` Token *string `protobuf:"bytes,7,opt,name=Token,proto3,oneof" json:"Token,omitempty"` TokenType *string `protobuf:"bytes,8,opt,name=TokenType,proto3,oneof" json:"TokenType,omitempty"` TimeStamp *int32 `protobuf:"varint,9,opt,name=TimeStamp,proto3,oneof" json:"TimeStamp,omitempty"` Language *string `protobuf:"bytes,10,opt,name=Language,proto3,oneof" json:"Language,omitempty"` APIVersion *string `protobuf:"bytes,11,opt,name=APIVersion,proto3,oneof" json:"APIVersion,omitempty"` Method *string `protobuf:"bytes,12,opt,name=Method,proto3,oneof" json:"Method,omitempty"` UID *string `protobuf:"bytes,13,opt,name=UID,proto3,oneof" json:"UID,omitempty"` IsAdmin *int32 `protobuf:"varint,14,opt,name=IsAdmin,proto3,oneof" json:"IsAdmin,omitempty"` SessionEnd *int32 `protobuf:"varint,15,opt,name=SessionEnd,proto3,oneof" json:"SessionEnd,omitempty"` Completed *int32 `protobuf:"varint,16,opt,name=Completed,proto3,oneof" json:"Completed,omitempty"` Readonly *int32 `protobuf:"varint,17,opt,name=Readonly,proto3,oneof" json:"Readonly,omitempty"` FileName *string `protobuf:"bytes,18,opt,name=file_name,json=fileName,proto3,oneof" json:"file_name,omitempty"` Chunk []byte `protobuf:"bytes,19,opt,name=chunk,proto3,oneof" json:"chunk,omitempty"` FileSize *uint32 `protobuf:"varint,20,opt,name=file_size,json=fileSize,proto3,oneof" json:"file_size,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetAPIVersion ¶
func (*Request) GetCompleted ¶
func (*Request) GetFileName ¶
func (*Request) GetFileSize ¶
func (*Request) GetIsAdmin ¶
func (*Request) GetLanguage ¶
func (*Request) GetParamID ¶
func (*Request) GetReadonly ¶
func (*Request) GetSessionEnd ¶
func (*Request) GetTimeStamp ¶
func (*Request) GetTokenType ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Data map[string]*anypb.Any `` /* 149-byte string literal not displayed */ RequestBack *Request `protobuf:"bytes,2,opt,name=RequestBack,proto3,oneof" json:"RequestBack,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetRequestBack ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ReverseClient ¶
type ReverseClient interface {
Do(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
ReverseClient is the client API for Reverse 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 NewReverseClient ¶
func NewReverseClient(cc grpc.ClientConnInterface) ReverseClient
type ReverseServer ¶
ReverseServer is the server API for Reverse service. All implementations should embed UnimplementedReverseServer for forward compatibility
type UnimplementedReverseServer ¶
type UnimplementedReverseServer struct { }
UnimplementedReverseServer should be embedded to have forward compatible implementations.
type UnsafeReverseServer ¶
type UnsafeReverseServer interface {
// contains filtered or unexported methods
}
UnsafeReverseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReverseServer will result in compilation errors.