MCPcopy Create free account
hub / github.com/compozy/agh / WithConfig

Function WithConfig

internal/api/httpapi/server.go:115–122  ·  view source on GitHub ↗

WithConfig overrides the runtime configuration used by the server.

(cfg *aghconfig.Config)

Source from the content-addressed store, hash-verified

113
114// WithConfig overrides the runtime configuration used by the server.
115func WithConfig(cfg *aghconfig.Config) Option {
116 return func(server *Server) {
117 if cfg != nil {
118 server.config = *cfg
119 server.configSet = true
120 }
121 }
122}
123
124// WithHost overrides the HTTP bind host.
125func WithHost(host string) Option {

Calls

no outgoing calls