cgf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

ftpserver allows to create your own FTP(S) server

Index

Constants

View Source
const FTP_LOGIN_RETRY_NUMBER = 3
View Source
const FTP_LOGIN_RETRY_WAITING_TIME = 1 * time.Second // second

Variables

This section is empty.

Functions

func Login

func Login() error

func SendCDR

func SendCDR(supi string) error

Types

type Access

type Access struct {
	User   string            `json:"user"`
	Pass   string            `json:"pass"`
	Fs     string            `json:"fs"`
	Params map[string]string `json:"params"`
}

type Cgf

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

func OpenServer

func OpenServer(ctx context.Context, wg *sync.WaitGroup) *Cgf

func (*Cgf) Serve

func (f *Cgf) Serve(ctx context.Context, wg *sync.WaitGroup)

func (*Cgf) Terminate

func (f *Cgf) Terminate()

type FtpConfig

type FtpConfig struct {
	Version       int      `json:"version"`
	Accesses      []Access `json:"accesses"`
	ListenAddress string   `json:"listen_address"`
}

Jump to

Keyboard shortcuts

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