Documentation
¶
Index ¶
- Constants
- func NewService(k types.IKernel) types.IKernelService
- type Service
- func (c *Service) Get(path string) interface{}
- func (c *Service) GetAsInt(key string) (int, error)
- func (c *Service) GetAsString(key string) (string, error)
- func (c *Service) GetAsStringOrDefault(key string, def string) (string, error)
- func (c *Service) GetCurrent() map[string]interface{}
- func (c *Service) Has(key string) bool
- func (c *Service) Init() error
- func (s *Service) LoadFromEmbedFS(folder string, fs *embed.FS) error
- func (s *Service) Untemplate(templated []byte, baseRoute string) ([]byte, error)
Constants ¶
View Source
const ServiceKey = "config"
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(k types.IKernel) types.IKernelService
Types ¶
type Service ¶
type Service struct {
bases.BaseKernelService
}
func (*Service) GetAsStringOrDefault ¶
func (*Service) GetCurrent ¶
func (*Service) LoadFromEmbedFS ¶
Click to show internal directories.
Click to hide internal directories.