apiserver

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

func NewAPIServer

func NewAPIServer(token string, indiServerAddr string, phd2ServerAddr string, port uint64, isTLS bool, origins string,
	currMode string, indiProfile string, agentModes map[string]AgentMode) *APIServer

func (*APIServer) Start

func (s *APIServer) Start()

func (*APIServer) Stop

func (s *APIServer) Stop()

type AgentMode

type AgentMode interface {
	Start()
	Stop()
	GetStatus() map[string]interface{}
}

AgentMode provides interface to operate with agent from API-server

Jump to

Keyboard shortcuts

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