billing

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

ftpserver allows to create your own FTP(S) server

Index

Constants

View Source
const (
	DefaultFTPTimeout = 5 * time.Second
)

Configuration constants

View Source
const (
	DefaultFilePermission = 0o600
)

File permission constants

Variables

This section is empty.

Functions

func FTPLogin

func FTPLogin() (*ftp.ServerConn, error)

The ftp client is for CDR Pull method, that is the billing domain actively query CDR file from CHF

func PullCDRFile

func PullCDRFile(c *ftp.ServerConn, fileName string) ([]byte, error)

Types

type BillingDomain

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

func OpenServer

func OpenServer(wg *sync.WaitGroup) *BillingDomain

The ftp server is for CDR Push method, that is the CHF will send the CDR file to the FTP server

func (*BillingDomain) Serve

func (b *BillingDomain) Serve()

func (*BillingDomain) Stop

func (b *BillingDomain) Stop()

Jump to

Keyboard shortcuts

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