components

package
v0.0.0-...-847e8a7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	ID() string
	Name() string
	Version() string
	BuiltAt() time.Time
	StartedAt() time.Time
	Debug() int
	LookupEnv(suffix string) (string, bool)
	Host() string
}

Application AFAIRE.

type Components

type Components struct {
	Application Application
	Config      Config
	Crypto      Crypto
	Logger      Logger
	Model       Model
	Router      Router
	Server      Server
	Storage     Storage
}

Components AFAIRE.

func New

func New(app Application) *Components

New AFAIRE.

func (*Components) Shutdown

func (ccs *Components) Shutdown()

Shutdown AFAIRE.

type Config

type Config interface {
	Data() *data.Data
	Logger() *data.Logger
	Server() *data.Server
	Storage() *data.Storage
}

Config AFAIRE.

type Crypto

type Crypto interface {
	DecryptString(text string) (string, error)
	EncryptString(text string) (string, error)
}

Crypto AFAIRE.

type Logger

type Logger interface {
	logger.Logger
}

Logger AFAIRE.

type Model

type Model interface {
	jw.Model
}

Model AFAIRE.

type Router

type Router interface {
	Handler() http.Handler
	Get(path string, handler http.Handler)
	ServeFiles(path string, root http.FileSystem)
	GET(path string, handler jsonapi.Handler)
	POST(path string, handler jsonapi.Handler)
	PUT(path string, handler jsonapi.Handler)
}

Router AFAIRE.

type Server

type Server interface {
	Run() error
	Stop()
}

Server AFAIRE.

type Storage

type Storage interface {
	jw.Storage
}

Storage AFAIRE.

Jump to

Keyboard shortcuts

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