Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidBody = fmt.Errorf("%w: invalid body", status.HTTP[400])
ErrInvalidBody is returned when the request body cannot be decoded.
Functions ¶
This section is empty.
Types ¶
type DirectConfig ¶
DirectConfig holds configuration for the /direct endpoint.
type External ¶
type External struct {
// contains filtered or unexported fields
}
External is the client-facing HTTP server exposing instruction, result, wallet, and TEE info endpoints.
func NewExternal ¶
func NewExternal( port string, instructionService *instruction.Service, resultService ResultService, teeInfo *info.Service, wallet *wallets.Service, privateKey *ecdsa.PrivateKey, actionQueues *queue.ActionQueues, direct DirectConfig, ) *External
NewExternal creates and configures a new External server listening on port.
type Internal ¶
type Internal struct {
// contains filtered or unexported fields
}
Internal is the system-facing HTTP server exposing action queue, result, and liveness endpoints.
func NewInternal ¶
func NewInternal(port string, actionQueues *queue.ActionQueues, resultService ResultService, wallet *wallets.Service, liveness liveness, ) *Internal
NewInternal creates and configures a new Internal server listening on port.
type ResultService ¶
type ResultService interface {
ProcessAndStore(context.Context, *types.ActionResponse) error
Serve(context.Context, common.Hash, types.SubmissionTag) (*types.ActionResponse, error)
}
ResultService defines the interface for processing and serving action results.
Click to show internal directories.
Click to hide internal directories.