Documentation ¶
Index ¶
- Variables
- func RegisterReverseServer(s grpc.ServiceRegistrar, srv ReverseServer)
- type InternalRequest
- func (*InternalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InternalRequest) GetArgs() map[string]*anypb.Any
- func (x *InternalRequest) GetMethod() string
- func (x *InternalRequest) GetParam() string
- func (x *InternalRequest) GetParamID() string
- func (*InternalRequest) ProtoMessage()
- func (x *InternalRequest) ProtoReflect() protoreflect.Message
- func (x *InternalRequest) Reset()
- func (x *InternalRequest) String() string
- 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) GetCompleted() int32
- func (x *Request) GetFile() []byte
- func (x *Request) GetFilename() string
- func (x *Request) GetIP() string
- func (x *Request) GetIR() *InternalRequest
- 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) GetParamIDD() string
- func (x *Request) GetPath() string
- func (x *Request) GetReadonly() int32
- func (x *Request) GetSID() string
- func (x *Request) GetSessionEnd() int32
- func (x *Request) GetSign() string
- func (x *Request) GetTimeStamp() int32
- func (x *Request) GetToken() string
- func (x *Request) GetTokenType() string
- func (x *Request) GetUID() string
- func (x *Request) GetUserAgent() 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) GetCode() UploadStatusCode
- 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
- type UploadStatusCode
- func (UploadStatusCode) Descriptor() protoreflect.EnumDescriptor
- func (x UploadStatusCode) Enum() *UploadStatusCode
- func (UploadStatusCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x UploadStatusCode) Number() protoreflect.EnumNumber
- func (x UploadStatusCode) String() string
- func (UploadStatusCode) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( UploadStatusCode_name = map[int32]string{ 0: "Unknown", 1: "Ok", 2: "Failed", } UploadStatusCode_value = map[string]int32{ "Unknown": 0, "Ok": 1, "Failed": 2, } )
Enum value maps for UploadStatusCode.
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 InternalRequest ¶ added in v1.14.0
type InternalRequest struct { Param *string `protobuf:"bytes,1,opt,name=Param,proto3,oneof" json:"Param,omitempty"` ParamID *string `protobuf:"bytes,2,opt,name=ParamID,proto3,oneof" json:"ParamID,omitempty"` Method *string `protobuf:"bytes,3,opt,name=Method,proto3,oneof" json:"Method,omitempty"` Args map[string]*anypb.Any `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*InternalRequest) Descriptor
deprecated
added in
v1.14.0
func (*InternalRequest) Descriptor() ([]byte, []int)
Deprecated: Use InternalRequest.ProtoReflect.Descriptor instead.
func (*InternalRequest) GetArgs ¶ added in v1.14.0
func (x *InternalRequest) GetArgs() map[string]*anypb.Any
func (*InternalRequest) GetMethod ¶ added in v1.14.0
func (x *InternalRequest) GetMethod() string
func (*InternalRequest) GetParam ¶ added in v1.14.0
func (x *InternalRequest) GetParam() string
func (*InternalRequest) GetParamID ¶ added in v1.14.0
func (x *InternalRequest) GetParamID() string
func (*InternalRequest) ProtoMessage ¶ added in v1.14.0
func (*InternalRequest) ProtoMessage()
func (*InternalRequest) ProtoReflect ¶ added in v1.14.0
func (x *InternalRequest) ProtoReflect() protoreflect.Message
func (*InternalRequest) Reset ¶ added in v1.14.0
func (x *InternalRequest) Reset()
func (*InternalRequest) String ¶ added in v1.14.0
func (x *InternalRequest) String() string
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"` ParamIDD *string `protobuf:"bytes,4,opt,name=ParamIDD,proto3,oneof" json:"ParamIDD,omitempty"` Action *string `protobuf:"bytes,5,opt,name=Action,proto3,oneof" json:"Action,omitempty"` Args map[string]*anypb.Any `` /* 149-byte string literal not displayed */ Path *string `protobuf:"bytes,7,opt,name=Path,proto3,oneof" json:"Path,omitempty"` Token *string `protobuf:"bytes,8,opt,name=Token,proto3,oneof" json:"Token,omitempty"` Sign *string `protobuf:"bytes,9,opt,name=Sign,proto3,oneof" json:"Sign,omitempty"` SID *string `protobuf:"bytes,10,opt,name=SID,proto3,oneof" json:"SID,omitempty"` IP *string `protobuf:"bytes,11,opt,name=IP,proto3,oneof" json:"IP,omitempty"` UserAgent *string `protobuf:"bytes,12,opt,name=UserAgent,proto3,oneof" json:"UserAgent,omitempty"` TokenType *string `protobuf:"bytes,13,opt,name=TokenType,proto3,oneof" json:"TokenType,omitempty"` TimeStamp *int32 `protobuf:"varint,14,opt,name=TimeStamp,proto3,oneof" json:"TimeStamp,omitempty"` Language *string `protobuf:"bytes,15,opt,name=Language,proto3,oneof" json:"Language,omitempty"` APIVersion *string `protobuf:"bytes,16,opt,name=APIVersion,proto3,oneof" json:"APIVersion,omitempty"` Method *string `protobuf:"bytes,17,opt,name=Method,proto3,oneof" json:"Method,omitempty"` UID *string `protobuf:"bytes,18,opt,name=UID,proto3,oneof" json:"UID,omitempty"` IsAdmin *int32 `protobuf:"varint,19,opt,name=IsAdmin,proto3,oneof" json:"IsAdmin,omitempty"` SessionEnd *int32 `protobuf:"varint,20,opt,name=SessionEnd,proto3,oneof" json:"SessionEnd,omitempty"` Completed *int32 `protobuf:"varint,21,opt,name=Completed,proto3,oneof" json:"Completed,omitempty"` Readonly *int32 `protobuf:"varint,22,opt,name=Readonly,proto3,oneof" json:"Readonly,omitempty"` File []byte `protobuf:"bytes,23,opt,name=File,proto3,oneof" json:"File,omitempty"` Filename *string `protobuf:"bytes,24,opt,name=Filename,proto3,oneof" json:"Filename,omitempty"` IR *InternalRequest `protobuf:"bytes,25,opt,name=IR,proto3,oneof" json:"IR,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetAPIVersion ¶
func (*Request) GetCompleted ¶
func (*Request) GetFilename ¶ added in v1.11.6
func (*Request) GetIR ¶ added in v1.14.0
func (x *Request) GetIR() *InternalRequest
func (*Request) GetIsAdmin ¶
func (*Request) GetLanguage ¶
func (*Request) GetParamID ¶
func (*Request) GetParamIDD ¶ added in v1.13.0
func (*Request) GetReadonly ¶
func (*Request) GetSessionEnd ¶
func (*Request) GetTimeStamp ¶
func (*Request) GetTokenType ¶
func (*Request) GetUserAgent ¶ added in v1.11.5
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"` Code *UploadStatusCode `protobuf:"varint,3,opt,name=Code,proto3,enum=UploadStatusCode,oneof" json:"Code,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetCode ¶ added in v1.12.0
func (x *Response) GetCode() UploadStatusCode
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.
type UploadStatusCode ¶ added in v1.12.0
type UploadStatusCode int32
const ( UploadStatusCode_Unknown UploadStatusCode = 0 UploadStatusCode_Ok UploadStatusCode = 1 UploadStatusCode_Failed UploadStatusCode = 2 )
func (UploadStatusCode) Descriptor ¶ added in v1.12.0
func (UploadStatusCode) Descriptor() protoreflect.EnumDescriptor
func (UploadStatusCode) Enum ¶ added in v1.12.0
func (x UploadStatusCode) Enum() *UploadStatusCode
func (UploadStatusCode) EnumDescriptor
deprecated
added in
v1.12.0
func (UploadStatusCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use UploadStatusCode.Descriptor instead.
func (UploadStatusCode) Number ¶ added in v1.12.0
func (x UploadStatusCode) Number() protoreflect.EnumNumber
func (UploadStatusCode) String ¶ added in v1.12.0
func (x UploadStatusCode) String() string
func (UploadStatusCode) Type ¶ added in v1.12.0
func (UploadStatusCode) Type() protoreflect.EnumType