Documentation ¶
Index ¶
Constants ¶
View Source
const MaxBytesRead = 10000000
MaxBytesRead limits the number of bytes to read per request
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP defines a structure for an HTTP server that provides REST API services.
type InvokeError ¶
type InvokeError struct { Code string `json:"code"` Msg string `json:"msg"` Error bool `json:"error"` }
InvokeError describes an invoke error
type InvokeRequest ¶
type InvokeRequest struct { ID string `json:"id"` Function string `json:"function"` Params []string `json:"params"` }
InvokeRequest describes the body of a structured invoke request
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC defines a grpc server for invoking a cocoon code
func (*RPC) GetConnector ¶
GetConnector returns the connector
func (*RPC) Transact ¶
func (rpc *RPC) Transact(ctx context.Context, req *proto_connector.Request) (*proto_connector.Response, error)
Transact handles cocoon code or ledger bound transactions.
Directories ¶
Path | Synopsis |
---|---|
Package proto_connector is a generated protocol buffer package.
|
Package proto_connector is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.