Documentation ¶
Index ¶
- type Dependency
- type HasRouteSlug
- type IsRouteInitializer
- type IsWebRouter
- type Service
- func (s *Service) ConfigFileName() string
- func (s *Service) DefaultConfig() (cfg configFile.Config)
- func (s *Service) Init(mesh servicemesh.Mesh)
- func (s *Service) LoadConfig(config *configFile.Config)
- func (s *Service) Logger() *slog.Logger
- func (s *Service) Name() string
- func (s *Service) Ready() bool
- func (s *Service) Reload()
- func (s *Service) RouteRoot() *gin.Engine
- func (s *Service) SetLogger(l *slog.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency = IsWebRouter
type HasRouteSlug ¶
type HasRouteSlug interface {
Slug() string
}
HasRouteSlug describes a service that has an identifier that is used as a prefix for its subroutes
type IsRouteInitializer ¶
type IsRouteInitializer interface { servicemesh.Service InitRoutes(*gin.RouterGroup) }
IsRouteInitializer is a type of service that will set up its own web routes using a base route group
type IsWebRouter ¶
IsWebRouter is just responsible for yielding the root route handler. Services will use this in order to set up their own routes.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ConfigFileName ¶
func (*Service) DefaultConfig ¶
func (s *Service) DefaultConfig() (cfg configFile.Config)
func (*Service) Init ¶
func (s *Service) Init(mesh servicemesh.Mesh)
func (*Service) LoadConfig ¶
func (s *Service) LoadConfig(config *configFile.Config)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.