context

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 7 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 {
	App      string          `mapstructure:"app"`
	Plugin   string          `mapstructure:"plugin"`
	Server   server          `mapstructure:"server"`
	Services map[string]unit `mapstructure:"services"`
	Units    map[string]unit `mapstructure:"plantd-unit@"`
	Modules  map[string]unit `mapstructure:"plantd-module@"`
}

func LoadConfig

func LoadConfig() (*Config, error)

type Handler

type Handler interface {
	Restart()
	Start()
	Status()
	GetStatus() []*pb.Service
	Stop()
	Watch()
}

type ManagerClient

type ManagerClient struct {
	Connection pb.ManagerClient
}

Client is used to make service calls over gRPC

func NewManagerClient

func NewManagerClient(host string, port int) (client *ManagerClient, err error)

NewClient creates a new Client type

func (*ManagerClient) Ping

func (c *ManagerClient) Ping() (err error)

Jump to

Keyboard shortcuts

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