exporter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFound = fmt.Errorf("not found")
View Source
var NotStarted = fmt.Errorf("not started")
View Source
var Stopped = fmt.Errorf("stopped")

Functions

This section is empty.

Types

type Client

type Client struct {
	Config Config
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Client, error)

func (*Client) GetServiceState

func (client *Client) GetServiceState(name string) (result ServiceState)

func (*Client) SetServices

func (client *Client) SetServices(services map[string]ServiceConfig)

func (*Client) Start

func (client *Client) Start() error

func (*Client) Stop

func (client *Client) Stop()

type Config

type Config struct {
	ServerAddress string
	grpcapi.TLSConfig
	Log         *log.Logger
	Services    map[string]ServiceConfig
	AccessToken string
}

type ServiceConfig

type ServiceConfig struct {
	Address string
}

type ServiceState

type ServiceState struct {
	ServerAddress string
	Error         error
}

Jump to

Keyboard shortcuts

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