master

package
v0.0.0-...-8fb9c67 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package controller implements the APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API provides application resources and handlers.

func NewAPI

func NewAPI(db *sql.DB, d disco.DiscoveryService) (*API, error)

NewAPI configures and returns application API - based on a function store and agent discovery service

func (*API) Router

func (a *API) Router() *chi.Mux

Router provides application routes.

type Resource

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

Resource the controller to manage agents and functions

func NewResource

func NewResource(store database.FunctionStore, d disco.DiscoveryService) *Resource

NewResource creates the controller to manage agents and functions

Jump to

Keyboard shortcuts

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