status: Rename Information => WissKI
This commit is contained in:
parent
3fada6ad38
commit
57f2fe8c86
16 changed files with 21 additions and 21 deletions
|
|
@ -65,7 +65,7 @@ func (home *Home) homeRender() ([]byte, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
context.Instances = make([]status.Information, len(wissKIs))
|
||||
context.Instances = make([]status.WissKI, len(wissKIs))
|
||||
|
||||
// determine their infos
|
||||
var eg errgroup.Group
|
||||
|
|
@ -86,7 +86,7 @@ func (home *Home) homeRender() ([]byte, error) {
|
|||
}
|
||||
|
||||
type HomeContext struct {
|
||||
Instances []status.Information
|
||||
Instances []status.WissKI
|
||||
|
||||
Time time.Time
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ var indexTemplate = static.AssetsControlIndex.MustParseShared(
|
|||
|
||||
type indexContext struct {
|
||||
status.Distillery
|
||||
Instances []status.Information
|
||||
Instances []status.WissKI
|
||||
}
|
||||
|
||||
func (info *Info) index(r *http.Request) (idx indexContext, err error) {
|
||||
|
|
@ -31,7 +31,7 @@ func (info *Info) index(r *http.Request) (idx indexContext, err error) {
|
|||
|
||||
// Status produces a new observation of the distillery, and a new information of all instances
|
||||
// The information on all instances is passed the given quick flag.
|
||||
func (info *Info) Status(QuickInformation bool) (target status.Distillery, information []status.Information, err error) {
|
||||
func (info *Info) Status(QuickInformation bool) (target status.Distillery, information []status.WissKI, err error) {
|
||||
var group errgroup.Group
|
||||
|
||||
group.Go(func() error {
|
||||
|
|
@ -42,7 +42,7 @@ func (info *Info) Status(QuickInformation bool) (target status.Distillery, infor
|
|||
}
|
||||
|
||||
// get all of their info!
|
||||
information = make([]status.Information, len(all))
|
||||
information = make([]status.WissKI, len(all))
|
||||
for i, instance := range all {
|
||||
{
|
||||
i := i
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ type instanceContext struct {
|
|||
Time time.Time
|
||||
|
||||
Instance models.Instance
|
||||
Info status.Information
|
||||
Info status.WissKI
|
||||
}
|
||||
|
||||
func (info *Info) instance(r *http.Request) (is instanceContext, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue