service

package
v0.0.0-...-31c1c1e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 8 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 {
	ID      string
	Version string
	Domain  string
	URL     string
	Token   string
	Monitor metric.Reader
	Logger  log.Logger
}

Config is the configuration for the service

type Service

type Service interface {
	Start()
	Stop()
}

Service is an interface

func New

func New(config Config) (Service, error)

New creates a new service instance that implements the Service interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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