mod_access_pb3

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DEF_REQ_BODY_LOGRATE = 1000
	MAX_REQ_BODY_LOGRATE = 2000
)
View Source
const (
	BFE_MOD_ACCESS_PB3 = "mod_access_pb3"
)

Variables

Functions

func ConfModAccessPbCheck

func ConfModAccessPbCheck(cfg *ConfModAccessPb2) error

func ConnAddrInfoGen

func ConnAddrInfoGen(session *bfe_basic.Session) *bfe_access_pb3.ConnAddrInfo

Types

type ConfModAccessPb2

type ConfModAccessPb2 struct {
	Log struct {
		LogPrefix   string // log file prefix
		LogDir      string // log file dir
		RotateWhen  string // rotate time
		BackupCount int    // log file backup number
	}

	BasicConf struct {
		OpenDebug bool // whether open debug
	}
}

func ConfLoad

func ConfLoad(filePath string) (*ConfModAccessPb2, error)

load config from config file

func (*ConfModAccessPb2) Check

func (cfg *ConfModAccessPb2) Check() error

type ModuleAccessLogState

type ModuleAccessLogState struct {
	AllReqLogCount *metrics.Counter
	AllSesLogCount *metrics.Counter
}

type ModuleAccessPb3

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

func NewModuleAccessPb3

func NewModuleAccessPb3() *ModuleAccessPb3

func (*ModuleAccessPb3) Close

func (m *ModuleAccessPb3) Close() error

func (*ModuleAccessPb3) Init

func (*ModuleAccessPb3) Name

func (m *ModuleAccessPb3) Name() string

Jump to

Keyboard shortcuts

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