inner

package
v0.6.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Would have been internal if only it wasnt reserved keyword

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(cfg APIConfig, payload ApiPayload) *API

func (*API) AttachToHandler

func (a *API) AttachToHandler(m *http.ServeMux)

type APIConfig

type APIConfig interface {
	GetBool(key string) (bool, error)
	SetBool(key string, val bool) error
}

type ApiPayload

type ApiPayload interface {
	GetSlotRawPayload(ctx context.Context, key structs.PayloadKey) (output [][]byte, err error)
}

type ServiceStatus

type ServiceStatus struct {
	GetHeader   bool `json:"getHeader"`
	GetPayload  bool `json:"getPayload"`
	SubmitBlock bool `json:"submitBlock"`
}

type Status

type Status struct {
	Services ServiceStatus `json:"endpoints"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL