server

package
v0.0.0-...-b3ac2b6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: BSD-2-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthResponse

type HealthResponse struct {
	HostIP     string `json:"hostIP"`
	InstanceID string `json:"instanceId"`
}

HealthResponse represents a response for the health check.

type Server

type Server struct {
	APIServer                  string
	APIToken                   string
	AppPort                    string
	MetricsPort                string
	BaseRoleARN                string
	DefaultRAMRole             string
	RAMRoleKey                 string
	RAMRoleSessionTTL          time.Duration
	MetadataAddress            string
	HostInterface              string
	HostIP                     string
	NodeName                   string
	NamespaceKey               string
	LogLevel                   string
	LogFormat                  string
	NamespaceRestrictionFormat string
	UseRegionalStsEndpoint     bool
	AddIPTablesRule            bool
	AutoDiscoverBaseArn        bool
	AutoDiscoverDefaultRole    bool
	Debug                      bool
	Insecure                   bool
	NamespaceRestriction       bool
	Verbose                    bool
	Version                    bool

	BackoffMaxElapsedTime time.Duration
	BackoffMaxInterval    time.Duration
	InstanceID            string
	HealthcheckFailReason string
	// contains filtered or unexported fields
}

Server encapsulates all of the parameters necessary for starting up the server. These can either be set via command line or directly.

func NewServer

func NewServer() *Server

NewServer will create a new Server with default values.

func (*Server) Run

func (s *Server) Run(host, token, nodeName string, insecure bool, accessKey, accessSecret string) error

Run runs the specified Server.

Jump to

Keyboard shortcuts

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