server

package
v0.0.0-...-15b5fa4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialsConfig

type CredentialsConfig struct {
	Login                  string
	Password               string
	PasswordAuthentication bool
}

type Mode

type Mode int
const (
	ModeNoAuth Mode = iota
	ModeAuth
	ModeCommands
	ModeFiles
	ModeStatus

	ModeUnknown = -1
)

type Server

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

func NewServer

func NewServer(
	ip string,
	port int,
	certFile string,
	keyFile string,
	credConfig CredentialsConfig,
	executor contracts.Executor,
	taskStatsReader domain.GDTaskStatsReader,
) (*Server, error)

func (*Server) Run

func (srv *Server) Run(ctx context.Context) error

func (*Server) Stop

func (srv *Server) Stop(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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