Jobs & Workflows https://armen.surge.sh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB

/*
------------------------------------------------------------------------------------------------------------------------
####### components ####### Copyright (c) 2021 mls-361 ############################################## MIT License #######
------------------------------------------------------------------------------------------------------------------------
*/
package components
import (
"net/http"
"forge.chapril.org/mls-361/logger"
"forge.chapril.org/mls-361/uuid"
"forge.chapril.org/armen/armen/internal/config/data"
)
// Application AFAIRE.
type Application interface {
ID() uuid.UUID
Name() string
LookupEnv(suffix string) (string, bool)
}
// Config AFAIRE.
type Config interface {
Logger() *data.Logger
Server() *data.Server
}
// Logger AFAIRE.
type Logger interface {
logger.Logger
}
// Router AFAIRE.
type Router interface {
Get(path string, handler http.Handler)
Post(path string, handler http.Handler)
}
// Server AFAIRE.
type Server interface {
Start() error
Stop()
}
/*
######################################################################################################## @(°_°)@ #######
*/