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.
62 lines
1.3 KiB
62 lines
1.3 KiB
/* |
|
------------------------------------------------------------------------------------------------------------------------ |
|
####### components ####### Copyright (c) 2021 mls-361 ############################################## MIT License ####### |
|
------------------------------------------------------------------------------------------------------------------------ |
|
*/ |
|
|
|
package components |
|
|
|
import ( |
|
"net/http" |
|
|
|
"forge.chapril.org/armen/jw" |
|
"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 |
|
} |
|
|
|
// Model AFAIRE. |
|
type Model interface { |
|
jw.Model |
|
} |
|
|
|
// Router AFAIRE. |
|
type Router interface { |
|
Handler() http.Handler |
|
Get(path string, handler http.Handler) |
|
Post(path string, handler http.Handler) |
|
} |
|
|
|
// Storage AFAIRE. |
|
type Storage interface { |
|
jw.Storage |
|
} |
|
|
|
// Server AFAIRE. |
|
type Server interface { |
|
Start() error |
|
Stop() |
|
} |
|
|
|
/* |
|
######################################################################################################## @(°_°)@ ####### |
|
*/
|
|
|