Documentation ¶
Overview ¶
Package tros golang OS
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App application
func New ¶
func New(settings ...SettingFunc) *App
type AppContext ¶
type AppContext interface { // HTTPRouter http router HTTPRouter() http.Router // ServiceRegistrar register grpc service ServiceRegistrar() grpc.ServiceRegistrar }
AppContext app context
type Initializer ¶
type Initializer interface { // Init component Init(atx AppContext) error }
Initializer interface with Init func
type Server ¶
type Server interface { // Start a server Start(ctx context.Context) error // Stop a server Stop() error }
Server interface of server
type SettingFunc ¶
type SettingFunc func(*App)
SettingFunc of app
func WithInitializers ¶
func WithInitializers(initializers ...Initializer) SettingFunc
WithInitializers register initializers to app
Directories ¶
Path | Synopsis |
---|---|
client
|
|
enums
|
|
Package lang for globalization
|
Package lang for globalization |
pkg
|
|
utils
Package utils add some context function
|
Package utils add some context function |
server
|
|
middleware
Package middleware root package of middlewares
|
Package middleware root package of middlewares |
codes
Package codes provide codes list
|
Package codes provide codes list |
trkit
|
|
Click to show internal directories.
Click to hide internal directories.