agent

package
v0.0.0-...-e27afb6 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: AGPL-3.0 Imports: 35 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 {
	Enable bool `json:"enable" usage:"enable the agent API"`

	Shutdown struct {
		Enable bool `json:"enable" usage:"enables the agent API to initiate a shutdown"`
	} `json:"shutdown"`
}

type Service

type Service struct {
	agentv1.UnsafeAgentAPIServer

	Credentials      *local.Store
	InitiateShutdown func()
	// contains filtered or unexported fields
}

func (*Service) Publish

func (s *Service) Publish(ctx context.Context, request *agentv1.PublishRequest) (*agentv1.PublishResponse, error)

func (*Service) Subscribe

func (*Service) WatchSubscription

func (s *Service) WatchSubscription(_ agentv1.AgentAPI_WatchSubscriptionServer) error

Jump to

Keyboard shortcuts

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