admin

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

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

Admin ...

func New

func New(cfg Config) (*Admin, error)

New ...

func (*Admin) ListenAndServe

func (a *Admin) ListenAndServe() error

ListenAndServe ...

type Config

type Config struct {
	FileConfig  config.Admin
	Cache       *cache.Cache
	Invalidator Invalidator

	HTTPScheme string

	LogLevel  logger.Level
	LogOutput io.Writer
}

Config ...

type Invalidator

type Invalidator interface {
	Start()
	Add(e invalidator.Entry) error
}

Invalidator ...

type Server

type Server interface {
	ListenAndServe() error
	Path(httpMethod string, url string, viewFn atreugo.View) *atreugo.Path
}

Server ...

Jump to

Keyboard shortcuts

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