Documentation ¶
Index ¶
- type Client
- func (bmodel *Client) Aggregate(querylist ...bson.M) []bson.M
- func (bmodel *Client) Count(query bson.M) int
- func (bmodel *Client) CountSubList(query bson.M, listkey string) int
- func (bmodel *Client) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Client) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Client) FindAll(query bson.M) []bson.M
- func (bmodel *Client) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Client) FindOne(query bson.M) bson.M
- func (bmodel *Client) GetAll() []bson.M
- func (bmodel *Client) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Client) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Client) InsertMany(datalist []interface{}) error
- func (bmodel *Client) InsertOne(data bson.M) bool
- func (bmodel *Client) Remove(query bson.M) error
- func (bmodel *Client) UpdateByID(id interface{}, data interface{}) error
- type CodeInfo
- type Config
- func (c *Config) AddOne(id string, key string, value string) bool
- func (bmodel *Config) Aggregate(querylist ...bson.M) []bson.M
- func (bmodel *Config) Count(query bson.M) int
- func (bmodel *Config) CountSubList(query bson.M, listkey string) int
- func (c *Config) DelOne(id string, key string, value string) bool
- func (bmodel *Config) Distinct(query bson.M, key string) []interface{}
- func (c *Config) EditByID(id string, key string, value string) bool
- func (bmodel *Config) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Config) FindAll(query bson.M) []bson.M
- func (bmodel *Config) FindByID(id bson.ObjectId) bson.M
- func (c *Config) FindOne(selector bson.M) Config
- func (c *Config) GetAll() []bson.M
- func (bmodel *Config) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Config) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Config) InsertMany(datalist []interface{}) error
- func (bmodel *Config) InsertOne(data bson.M) bool
- func (c *Config) PublicKey() string
- func (bmodel *Config) Remove(query bson.M) error
- func (bmodel *Config) UpdateByID(id interface{}, data interface{}) error
- type EditCfgForm
- type File
- func (bmodel *File) Aggregate(querylist ...bson.M) []bson.M
- func (bmodel *File) Count(query bson.M) int
- func (bmodel *File) CountSubList(query bson.M, listkey string) int
- func (bmodel *File) Distinct(query bson.M, key string) []interface{}
- func (bmodel *File) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *File) FindAll(query bson.M) []bson.M
- func (bmodel *File) FindByID(id bson.ObjectId) bson.M
- func (c *File) FindOne(selector bson.M) File
- func (bmodel *File) GetAll() []bson.M
- func (bmodel *File) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *File) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *File) InsertMany(datalist []interface{}) error
- func (bmodel *File) InsertOne(data bson.M) bool
- func (bmodel *File) Remove(query bson.M) error
- func (c *File) Update() bool
- func (bmodel *File) UpdateByID(id interface{}, data interface{}) error
- type Info
- func (c *Info) Aggregate(querylist ...bson.M) []bson.M
- func (c *Info) AllValue(fieldname string, limitnum int) interface{}
- func (bmodel *Info) Count(query bson.M) int
- func (bmodel *Info) CountSubList(query bson.M, listkey string) int
- func (bmodel *Info) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Info) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Info) FindAll(query bson.M) []bson.M
- func (bmodel *Info) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Info) FindOne(query bson.M) bson.M
- func (bmodel *Info) GetAll() []bson.M
- func (c *Info) GetInfoByIp(ip string) []Info
- func (bmodel *Info) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Info) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Info) InsertMany(datalist []interface{}) error
- func (bmodel *Info) InsertOne(data bson.M) bool
- func (bmodel *Info) Remove(query bson.M) error
- func (bmodel *Info) UpdateByID(id interface{}, data interface{}) error
- type Monitor
- func (bmodel *Monitor) Aggregate(querylist ...bson.M) []bson.M
- func (bmodel *Monitor) Count(query bson.M) int
- func (bmodel *Monitor) CountSubList(query bson.M, listkey string) int
- func (bmodel *Monitor) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Monitor) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Monitor) FindAll(query bson.M) []bson.M
- func (bmodel *Monitor) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Monitor) FindOne(query bson.M) bson.M
- func (bmodel *Monitor) GetAll() []bson.M
- func (c *Monitor) GetAllType(ip string) []string
- func (bmodel *Monitor) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Monitor) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Monitor) InsertMany(datalist []interface{}) error
- func (bmodel *Monitor) InsertOne(data bson.M) bool
- func (c *Monitor) Query(start int, limit int, ip string, typeStr string) []Monitor
- func (bmodel *Monitor) Remove(query bson.M) error
- func (bmodel *Monitor) UpdateByID(id interface{}, data interface{}) error
- type NewTaskInfo
- type Notice
- func (bmodel *Notice) Aggregate(querylist ...bson.M) []bson.M
- func (c *Notice) ChangeStatusbyId(id string, status int) bool
- func (bmodel *Notice) Count(query bson.M) int
- func (c *Notice) CountPerByKey(match bson.M, key string) []bson.M
- func (c *Notice) CountPerDay(match bson.M) []bson.M
- func (c *Notice) CountPerHour(match bson.M) []bson.M
- func (bmodel *Notice) CountSubList(query bson.M, listkey string) int
- func (bmodel *Notice) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Notice) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Notice) FindAll(query bson.M) []bson.M
- func (bmodel *Notice) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Notice) FindOne(query bson.M) bson.M
- func (bmodel *Notice) GetAll() []bson.M
- func (bmodel *Notice) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Notice) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (c *Notice) InfoRanking() []bson.M
- func (bmodel *Notice) InsertMany(datalist []interface{}) error
- func (bmodel *Notice) InsertOne(data bson.M) bool
- func (c *Notice) LearnEnding() bool
- func (bmodel *Notice) Remove(query bson.M) error
- func (c *Notice) UpdateAll(selector bson.M, update bson.M) error
- func (bmodel *Notice) UpdateByID(id interface{}, data interface{}) error
- type Queue
- func (bmodel *Queue) Aggregate(querylist ...bson.M) []bson.M
- func (bmodel *Queue) Count(query bson.M) int
- func (bmodel *Queue) CountSubList(query bson.M, listkey string) int
- func (bmodel *Queue) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Queue) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Queue) FindAll(query bson.M) []bson.M
- func (bmodel *Queue) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Queue) FindOne(query bson.M) bson.M
- func (bmodel *Queue) GetAll() []bson.M
- func (bmodel *Queue) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Queue) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Queue) InsertMany(datalist []interface{}) error
- func (bmodel *Queue) InsertOne(data bson.M) bool
- func (bmodel *Queue) Remove(query bson.M) error
- func (c *Queue) Save() bool
- func (bmodel *Queue) UpdateByID(id interface{}, data interface{}) error
- type Rule
- func (bmodel *Rule) Aggregate(querylist ...bson.M) []bson.M
- func (bmodel *Rule) Count(query bson.M) int
- func (bmodel *Rule) CountSubList(query bson.M, listkey string) int
- func (bmodel *Rule) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Rule) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Rule) FindAll(query bson.M) []bson.M
- func (bmodel *Rule) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Rule) FindOne(query bson.M) bson.M
- func (bmodel *Rule) GetAll() []bson.M
- func (bmodel *Rule) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Rule) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Rule) InsertMany(datalist []interface{}) error
- func (bmodel *Rule) InsertOne(data bson.M) bool
- func (bmodel *Rule) Remove(query bson.M) error
- func (bmodel *Rule) UpdateByID(id interface{}, data interface{}) error
- type SearchForm
- type Server
- func (bmodel *Server) Aggregate(querylist ...bson.M) []bson.M
- func (bmodel *Server) Count(query bson.M) int
- func (bmodel *Server) CountSubList(query bson.M, listkey string) int
- func (bmodel *Server) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Server) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Server) FindAll(query bson.M) []bson.M
- func (bmodel *Server) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Server) FindOne(query bson.M) bson.M
- func (bmodel *Server) GetAll() []bson.M
- func (bmodel *Server) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Server) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Server) InsertMany(datalist []interface{}) error
- func (bmodel *Server) InsertOne(data bson.M) bool
- func (bmodel *Server) Remove(query bson.M) error
- func (bmodel *Server) UpdateByID(id interface{}, data interface{}) error
- type Statistics
- func (bmodel *Statistics) Aggregate(querylist ...bson.M) []bson.M
- func (c *Statistics) AllValue(fieldname string, limitnum int) interface{}
- func (bmodel *Statistics) Count(query bson.M) int
- func (bmodel *Statistics) CountSubList(query bson.M, listkey string) int
- func (bmodel *Statistics) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Statistics) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Statistics) FindAll(query bson.M) []bson.M
- func (bmodel *Statistics) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Statistics) FindOne(query bson.M) bson.M
- func (bmodel *Statistics) GetAll() []bson.M
- func (bmodel *Statistics) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Statistics) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Statistics) InsertMany(datalist []interface{}) error
- func (bmodel *Statistics) InsertOne(data bson.M) bool
- func (c *Statistics) Query(match bson.M, start int, limit int) []bson.M
- func (bmodel *Statistics) Remove(query bson.M) error
- func (bmodel *Statistics) UpdateByID(id interface{}, data interface{}) error
- type StatusForm
- type Task
- func (bmodel *Task) Aggregate(querylist ...bson.M) []bson.M
- func (c *Task) ChangeStatusbyId(id string, status int) bool
- func (bmodel *Task) Count(query bson.M) int
- func (bmodel *Task) CountSubList(query bson.M, listkey string) int
- func (bmodel *Task) Distinct(query bson.M, key string) []interface{}
- func (bmodel *Task) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Task) FindAll(query bson.M) []bson.M
- func (bmodel *Task) FindByID(id bson.ObjectId) bson.M
- func (bmodel *Task) FindOne(query bson.M) bson.M
- func (bmodel *Task) GetAll() []bson.M
- func (bmodel *Task) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *Task) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *Task) InsertMany(datalist []interface{}) error
- func (bmodel *Task) InsertOne(data bson.M) bool
- func (bmodel *Task) Remove(query bson.M) error
- func (c *Task) Save() bool
- func (bmodel *Task) UpdateByID(id interface{}, data interface{}) error
- type TaskForm
- type TaskResult
- func (bmodel *TaskResult) Aggregate(querylist ...bson.M) []bson.M
- func (bmodel *TaskResult) Count(query bson.M) int
- func (bmodel *TaskResult) CountSubList(query bson.M, listkey string) int
- func (bmodel *TaskResult) Distinct(query bson.M, key string) []interface{}
- func (bmodel *TaskResult) Find(query bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *TaskResult) FindAll(query bson.M) []bson.M
- func (bmodel *TaskResult) FindByID(id bson.ObjectId) bson.M
- func (bmodel *TaskResult) FindOne(query bson.M) bson.M
- func (bmodel *TaskResult) GetAll() []bson.M
- func (bmodel *TaskResult) GetPieces(q bson.M, start int, limit int) []bson.M
- func (bmodel *TaskResult) GetSortedTop(q bson.M, start int, limit int, sort ...string) []bson.M
- func (bmodel *TaskResult) InsertMany(datalist []interface{}) error
- func (bmodel *TaskResult) InsertOne(data bson.M) bool
- func (bmodel *TaskResult) Remove(query bson.M) error
- func (bmodel *TaskResult) UpdateByID(id interface{}, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Id bson.ObjectId `bson:"_id" json:"_id,omitempty"` Ip string `bson:"ip" json:"ip"` System string `bson:"system" json:"system"` Hostname string `bson:"hostname" json:"hostname"` Type string `bson:"type" json:"type"` Uptime time.Time `bson:"uptime" json:"uptime,omitempty"` // contains filtered or unexported fields }
func (*Client) CountSubList ¶
CountSubList count the list item in one collection
func (*Client) GetSortedTop ¶
GetSortedTop find for sort
func (*Client) InsertMany ¶
func (bmodel *Client) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Client) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Client) UpdateByID ¶
func (bmodel *Client) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type CodeInfo ¶
type CodeInfo struct { Status int `json:"status"` Msg string `json:"msg"` Data map[string]string `json:"data"` }
func NewErrorInfo ¶
func NewNormalInfo ¶
type Config ¶
type Config struct { Id bson.ObjectId `bson:"_id" json:"_id,omitempty"` Type string `bson:"type" json:"type"` Dic interface{} `bson:"dic" json:"dic"` // contains filtered or unexported fields }
func (*Config) CountSubList ¶
CountSubList count the list item in one collection
func (*Config) GetSortedTop ¶
GetSortedTop find for sort
func (*Config) InsertMany ¶
func (bmodel *Config) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Config) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Config) UpdateByID ¶
func (bmodel *Config) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type EditCfgForm ¶
type File ¶
type File struct { ID bson.ObjectId `bson:"_id,omitempty" json:"_id,omitempty"` Platform string `bson:"platform" json:"platform"` System string `bson:"system" json:"system"` Type string `bson:"type" json:"type"` Hash string `bson:"hash" json:"hash"` Uptime time.Time `bson:"uptime" json:"uptime"` // contains filtered or unexported fields }
func (*File) CountSubList ¶
CountSubList count the list item in one collection
func (*File) GetSortedTop ¶
GetSortedTop find for sort
func (*File) InsertMany ¶
func (bmodel *File) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*File) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*File) UpdateByID ¶
func (bmodel *File) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type Info ¶
type Info struct { Id bson.ObjectId `bson:"_id" json:"_id,omitempty"` Ip string `bson:"ip" json:"ip"` System string `bson:"system" json:"system"` Type string `bson:"type" json:"type"` Data []map[string]string `bson:"data" json:"data"` Uptime time.Time `bson:"uptime" json:"uptime,omitempty"` // contains filtered or unexported fields }
User model definiton.
func (*Info) CountSubList ¶
CountSubList count the list item in one collection
func (*Info) GetInfoByIp ¶
func (*Info) GetSortedTop ¶
GetSortedTop find for sort
func (*Info) InsertMany ¶
func (bmodel *Info) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Info) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Info) UpdateByID ¶
func (bmodel *Info) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type Monitor ¶
type Monitor struct { ID bson.ObjectId `bson:"_id" json:"_id,omitempty"` IP string `bson:"ip" json:"ip"` Type string `bson:"type" json:"type"` Data map[string]string `bson:"data" json:"data"` Time time.Time `bson:"time" json:"time,omitempty"` // contains filtered or unexported fields }
Monitor model definiton.
func NewMonitor ¶
func NewMonitor() Monitor
func (*Monitor) CountSubList ¶
CountSubList count the list item in one collection
func (*Monitor) GetAllType ¶
func (*Monitor) GetSortedTop ¶
GetSortedTop find for sort
func (*Monitor) InsertMany ¶
func (bmodel *Monitor) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Monitor) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Monitor) UpdateByID ¶
func (bmodel *Monitor) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type NewTaskInfo ¶
type Notice ¶
type Notice struct { Id bson.ObjectId `bson:"_id" json:"_id,omitempty"` Info string `bson:"info" json:"info"` Status int `bson:"status" json:"status"` Time time.Time `bson:"time" json:"time,omitempty"` Type string `bson:"type" json:"type"` Ip string `bson:"ip" json:"ip"` Source string `bson:"source" json:"source"` Level int `bson:"level" json:"level"` // contains filtered or unexported fields }
User model definiton.
func (*Notice) CountSubList ¶
CountSubList count the list item in one collection
func (*Notice) GetSortedTop ¶
GetSortedTop find for sort
func (*Notice) InfoRanking ¶
func (*Notice) InsertMany ¶
func (bmodel *Notice) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Notice) LearnEnding ¶
LearnEnding done watch mode ending action
func (*Notice) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Notice) UpdateByID ¶
func (bmodel *Notice) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type Queue ¶
type Queue struct { ID bson.ObjectId `bson:"_id,omitempty" json:"_id,omitempty"` TaskID bson.ObjectId `bson:"task_id" json:"_task_id"` Time time.Time `bson:"time" json:"time"` IP string `bson:"ip" json:"ip"` Type string `bson:"type" json:"type"` Command string `bson:"command" json:"command"` // contains filtered or unexported fields }
func (*Queue) CountSubList ¶
CountSubList count the list item in one collection
func (*Queue) GetSortedTop ¶
GetSortedTop find for sort
func (*Queue) InsertMany ¶
func (bmodel *Queue) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Queue) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Queue) UpdateByID ¶
func (bmodel *Queue) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type Rule ¶
type Rule struct {
// contains filtered or unexported fields
}
func (*Rule) CountSubList ¶
CountSubList count the list item in one collection
func (*Rule) GetSortedTop ¶
GetSortedTop find for sort
func (*Rule) InsertMany ¶
func (bmodel *Rule) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Rule) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Rule) UpdateByID ¶
func (bmodel *Rule) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type SearchForm ¶
type SearchForm struct {
Keyword string `json:"keyword"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server model definiton.
func (*Server) CountSubList ¶
CountSubList count the list item in one collection
func (*Server) GetSortedTop ¶
GetSortedTop find for sort
func (*Server) InsertMany ¶
func (bmodel *Server) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Server) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Server) UpdateByID ¶
func (bmodel *Server) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type Statistics ¶
type Statistics struct { ID bson.ObjectId `bson:"_id" json:"_id,omitempty"` Uptime time.Time `bson:"uptime" json:"uptime,omitempty"` Type string `bson:"type" json:"type"` Info string `bson:"info" json:"info"` Count int `bson:"count" json:"count"` ServerList []string `bson:"server_list" json:"server_list"` // contains filtered or unexported fields }
Statistics model definiton.
func NewStatistics ¶
func NewStatistics() Statistics
func (*Statistics) AllValue ¶
func (c *Statistics) AllValue(fieldname string, limitnum int) interface{}
func (*Statistics) CountSubList ¶
CountSubList count the list item in one collection
func (*Statistics) GetSortedTop ¶
GetSortedTop find for sort
func (*Statistics) InsertMany ¶
func (bmodel *Statistics) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Statistics) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Statistics) UpdateByID ¶
func (bmodel *Statistics) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type StatusForm ¶
type Task ¶
type Task struct { ID bson.ObjectId `bson:"_id,omitempty" json:"_id,omitempty"` Name string `bson:"name" json:"name"` Time time.Time `bson:"time" json:"time"` HostList []string `bson:"host_list" json:"host_list"` Type string `bson:"type" json:"type"` Command string `bson:"command" json:"command"` // contains filtered or unexported fields }
func (*Task) CountSubList ¶
CountSubList count the list item in one collection
func (*Task) GetSortedTop ¶
GetSortedTop find for sort
func (*Task) InsertMany ¶
func (bmodel *Task) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*Task) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*Task) UpdateByID ¶
func (bmodel *Task) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name
type TaskResult ¶
type TaskResult struct {
// contains filtered or unexported fields
}
func NewTaskResult ¶
func NewTaskResult() TaskResult
func (*TaskResult) CountSubList ¶
CountSubList count the list item in one collection
func (*TaskResult) GetSortedTop ¶
GetSortedTop find for sort
func (*TaskResult) InsertMany ¶
func (bmodel *TaskResult) InsertMany(datalist []interface{}) error
InsertMany insert a list to mongo
func (*TaskResult) Remove ¶
Remove remove all conform to query, but error will stop TODO it is hardly to supported continue_on_error
func (*TaskResult) UpdateByID ¶
func (bmodel *TaskResult) UpdateByID(id interface{}, data interface{}) error
UpdateByID as name