Documentation ¶
Index ¶
- Constants
- type CountVector
- type Counts
- type DashKey
- type DashKeyMap
- type DashKeys
- type DashMap
- type DashMember
- type DashMembers
- func (dm DashMembers) ApprovedOnly() DashMembers
- func (dm DashMembers) ByDashId() map[int]*DashMember
- func (dm DashMembers) ByUserId() map[int]*DashMember
- func (dm DashMembers) DashIds() []int
- func (dm DashMembers) HasDash(dashId int) *DashMember
- func (dm DashMembers) HasUser(userId int) *DashMember
- type DashStatRow
- type DashStatRows
- type Dashboard
- type Dashboards
- type Filter
- type LogPackageJoiner
- type LogPackageMeta
- type Serie
- type Series
- type States
- type User
- type Users
Constants ¶
View Source
const ( DASHKEY_SYSTEM_ID = 1 DASHKEY_DEMO_ID = 2 )
View Source
const ( MEMBER_STATUS_REJECTED = 0 MEMBER_STATUS_APPROVED = 1 MEMBER_STATUS_INVITED = 2 MEMBER_STATUS_REQUESTED = 3 )
View Source
const ( DASHBOARD_SYSTEM_ID = 1 DASHBOARD_DEMO_ID = 2 )
View Source
const ( ROLE_ADMIN = 1 ROLE_USER = 2 ROLE_VIEWER = 3 ROLE_DEMO = 4 )
View Source
const ( USER_LOGR_ID = 1 USER_DEMO_ID = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountVector ¶ added in v1.0.9
func (*CountVector) AsVector ¶ added in v1.0.9
func (c *CountVector) AsVector() []interface{}
type DashKeyMap ¶ added in v1.20.18
type DashMember ¶
type DashMembers ¶
type DashMembers []*DashMember
func (DashMembers) ApprovedOnly ¶
func (dm DashMembers) ApprovedOnly() DashMembers
func (DashMembers) ByDashId ¶
func (dm DashMembers) ByDashId() map[int]*DashMember
func (DashMembers) ByUserId ¶
func (dm DashMembers) ByUserId() map[int]*DashMember
func (DashMembers) DashIds ¶
func (dm DashMembers) DashIds() []int
func (DashMembers) HasDash ¶
func (dm DashMembers) HasDash(dashId int) *DashMember
func (DashMembers) HasUser ¶
func (dm DashMembers) HasUser(userId int) *DashMember
type DashStatRow ¶
type DashStatRow struct { DashId int `db:"dash_id" json:"dash_id,omitempty"` Hostname string `db:"hostname" json:"hostname,omitempty"` Logname string `db:"logname" json:"logname"` Level string `db:"level" json:"level,omitempty"` Version string `db:"version" json:"version,omitempty"` Cnt int `db:"cnt" json:"cnt"` Updated int64 `db:"updated" json:"updated,omitempty"` Message string `db:"message" json:"message,omitempty"` }
type DashStatRows ¶
type DashStatRows []*DashStatRow
type Dashboards ¶
type Dashboards []*Dashboard
func (Dashboards) ByPrimary ¶
func (ds Dashboards) ByPrimary() DashMap
func (Dashboards) Ids ¶
func (ds Dashboards) Ids() []int
type Filter ¶
type Filter struct { DashId int `json:"dash_id,omitempty"` Hostname string `json:"hostname,omitempty"` Logname string `json:"logname,omitempty"` Level string `json:"level,omitempty"` Pid int `json:"pid,omitempty"` Version string `json:"version,omitempty"` Message string `json:"message,omitempty"` Timestamp *[2]int64 `json:"timestamp,omitempty"` Pattern string `json:"pattern,omitempty"` Offset int64 `json:"offset,omitempty"` Limit int `json:"limit,omitempty"` Keyname string `json:"keyname,omitempty"` }
type LogPackageJoiner ¶ added in v1.0.6
type LogPackageJoiner struct {
// contains filtered or unexported fields
}
func NewLogPackageJoiner ¶ added in v1.20.13
func NewLogPackageJoiner(delay time.Duration, tries int) *LogPackageJoiner
func (*LogPackageJoiner) Add ¶ added in v1.0.6
func (j *LogPackageJoiner) Add(lp *_types.LogPackage) (bool, *_types.LogPackage)
type LogPackageMeta ¶ added in v1.20.16
type LogPackageMeta struct { *_types.LogPackage Protocol string Size int }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.