__

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_microservice_proto protoreflect.FileDescriptor
View Source
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"`
	Sign       *string               `protobuf:"bytes,8,opt,name=Sign,proto3,oneof" json:"Sign,omitempty"`
	IP         *string               `protobuf:"bytes,9,opt,name=IP,proto3,oneof" json:"IP,omitempty"`
	UserAgent  *string               `protobuf:"bytes,10,opt,name=UserAgent,proto3,oneof" json:"UserAgent,omitempty"`
	TokenType  *string               `protobuf:"bytes,11,opt,name=TokenType,proto3,oneof" json:"TokenType,omitempty"`
	TimeStamp  *int32                `protobuf:"varint,12,opt,name=TimeStamp,proto3,oneof" json:"TimeStamp,omitempty"`
	Language   *string               `protobuf:"bytes,13,opt,name=Language,proto3,oneof" json:"Language,omitempty"`
	APIVersion *string               `protobuf:"bytes,14,opt,name=APIVersion,proto3,oneof" json:"APIVersion,omitempty"`
	Method     *string               `protobuf:"bytes,15,opt,name=Method,proto3,oneof" json:"Method,omitempty"`
	UID        *string               `protobuf:"bytes,16,opt,name=UID,proto3,oneof" json:"UID,omitempty"`
	IsAdmin    *int32                `protobuf:"varint,17,opt,name=IsAdmin,proto3,oneof" json:"IsAdmin,omitempty"`
	SessionEnd *int32                `protobuf:"varint,18,opt,name=SessionEnd,proto3,oneof" json:"SessionEnd,omitempty"`
	Completed  *int32                `protobuf:"varint,19,opt,name=Completed,proto3,oneof" json:"Completed,omitempty"`
	Readonly   *int32                `protobuf:"varint,20,opt,name=Readonly,proto3,oneof" json:"Readonly,omitempty"`
	File       []byte                `protobuf:"bytes,21,opt,name=File,proto3,oneof" json:"File,omitempty"`
	Filename   *string               `protobuf:"bytes,22,opt,name=Filename,proto3,oneof" json:"Filename,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetAPIVersion

func (x *Request) GetAPIVersion() string

func (*Request) GetAction

func (x *Request) GetAction() string

func (*Request) GetArgs

func (x *Request) GetArgs() map[string]*anypb.Any

func (*Request) GetCompleted

func (x *Request) GetCompleted() int32

func (*Request) GetFile added in v1.11.6

func (x *Request) GetFile() []byte

func (*Request) GetFilename added in v1.11.6

func (x *Request) GetFilename() string

func (*Request) GetIP added in v1.11.5

func (x *Request) GetIP() string

func (*Request) GetIsAdmin

func (x *Request) GetIsAdmin() int32

func (*Request) GetLanguage

func (x *Request) GetLanguage() string

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetModule

func (x *Request) GetModule() string

func (*Request) GetParam

func (x *Request) GetParam() string

func (*Request) GetParamID

func (x *Request) GetParamID() string

func (*Request) GetPath

func (x *Request) GetPath() string

func (*Request) GetReadonly

func (x *Request) GetReadonly() int32

func (*Request) GetSessionEnd

func (x *Request) GetSessionEnd() int32

func (*Request) GetSign added in v1.11.5

func (x *Request) GetSign() string

func (*Request) GetTimeStamp

func (x *Request) GetTimeStamp() int32

func (*Request) GetToken

func (x *Request) GetToken() string

func (*Request) GetTokenType

func (x *Request) GetTokenType() string

func (*Request) GetUID

func (x *Request) GetUID() string

func (*Request) GetUserAgent added in v1.11.5

func (x *Request) GetUserAgent() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode added in v1.12.0

func (x *Response) GetCode() UploadStatusCode

func (*Response) GetData

func (x *Response) GetData() map[string]*anypb.Any

func (*Response) GetRequestBack

func (x *Response) GetRequestBack() *Request

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 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

type ReverseServer interface {
	Do(context.Context, *Request) (*Response, error)
}

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.

func (UnimplementedReverseServer) Do

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) Enum added in v1.12.0

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 (UploadStatusCode) String added in v1.12.0

func (x UploadStatusCode) String() string

func (UploadStatusCode) Type added in v1.12.0

Jump to

Keyboard shortcuts

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