api

package
v0.0.0-...-b022d11 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler define handler

func NewHandler

func NewHandler(config *types.Config, workloadsManager *workload.Manager) *Handler

NewHandler new api http handler

func (*Handler) Serve

func (h *Handler) Serve()

Serve start a api service blocks by http.ListenAndServe run this in a separated goroutine

type JSON

type JSON map[string]interface{}

JSON define a json

Jump to

Keyboard shortcuts

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