Documentation
¶
Index ¶
- func Ancestors(r *results.PlaceholderRecord, placetype string) []*results.PlaceholderRecord
- func AppendStaticAssetHandlers(mux *gohttp.ServeMux) error
- func AppendStaticAssetHandlersWithPrefix(mux *gohttp.ServeMux, prefix string) error
- func NewAPIHandler(cl *client.PlaceholderClient, opts *APIHandlerOptions) (gohttp.Handler, error)
- func NewSearchHandler(opts *SearchHandlerOptions) (gohttp.Handler, error)
- func PlaceholderReadyHandler(placeholder_endpoint string, ttl time.Time) (gohttp.Handler, error)
- func SearchFiltersWithRequest(req *gohttp.Request) ([]filters.Filter, error)
- func StaticAssetsHandler() (gohttp.Handler, error)
- func StaticAssetsHandlerWithPrefix(prefix string) (gohttp.Handler, error)
- type APIHandlerOptions
- type SearchHandlerOptions
- type SearchVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ancestors ¶
func Ancestors(r *results.PlaceholderRecord, placetype string) []*results.PlaceholderRecord
func NewAPIHandler ¶
func NewAPIHandler(cl *client.PlaceholderClient, opts *APIHandlerOptions) (gohttp.Handler, error)
func NewSearchHandler ¶
func NewSearchHandler(opts *SearchHandlerOptions) (gohttp.Handler, error)
func PlaceholderReadyHandler ¶ added in v0.5.0
func StaticAssetsHandler ¶
Types ¶
type APIHandlerOptions ¶
type APIHandlerOptions struct {
EnableSearchAutoComplete bool
}
func DefaultAPIHandlerOptions ¶
func DefaultAPIHandlerOptions() *APIHandlerOptions
type SearchHandlerOptions ¶
type SearchVars ¶
Click to show internal directories.
Click to hide internal directories.