healthcheck

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: OSL-3.0 Imports: 5 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

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

Auth healthcheck

func (*Auth) Inject

func (s *Auth) Inject(authManager *application.AuthManager)

Inject auth manager dependency

func (*Auth) Status

func (s *Auth) Status() (bool, string)

Status checks the status

type FileSession

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

FileSession session backend health check

func (*FileSession) Inject

func (s *FileSession) Inject(cfg *struct {
	FileName string `inject:"config:session.file"`
})

Inject configuration for session backend

func (*FileSession) Status

func (s *FileSession) Status() (bool, string)

Status checks if the session file is available

type Nil

type Nil struct{}

Nil healtcheck

func (*Nil) Status

func (s *Nil) Status() (bool, string)

Status is always healthy

type RedisSession

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

RedisSession pool status check

func (*RedisSession) Inject

func (s *RedisSession) Inject(pool *redis.Pool)

Inject redis pool for session

func (*RedisSession) Status

func (s *RedisSession) Status() (bool, string)

Status checks if the redis server is available

type Status

type Status interface {
	Status() (alive bool, details string)
}

Status check interface

Jump to

Keyboard shortcuts

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