client

package
v0.1.48 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg transport.Config) (api.Client, error)

func NewStorage

func NewStorage(cfg *storage.Config) (storage.Storage, error)

Types

type Config

type Config struct {
	Forwarder *forwarder.Config
	Collector *scanner.Config
	Transport *transport.Config
	Storage   *storage.Config
}

Config struct just aggregate different types of configs in one place

func LoadCfgFromFile

func LoadCfgFromFile(path string) (*Config, error)

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) Apply

func (c *Config) Apply(other *Config)

func (*Config) String

func (c *Config) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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