config

package
v0.2.1-0...-d3ae3b1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 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 RawConfig

type RawConfig struct {
	NodeName string
	Data     map[string]string
}

RawConfig represents the resource manager config data in unparsed form, as received from the agent

func (*RawConfig) HasIdenticalData

func (c *RawConfig) HasIdenticalData(data map[string]string) bool

HasIdenticalData returns true if RawConfig has identical data to the supplied one.

type Server

type Server interface {
	Start(string) error
	Stop()
}

Server is the interface for our gRPC server.

func NewConfigServer

func NewConfigServer(cb SetConfigCb) (Server, error)

NewConfigServer creates new Server instance.

type SetConfigCb

type SetConfigCb func(*RawConfig) error

SetConfigCb is a callback function for SetConfig request

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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