service

package
v0.0.0-...-fef4acc Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	ConfigDir   string
	ManagerAddr *net.TCPAddr
	ServiceAddr *net.TCPAddr
	Verbose     bool
}

Flags : service flags

func GetFlags

func GetFlags() (*Flags, error)

GetFlags : retrieves flags from CLI

type GRPCServerHealth

type GRPCServerHealth struct{}

func (*GRPCServerHealth) Check

func (*GRPCServerHealth) Watch

type Key

type Key struct {
	ServiceID *uuid.UUID `json:"service_id"`
	// contains filtered or unexported fields
}

Key : key used for initialization and authentication of nodes

func GetKey

func GetKey(configDir string) (*Key, error)

GetKey : gets contents of key.json file

func (*Key) Save

func (k *Key) Save(opts SaveKeyOptions) error

Save : save the key.json file

type SaveKeyOptions

type SaveKeyOptions struct {
	ConfigDir string
	ServiceID uuid.UUID
}

SaveKeyOptions : used for saving a new key locally

type Service

type Service struct {
	ErrorC chan error

	Flags *Flags
	Key   *Key
}

Service : cloud service definition

func New

func New() (*Service, error)

New : create a new cloud service

Jump to

Keyboard shortcuts

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