Documentation ¶
Index ¶
- type Dependency
- type ManagesLuaEnvironment
- type Service
- func (s *Service) ConfigFileName() string
- func (s *Service) DefaultConfig() (cfg configFile.Config)
- func (s *Service) FileHandlers() map[string]fileWatcher.FileHandlerFunc
- func (s *Service) Init(mesh servicemesh.Mesh)
- func (s *Service) LoadConfig(config *configFile.Config)
- func (s *Service) Logger() *slog.Logger
- func (s *Service) LuaState() *lua.LState
- func (s *Service) Name() string
- func (s *Service) OnServiceAdded(service servicemesh.Service)
- func (s *Service) Ready() bool
- func (s *Service) SetLogger(logger *slog.Logger)
- type UsesLuaEnvironment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency = ManagesLuaEnvironment
type ManagesLuaEnvironment ¶
type ManagesLuaEnvironment interface {
LuaState() *lua.LState
}
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) FileHandlers ¶
func (s *Service) FileHandlers() map[string]fileWatcher.FileHandlerFunc
func (*Service) Init ¶
func (s *Service) Init(mesh servicemesh.Mesh)
func (*Service) LoadConfig ¶
func (s *Service) LoadConfig(config *configFile.Config)
func (*Service) OnServiceAdded ¶
func (s *Service) OnServiceAdded(service servicemesh.Service)
type UsesLuaEnvironment ¶
type UsesLuaEnvironment interface { ExportToLua(state *lua.LState) UnexportFromLua(state *lua.LState) }
Click to show internal directories.
Click to hide internal directories.