service

package
v0.0.0-...-48781e9 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func Init

func Init() (*Service, error)

func (*Service) CreateService

func (s *Service) CreateService(ctx context.Context, req *pb.CreateServiceRequest) (*pb.CreateServiceResponse, error)

func (*Service) Heartbeat

func (s *Service) Heartbeat(req *pb.HeartbeatRequest, stream pb.AgentService_HeartbeatServer) error

func (*Service) RemoveService

func (s *Service) RemoveService(ctx context.Context, req *pb.RemoveServiceRequest) (*pb.EmptyResponse, error)

func (*Service) StartService

func (s *Service) StartService(ctx context.Context, req *pb.StartServiceRequest) (*pb.EmptyResponse, error)

func (*Service) StopService

func (s *Service) StopService(ctx context.Context, req *pb.StopServiceRequest) (*pb.EmptyResponse, error)

func (*Service) Sync

func (s *Service) Sync(req *pb.SyncRequest, stream pb.AgentService_SyncServer) error

Jump to

Keyboard shortcuts

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