Documentation ¶ Index ¶ type HTTPAPI func NewAPI(config conf.Config, delegate HTTPAPIDelegate) HTTPAPI type HTTPAPIDelegate Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type HTTPAPI ¶ type HTTPAPI interface { // Bind the server handlers. Init(*http.ServeMux) } func NewAPI ¶ func NewAPI(config conf.Config, delegate HTTPAPIDelegate) HTTPAPI type HTTPAPIDelegate ¶ type HTTPAPIDelegate interface { // Process the decision from the API. Should create and return the updated decision. ProcessNewDecisionFromAPI(ctx context.Context, decision *v1alpha1.Decision) (*v1alpha1.Decision, error) } Source Files ¶ View all Source files api.go Click to show internal directories. Click to hide internal directories.