server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C_loc = &CertsLocation{
	CertsDirectory: ServerConfig.CertsDirectory,
	caPem:          &ftp_tlshandler.CAPem{},
	cert_d:         ftp_tlshandler.CertData{},
	tlsCert:        &ftp_tlshandler.TLSCert{},
}
View Source
var Logger = logging.Logger
View Source
var ServerConfig = server_config.ServerConfig

Functions

func TestServerLoop

func TestServerLoop(ctx ftp_context.Context, port string) (ftp_err error)

Types

type CertsLocation

type CertsLocation struct {
	CertsDirectory string
	// contains filtered or unexported fields
}

func (CertsLocation) CA

func (cd CertsLocation) CA() string

func (*CertsLocation) Cert

func (CertsLocation) CertData

func (cd CertsLocation) CertData() string

func (CertsLocation) TLS

func (cd CertsLocation) TLS() string

type ServerType

type ServerType struct {
	Port string `json:"port"`

	HttpsServer *http.Server
	*gin.Engine

	ServerRun func(ctx ftp_context.Context, err_c chan error)
}

func (*ServerType) InitServer

func (st *ServerType) InitServer(server_cert *ftp_tlshandler.TLSCert)

Jump to

Keyboard shortcuts

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