client

package
v0.0.0-...-4a84db8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 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 BuildClientBinaryInput

type BuildClientBinaryInput struct {
	ServerAddress, ServerPort, Filename string
	RunHidden                           bool
	OSTarget                            system.OSType
}

type SendCommandInput

type SendCommandInput struct {
	ClientID  string
	Command   string
	Parameter string
	Request   string
}

type SendCommandOutput

type SendCommandOutput struct {
	Response string
}

type Service

type Service interface {
	AddConnection(clientID string, connection *websocket.Conn) error
	GetConnection(clientID string) (*websocket.Conn, bool)
	RemoveConnection(clientID string) error
	SendCommand(ctx context.Context, input SendCommandInput) (SendCommandOutput, error)
	BuildClient(BuildClientBinaryInput) (string, error)
}

func NewClientService

func NewClientService(
	appVersion string,
	configuration *environment.Configuration,
	repository authRepo.Repository,
	authService auth.Service,
) Service

Jump to

Keyboard shortcuts

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