Documentation ¶
Overview ¶
Package proto_runtime is a generated protocol buffer package.
It is generated from these files:
server.proto
It has these top-level messages:
Void Ok InvokeParam InvokeResponse
Index ¶
- func RegisterStubServer(s *grpc.Server, srv StubServer)
- type InvokeParam
- func (*InvokeParam) Descriptor() ([]byte, []int)
- func (m *InvokeParam) GetFunction() string
- func (m *InvokeParam) GetHeader() map[string]string
- func (m *InvokeParam) GetID() string
- func (m *InvokeParam) GetParams() []string
- func (*InvokeParam) ProtoMessage()
- func (m *InvokeParam) Reset()
- func (m *InvokeParam) String() string
- type InvokeResponse
- type Ok
- type StubClient
- type StubServer
- type Void
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStubServer ¶
func RegisterStubServer(s *grpc.Server, srv StubServer)
Types ¶
type InvokeParam ¶
type InvokeParam struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Function string `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"` Params []string `protobuf:"bytes,3,rep,name=params" json:"params,omitempty"` Header map[string]string `` /* 146-byte string literal not displayed */ }
func (*InvokeParam) Descriptor ¶
func (*InvokeParam) Descriptor() ([]byte, []int)
func (*InvokeParam) GetFunction ¶
func (m *InvokeParam) GetFunction() string
func (*InvokeParam) GetHeader ¶
func (m *InvokeParam) GetHeader() map[string]string
func (*InvokeParam) GetID ¶
func (m *InvokeParam) GetID() string
func (*InvokeParam) GetParams ¶
func (m *InvokeParam) GetParams() []string
func (*InvokeParam) ProtoMessage ¶
func (*InvokeParam) ProtoMessage()
func (*InvokeParam) Reset ¶
func (m *InvokeParam) Reset()
func (*InvokeParam) String ¶
func (m *InvokeParam) String() string
type InvokeResponse ¶
type InvokeResponse struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` }
func (*InvokeResponse) Descriptor ¶
func (*InvokeResponse) Descriptor() ([]byte, []int)
func (*InvokeResponse) GetBody ¶
func (m *InvokeResponse) GetBody() []byte
func (*InvokeResponse) GetID ¶
func (m *InvokeResponse) GetID() string
func (*InvokeResponse) GetStatus ¶
func (m *InvokeResponse) GetStatus() int32
func (*InvokeResponse) ProtoMessage ¶
func (*InvokeResponse) ProtoMessage()
func (*InvokeResponse) Reset ¶
func (m *InvokeResponse) Reset()
func (*InvokeResponse) String ¶
func (m *InvokeResponse) String() string
type Ok ¶
type Ok struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (*Ok) Descriptor ¶
func (*Ok) ProtoMessage ¶
func (*Ok) ProtoMessage()
type StubClient ¶
type StubClient interface { HealthCheck(ctx context.Context, in *Ok, opts ...grpc.CallOption) (*Ok, error) Invoke(ctx context.Context, in *InvokeParam, opts ...grpc.CallOption) (*InvokeResponse, error) Stop(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Void, error) }
func NewStubClient ¶
func NewStubClient(cc *grpc.ClientConn) StubClient
type StubServer ¶
Click to show internal directories.
Click to hide internal directories.