Documentation
¶
Index ¶
- func RegisterRuntimeServer(s *grpc.Server, srv RuntimeServer)
- type Client
- type Handle
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetFunctionInvokeID() string
- func (m *Message) GetFunctionName() string
- func (m *Message) GetPayload() []byte
- func (m *Message) GetQOS() uint32
- func (m *Message) GetTopic() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type RuntimeClient
- type RuntimeServer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRuntimeServer ¶
func RegisterRuntimeServer(s *grpc.Server, srv RuntimeServer)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client client of function server
type Message ¶
type Message struct {
QOS uint32 `protobuf:"varint,1,opt,name=QOS,proto3" json:"QOS,omitempty"`
Topic string `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=Payload,proto3" json:"Payload,omitempty"`
FunctionName string `protobuf:"bytes,11,opt,name=FunctionName,proto3" json:"FunctionName,omitempty"`
FunctionInvokeID string `protobuf:"bytes,12,opt,name=FunctionInvokeID,proto3" json:"FunctionInvokeID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
The request message.
func (*Message) Descriptor ¶
func (*Message) GetFunctionInvokeID ¶
func (*Message) GetFunctionName ¶
func (*Message) GetPayload ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type RuntimeClient ¶
type RuntimeClient interface {
// Handle handles request
Handle(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}
RuntimeClient is the client API for Runtime service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRuntimeClient ¶
func NewRuntimeClient(cc *grpc.ClientConn) RuntimeClient
type RuntimeServer ¶
type RuntimeServer interface {
// Handle handles request
Handle(context.Context, *Message) (*Message, error)
}
RuntimeServer is the server API for Runtime service.