Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigHandler ¶
NewConfigHandler creates a config handler
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.