Documentation ¶
Index ¶
- Variables
- func Add(dbip, ip, logstr, project, slug, tool, user, addtime string, keep int) error
- func Remove(dbip, id string) error
- func Timecheck(timestr string, keepdate int) (bool, error)
- type Log
- func All(dbip string) ([]Log, error)
- func FindTool(dbip, toolname string, page, pageMaxItemNum int) ([]Log, int, error)
- func FindToolProject(dbip, toolname, project string, page, pageMaxItemNum int) ([]Log, int, error)
- func FindToolProjectSlug(dbip, toolname, project, slug string, page, pageMaxItemNum int) ([]Log, int, error)
- func Search(dbip, words string, page, pageMaxItemNum int) ([]Log, int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DBNAME 은 데이터베이스 이름이다. DBNAME = "dilog" // COLLECTION 은 MongoDB Collection 이름이다. COLLECTION = "log" )
Functions ¶
Types ¶
type Log ¶
type Log struct { Cip string // Client IP ID string // log ID Keep int // 보관일수 Log string // 로그내용 Project string // 프로젝트 Slug string // 로그에 입력되는 Slug 예) 프로젝트 매니징툴에서 사용되는 에셋명 또는 샷명 Time string // 로그가 기입된 시간 Tool string // 로그가 보내진 툴 User string // 유저이름 }
Log 자료구조 이다.
func FindToolProject ¶ added in v1.0.4
FindToolProject 함수는 툴이름, 프로젝트 이름을 이용해서 log를 검색합니다.
Click to show internal directories.
Click to hide internal directories.