Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoordinatedRequest ¶
type CoordinatedRequest struct {
Method string `json:"method"`
URL string `json:"url"`
ID string `json:"request_id"`
Body []byte `json:"body"`
Headers map[string]string `json:"headers"`
Params map[string]string `json:"params"`
State map[string][]byte `json:"state"`
// contains filtered or unexported fields
}
CoordinatedRequest represents a request whose fulfillment can be coordinated across multiple hosts and is serializable to facilitate interoperation with Wasm Runnables and transmissible over the wire
func FromJSON ¶
func FromJSON(jsonBytes []byte) (*CoordinatedRequest, error)
FromJSON unmarshalls a CoordinatedRequest from JSON
func FromVKRequest ¶
FromVKRequest creates a CoordinatedRequest from an http.Request
func (*CoordinatedRequest) BodyField ¶
func (c *CoordinatedRequest) BodyField(key string) (string, error)
BodyField returns a field from the request body as a string
func (*CoordinatedRequest) ToJSON ¶
func (c *CoordinatedRequest) ToJSON() ([]byte, error)
ToJSON returns a JSON representation of a CoordinatedRequest
Click to show internal directories.
Click to hide internal directories.