Documentation ¶
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 represents nephele application.
func New ¶
func New(configure Configurator) *App
Return new nephele application with given configuration.
type Config ¶
type Config interface { // Return current environment Env() string // Return log config. Log() log.Config // Returns store config. Store() store.Config // Return codec config. Codec() codec.Config // Return service config. Service() service.Config // Implements how to parse config. LoadFrom(env, path string) error // Reload Reload() error }
Config represents configuration for all components
type Configurator ¶
Define configurator by runtime environment
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents holder for service and is the entry for all components to initialize, open or quit.
func (*Server) OnInit ¶
func (s *Server) OnInit(init ServerInitializeFunc)
Call to make external components initialization.
func (*Server) OnQuit ¶
func (s *Server) OnQuit(quit ServerQuitFunc)
call to quit external components
type ServerInitializeFunc ¶
Define server initialization function type. It's called before server opened.
type ServerQuitFunc ¶
Define server quit function type. It's called after service no longer serving any image request.
Click to show internal directories.
Click to hide internal directories.