Help us shape the future of Go! Take the 2026 Go Developer Survey

remote

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package remote contains business logic of working with all Remote instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Node    models.RemoteNode
	Service models.RemoteService
}

Instance contains data about node and service placed on the node

type Service

type Service struct {
	*ServiceConfig
}

Service is responsible for interactions with Remote instances.

func NewService

func NewService(config *ServiceConfig) (*Service, error)

NewService creates a new service.

func (*Service) List

func (svc *Service) List(ctx context.Context) ([]Instance, error)

List returns a list of all remote nodes (including RDS nodes).

type ServiceConfig

type ServiceConfig struct {
	DB *reform.DB
}

ServiceConfig contains configuration for remote.Service

Jump to

Keyboard shortcuts

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