WithConfig overrides the runtime configuration used by the server.
(cfg *aghconfig.Config)
| 113 | |
| 114 | // WithConfig overrides the runtime configuration used by the server. |
| 115 | func 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. |
| 125 | func WithHost(host string) Option { |
no outgoing calls