powergate: github.com/textileio/powergate/health Index | Files | Directories

package health

import "github.com/textileio/powergate/health"

Index

Package Files

module.go

type Module Uses

type Module struct {
    // contains filtered or unexported fields
}

Module exposes the health api.

func New Uses

func New(net net.Module) *Module

New creates a new net module.

func (*Module) Check Uses

func (m *Module) Check(ctx context.Context) (status Status, messages []string, err error)

Check returns the current health status and any messages related to the status.

type Status Uses

type Status int

Status represents the node's health status.

const (
    // Unspecified is an unknown or empty status.
    Unspecified Status = iota
    // Ok specifies the node is healthy
    Ok
    // Degraded specifies there are problems with the node health.
    Degraded
    // Error specifies there was an error when determining node health.
    Error
)

func (Status) String Uses

func (s Status) String() string

Directories

PathSynopsis
rpc

Package health imports 3 packages (graph) and is imported by 9 packages. Updated 2020-09-21. Refresh now. Tools for package owners.