service

package
v0.0.0-...-3736fb9 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package service contains the Agent that provides control access to the system and system stats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	pb.UnimplementedAgentServer
	// contains filtered or unexported fields
}

Agent provides a system agent service that runs a gRPC service for doing application installs and an HTTP service for relaying stats.

func New

func New() (*Agent, error)

New creates a new Agent instance.

func (*Agent) Install

func (a *Agent) Install(ctx context.Context, req *pb.InstallReq) (*pb.InstallResp, error)

Install implements our gRPC Install RPC.

func (*Agent) Remove

func (a *Agent) Remove(ctx context.Context, req *pb.RemoveReq) (*pb.RemoveResp, error)

func (*Agent) Start

func (a *Agent) Start() error

Start starts the agent. As the agent is not intended to ever stop, this has no Stop(). This blocks unless there is a problem.

Jump to

Keyboard shortcuts

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