controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecurityRealm    = "Restricted"
	APIKeyHeaderName = "X-API-Key"
)

Variables

This section is empty.

Functions

func CorsHandler

func CorsHandler() func(h http.Handler) http.Handler

Types

type AgentController

type AgentController interface {
	RegisterGRPCHandler(server *grpc.Server)
	RegisterGRPCGateway(mux *runtime.ServeMux, endpoint string, opts ...grpc.DialOption)
	APISpec() (http.HandlerFunc, error)
}

type Runner

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

func New

func New(ctx provider, ac AgentController) (*Runner, error)

func (*Runner) Launch

func (r *Runner) Launch() error

Jump to

Keyboard shortcuts

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