service

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package service manages the main logic of server.

Package service manages the main logic of server.

Package service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

type Discoverer interface {
	Start(context.Context) (<-chan error, error)
	GetPods(*payload.Discoverer_Request) (*payload.Info_Pods, error)
	GetNodes(*payload.Discoverer_Request) (*payload.Info_Nodes, error)
}

func New

func New(opts ...Option) (dsc Discoverer, err error)

type Option added in v0.0.5

type Option func(d *discoverer) error

func WithDiscoverDuration added in v0.0.5

func WithDiscoverDuration(dur string) Option

func WithErrGroup added in v0.0.5

func WithErrGroup(eg errgroup.Group) Option

func WithName added in v0.0.5

func WithName(name string) Option

func WithNamespace added in v0.0.5

func WithNamespace(ns string) Option

Jump to

Keyboard shortcuts

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