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 ¶
View Source
var ( BFE_PRODUCT_ID = (*bfe_access_pb3.ProductID)( proto.Int32(int32(bfe_access_pb3.ProductID_BFE))) LOG_TYPE_REQ = (*bfe_access_pb3.BfeLogType)( proto.Int32(int32(bfe_access_pb3.BfeLogType_Request))) LOG_TYPE_SESSION = (*bfe_access_pb3.BfeLogType)( proto.Int32(int32(bfe_access_pb3.BfeLogType_Session))) )
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 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 (m *ModuleAccessPb3) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
func (*ModuleAccessPb3) Name ¶
func (m *ModuleAccessPb3) Name() string
Click to show internal directories.
Click to hide internal directories.