Documentation
¶
Overview ¶
*
- @Author: kwens
- @Date: 2022-08-10 16:52:06
- @Description:
*
- @Author: kwens
- @Date: 2022-08-10 15:51:18
- @Description:
*
- @Author: kwens
- @Date: 2022-08-10 16:11:08
- @Description:
*
- @Author: kwens
- @Date: 2022-08-10 16:39:33
- @Description:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadOprLog ¶
func LoadOprLog()
func RegisterRepo ¶
func RegisterRepo(repo OprLogRepository)
Types ¶
type OprLog ¶
type OprLog struct { ID string OprModule string OprType string Operator string OprTime string OprIp string OprValue string OriValue string }
type OprLogClient ¶
type OprLogClient struct { OprLogChan chan OprLog OprHandle map[string]OprValue // contains filtered or unexported fields }
var (
OprLogCli *OprLogClient
)
func NewOprLogClient ¶
func NewOprLogClient() *OprLogClient
func (*OprLogClient) GetValue ¶
func (c *OprLogClient) GetValue(k string) OprValue
func (*OprLogClient) RegisterValue ¶
func (c *OprLogClient) RegisterValue(k string, v OprValue)
func (*OprLogClient) Write ¶
func (c *OprLogClient) Write(log OprLog)
type OprLogRepository ¶
Click to show internal directories.
Click to hide internal directories.