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 (c *CertsLocation) Cert() *ftp_tlshandler.TLSCert
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)
Click to show internal directories.
Click to hide internal directories.