access

package
v0.0.0-...-8886d92 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlers

func NewHandlers(r *Repository)

NewHandlers sets the repository for the handlers

Types

type Repository

type Repository struct {
	App *config.AppConfig
}

Repository holds App config

var Repo *Repository

func NewRepo

func NewRepo(a *config.AppConfig) *Repository

NewRepo initialise and return Repository Type Which holds AppConfig

func (*Repository) GetServiceSeverity

func (repo *Repository) GetServiceSeverity(w http.ResponseWriter, r *http.Request)

GetServiceSeverity statistics of a services

func (*Repository) ServerPing

func (repo *Repository) ServerPing(w http.ResponseWriter, r *http.Request)

ServerPing pings the server

Jump to

Keyboard shortcuts

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