mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-14 08:33:36 -07:00
(wip) rework configuration to support multiple frontends
This commit is contained in:
@@ -51,3 +51,12 @@ func (m MapConfig) Unmarshal(into any) (err error) {
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type NamedMapConfig struct {
|
||||
Name string
|
||||
Config MapConfig
|
||||
}
|
||||
|
||||
func (nm NamedMapConfig) MarshalZerologObject(e *zerolog.Event) {
|
||||
e.Str("name", nm.Name).Dict("config", zerolog.Dict().EmbedObject(nm.Config))
|
||||
}
|
||||
Reference in New Issue
Block a user