MCPcopy
hub / github.com/kubewall/kubewall / container

Struct container

backend/container/container.go:47–56  ·  view source on GitHub ↗

container struct is for sharing data which such as database setting, the setting of application and logger in overall this application.

Source from the content-addressed store, hash-verified

45
46// container struct is for sharing data which such as database setting, the setting of application and logger in overall this application.
47type container struct {
48 env *config.Env
49 config *config.AppConfig
50 cache *otter.Cache[string, any]
51 sseServer *sse.Server
52 eventProcessor *event.EventProcessor
53 socketUpgrader *websocket.Upgrader
54 portForwarder *portforward.PortForwarder
55 mu sync.RWMutex
56}
57
58// NewContainer is constructor.
59func NewContainer(env *config.Env, cfg *config.AppConfig) Container {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected