client

package
v0.0.0-...-55d14b2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 23 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapKeysString

func MapKeysString(m map[string]string, prefixSeparator string, suffixSeparator string) string

Types

type BuildClientBinaryInput

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

func (BuildClientBinaryInput) GetFilename

func (b BuildClientBinaryInput) GetFilename() string

func (BuildClientBinaryInput) GetServerAddress

func (b BuildClientBinaryInput) GetServerAddress() string

func (BuildClientBinaryInput) GetServerPort

func (b BuildClientBinaryInput) GetServerPort() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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