api

package
v0.0.0-...-706ea71 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// token ttl
	MaxTokenTTL = 3600 * 24 // one day

	// manager cluster name
	ManagerCluster = "leader"
)
View Source
const (
	WorkloadClusters crdName = "crd"
	ClientToken      crdName = "token"
)

Variables

This section is empty.

Functions

func NewHTTPMux

func NewHTTPMux(s *APIServer) *router.Router

Types

type APIServer

type APIServer struct {
	// http server
	//Server *server.Server
	// access token
	Token *ttl.TokenTTL
	// cluster mux
	XwcMux map[string]*clusterMuxer
	// crd watcher
	CRDWatcher map[crdName]crdwatcher.WatcherInterface
	//xwc cache
	XWCCache cache.Store

	sync.Mutex
}

func NewAPIServer

func NewAPIServer() *APIServer

func (*APIServer) Run

func (s *APIServer) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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