interfaces

package
v0.0.0-...-0368ba8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const STATUS_SERVICE_NAME = "github.com/jackyhome/StatusService"

Variables

This section is empty.

Functions

func RegisterStatusService

func RegisterStatusService(svc StatusServiceInterface) error

Types

type LtStatus

type LtStatus struct {
	ServerName   string
	ServerType   string
	ServerHost   string
	DiskInfo     string
	GpuStatus    models.StatusCode
	InstanceList []models.LtInstance
}

type StatusServiceClient

type StatusServiceClient struct {
	*rpc.Client
}

type StatusServiceInterface

type StatusServiceInterface interface {
	GetStatus(request string, reply *string) error
	UpdateStatus(request LtStatus, reply *string) error
	Stop(port string, reply *string) error
	Start(port string, reply *string) error
	Restart(port string, reply *string) error
}

Jump to

Keyboard shortcuts

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