{"modulePath":"github.com/happy15/openedge","version":"v0.0.0-20190109072152-e0ce88252d68","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runtime\n\n## Functions\n\n```go\nfunc RegisterRuntimeServer(s *grpc.Server, srv RuntimeServer)\n```\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient client of function server\n\n```go\nfunc NewClient(cc config.RuntimeClient) (*Client, error)\n```\nNewClient creates a new client\n\n```go\nfunc (c *Client) Close() error\n```\nClose closes the client\n\n```go\nfunc (c *Client) Handle(in *Message) (*Message, error)\n```\nHandle sends request to function server\n\n```go\ntype Handle func(context.Context, *Message) (*Message, error)\n```\nHandle function handle\n\n```go\ntype Message struct {\n\tQOS                  uint32   `protobuf:\"varint,1,opt,name=QOS,proto3\" json:\"QOS,omitempty\"`\n\tTopic                string   `protobuf:\"bytes,2,opt,name=Topic,proto3\" json:\"Topic,omitempty\"`\n\tPayload              []byte   `protobuf:\"bytes,3,opt,name=Payload,proto3\" json:\"Payload,omitempty\"`\n\tFunctionName         string   `protobuf:\"bytes,11,opt,name=FunctionName,proto3\" json:\"FunctionName,omitempty\"`\n\tFunctionInvokeID     string   `protobuf:\"bytes,12,opt,name=FunctionInvokeID,proto3\" json:\"FunctionInvokeID,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nThe request message.\n\n```go\nfunc (*Message) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Message) GetFunctionInvokeID() string\n```\n\n```go\nfunc (m *Message) GetFunctionName() string\n```\n\n```go\nfunc (m *Message) GetPayload() []byte\n```\n\n```go\nfunc (m *Message) GetQOS() uint32\n```\n\n```go\nfunc (m *Message) GetTopic() string\n```\n\n```go\nfunc (*Message) ProtoMessage()\n```\n\n```go\nfunc (m *Message) Reset()\n```\n\n```go\nfunc (m *Message) String() string\n```\n\n```go\nfunc (m *Message) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *Message) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Message) XXX_Size() int\n```\n\n```go\nfunc (m *Message) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype RuntimeClient interface {\n\t// Handle handles request\n\tHandle(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)\n}\n```\nRuntimeClient is the client API for Runtime service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://godoc.org/google.golang.org/grpc#ClientConn.NewStream](https://godoc.org/google.golang.org/grpc#ClientConn.NewStream).\n\n```go\nfunc NewRuntimeClient(cc *grpc.ClientConn) RuntimeClient\n```\n\n```go\ntype RuntimeServer interface {\n\t// Handle handles request\n\tHandle(context.Context, *Message) (*Message, error)\n}\n```\nRuntimeServer is the server API for Runtime service.\n\n```go\ntype Server struct {\n\tAddress string\n\t// contains filtered or unexported fields\n}\n```\nServer runtime server to handle message\n\n```go\nfunc NewServer(c config.RuntimeServer, handle Handle) (*Server, error)\n```\nNewServer creates a new server\n\n```go\nfunc (s *Server) Close()\n```\nClose closes server\n\n```go\nfunc (s *Server) Handle(c context.Context, m *Message) (*Message, error)\n```\nHandle handles messages\n\n","path":"github.com/happy15/openedge/module/function/runtime","name":"runtime","synopsis":"","isRedistributable":true}
