util

package
v0.0.0-...-577d5ac Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter runs an unknown service discovery implementation and converts its target groups to JSON and writes to a file for file_sd.

func NewAdapter

func NewAdapter(ctx context.Context, file string, name string, d discovery.Discoverer, logger log.Logger) *Adapter

NewAdapter creates a new instance of Adapter.

func (*Adapter) Run

func (a *Adapter) Run()

Run starts a Discovery Manager and the custom service discovery implementation.

type EcsLogger

type EcsLogger struct {
	log.Logger
}

func (*EcsLogger) Debugf

func (l *EcsLogger) Debugf(format string, v ...interface{})

Debugf implements the Logger interface of the Scaleway API.

func (*EcsLogger) Fatalf

func (l *EcsLogger) Fatalf(format string, v ...interface{})

Fatalf implements the Logger interface of the Scaleway API.

func (*EcsLogger) Infof

func (l *EcsLogger) Infof(format string, v ...interface{})

Infof implements the Logger interface of the Scaleway API.

func (*EcsLogger) LogHTTP

func (l *EcsLogger) LogHTTP(r *http.Request)

LogHTTP implements the Logger interface of the Scaleway API.

func (*EcsLogger) Println

func (l *EcsLogger) Println(v ...interface{})

Warnf implements the Logger interface of the promhttp package.

func (*EcsLogger) Warnf

func (l *EcsLogger) Warnf(format string, v ...interface{})

Warnf implements the Logger interface of the Scaleway API.

Jump to

Keyboard shortcuts

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