Documentation
¶
Index ¶
- func IsHelpOption(args []string) bool
- func NewConfigHandler(config *Config) http.Handler
- func NewHealthHandler(config *Config) *healthHandler
- func RunApp(Version string, args []string, wg *sync.WaitGroup)
- func RunAppWithConfig(Version string, args []string, ...)
- type Config
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigHandler ¶
NewConfigHandler creates a config handler
func NewHealthHandler ¶ added in v0.3.0
func NewHealthHandler(config *Config) *healthHandler
Types ¶
type Config ¶
type Config struct { config.ModelList `json:",omitempty" yaml:",inline"` sconfig.DatastoreList `json:",omitempty" yaml:",inline"` Endpoint econfig.Endpoint AllowedSubnet []string `json:",omitempty" yaml:",omitempty"` }
Config represents an endpoint config
func NewConfigFromURL ¶
NewConfigFromURL creates a new config from URL
func (*Config) LoadFromURL ¶
type Options ¶
type Options struct { ConfigURL string `short:"c" long:"cfg" description:"config URI"` Version bool `short:"v" long:"version" description:"indexer version"` }
Options represents an option
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents http bridge
func (*Service) ListenAndServe ¶
ListenAndServe start http endpoint
func (*Service) ListenAndServeTLS ¶
ListenAndServeTLS start https endpoint on secure port
Click to show internal directories.
Click to hide internal directories.