server

package
v0.0.0-...-8635785 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {

	// Server name.
	// Second line
	Name string
	// Server host name
	HostName string
	HTTPPort string
	// Port to serve gRPC traffic on
	RPCPort  string
	Password string
	// Disable http
	DisableHTTPCache bool
	// Max size of executor logs to be kept, in `bytes`.
	MaxExecutorLogSize units.MetricBytes
	Logger             logger.Config
	// contains filtered or unexported fields
}

Config the server Foo

func DefaultConfig

func DefaultConfig() Config

func (Config) HTTPAddress

func (c Config) HTTPAddress() string

HTTPAddress returns the HTTP address based on HostName and HTTPPort

func (Config) RPCAddress

func (c Config) RPCAddress() string

RPCAddress returns the RPC address based on HostName and RPCPort

Jump to

Keyboard shortcuts

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