server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Overview

Package server implements the server of APIScout

Package server implements the server of APIScout

Package server implements the server of APIScout

Package server implements the server of APIScout

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// A map[string]string of all services that have been indexed by apiscout
	ServiceMap map[string]string
	// The location where to store the swaggerdocs
	SwaggerStore string
	// The location where to store content for Hugo
	HugoStore string
	// The mode in which apiscout is running (can be either KUBE or LOCAL)
	RunMode string
	// The external IP address of the Kubernetes cluster in case of LOCAL mode
	ExternalIP string
	// The base directory for Hugo
	HugoDir string
}

Server represents the APIScout server and implements methods.

func New

func New(swaggerStore string, hugoStore string, runMode string, externalIP string, hugoDir string) (*Server, error)

New creates a new instance of the Server

func (*Server) Start

func (srv *Server) Start()

Start is the main engine to start the APIScout server

Jump to

Keyboard shortcuts

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