Documentation ¶
Index ¶
- Variables
- func RegisterOrangeRPCServer(s *grpc.Server, srv OrangeRPCServer)
- type OrangeRPCClient
- type OrangeRPCServer
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameter) GetBody() []byte
- func (x *Parameter) GetHeader() map[string]string
- func (x *Parameter) GetUri() string
- func (*Parameter) ProtoMessage()
- func (x *Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameter) Reset()
- func (x *Parameter) String() string
- type Response
- type UnimplementedOrangeRPCServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_orange_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOrangeRPCServer ¶
func RegisterOrangeRPCServer(s *grpc.Server, srv OrangeRPCServer)
Types ¶
type OrangeRPCClient ¶
type OrangeRPCClient interface {
RequestDo(ctx context.Context, in *Parameter, opts ...grpc.CallOption) (*Response, error)
}
OrangeRPCClient is the client API for OrangeRPC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOrangeRPCClient ¶
func NewOrangeRPCClient(cc grpc.ClientConnInterface) OrangeRPCClient
type OrangeRPCServer ¶
OrangeRPCServer is the server API for OrangeRPC service.
type Parameter ¶
type Parameter struct { Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` Header map[string]string `` /* 153-byte string literal not displayed */ Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Parameter) Descriptor
deprecated
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶
func (x *Parameter) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedOrangeRPCServer ¶
type UnimplementedOrangeRPCServer struct { }
UnimplementedOrangeRPCServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.