Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapabilityConfiguration ¶
type CapabilityConfiguration struct {
// The module name
Module string
// A map of values that represent the configuration values
Values map[string]string
}
Represents the data sent to a capability provider at link time
func DecodeCapabilityConfiguration ¶
func DecodeCapabilityConfiguration(decoder *msgpack.Decoder) (CapabilityConfiguration, error)
func DecodeCapabilityConfigurationNullable ¶
func DecodeCapabilityConfigurationNullable(decoder *msgpack.Decoder) (*CapabilityConfiguration, error)
type Handlers ¶
type Handlers struct {
// This operation is invoked by the host runtime to determine the health of an
// actor
HealthRequest func(request HealthCheckRequest) (HealthCheckResponse, error)
}
type HealthCheckRequest ¶
type HealthCheckRequest struct {
// Since we cannot currently serialize empty requests, this placeholder is required
Placeholder bool
}
A request sent to the actor by the host in order to determine health status
func DecodeHealthCheckRequest ¶
func DecodeHealthCheckRequest(decoder *msgpack.Decoder) (HealthCheckRequest, error)
func DecodeHealthCheckRequestNullable ¶
func DecodeHealthCheckRequestNullable(decoder *msgpack.Decoder) (*HealthCheckRequest, error)
type HealthCheckResponse ¶
type HealthCheckResponse struct {
// A flag that indicates the the actor is healthy
Healthy bool
// A message containing additional information about the actors health
Message string
}
All actors must return a health check response to the host upon receipt of a health request. Returning in `Err` indicates total actor failure, while returning a valid response with the `healthy` flag set to false indicates that the actor has somehow detected that it cannot perform its given task
func DecodeHealthCheckResponse ¶
func DecodeHealthCheckResponse(decoder *msgpack.Decoder) (HealthCheckResponse, error)
func DecodeHealthCheckResponseNullable ¶
func DecodeHealthCheckResponseNullable(decoder *msgpack.Decoder) (*HealthCheckResponse, error)
Click to show internal directories.
Click to hide internal directories.