history

package
v0.0.0-...-6312fd5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

type History struct {
	ID            bson.ObjectId    `json:"id" bson:"_id,omitempty"`
	Uid           int64            `json:"uid" bson:"uid"`
	SrvID         int64            `json:"srv_id,omitempty" bson:"srv_id,omitempty"`
	SrvActionPath string           `json:"srv_action_path,omitempty" bson:"srv_action_path,omitempty"`
	Details       []*HistoryDetail `json:"details,omitempty" bson:"details,omitempty"`
	Ut            time.Time        `json:"ut" bson:"ut"`
}

func NewHistory

func NewHistory() *History

func (*History) Add

func (history *History) Add() (err error)

func (*History) Db

func (history *History) Db() (db string)

func (*History) GetByUidAndSrv

func (history *History) GetByUidAndSrv() (historyRet *History, err error)

func (*History) GetC

func (history *History) GetC() (c *mgo.Collection)

func (*History) Table

func (history *History) Table() (table string)

func (*History) Update

func (history *History) Update() (err error)

type HistoryDetail

type HistoryDetail struct {
	M  map[string]string
	Ct time.Time
}

Jump to

Keyboard shortcuts

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