introduce basic fact collection
This commit is contained in:
18
client/vendor/github.com/zcalusic/sysinfo/meta.go
generated
vendored
Normal file
18
client/vendor/github.com/zcalusic/sysinfo/meta.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright © 2016 Zlatko Čalušić
|
||||
//
|
||||
// Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
|
||||
|
||||
package sysinfo
|
||||
|
||||
import "time"
|
||||
|
||||
// Meta information.
|
||||
type Meta struct {
|
||||
Version string `json:"version"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
}
|
||||
|
||||
func (si *SysInfo) getMetaInfo() {
|
||||
si.Meta.Version = Version
|
||||
si.Meta.Timestamp = time.Now()
|
||||
}
|
||||
Reference in New Issue
Block a user