common

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2018 License: Apache-2.0 Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copyright(w io.Writer, config *UIConfig) error

func GetBucketKey

func GetBucketKey(k string) string

func GetBucketLabel

func GetBucketLabel(k string) string

func GetNavBlock

func GetNavBlock(w io.Writer, r *http.Request) string

func OffCanvas

func OffCanvas(w io.Writer) error

func SafeGetField

func SafeGetField(v interface{}, nullValue string) string

func SmartGetField

func SmartGetField(v1 []interface{}, v2 interface{}, nullValue string) string

Types

type IndexConfig

type IndexConfig struct {
	Elasticsearch *core.ElasticsearchConfig `config:"elasticsearch"`
	UIConfig      *UIConfig                 `config:"ui"`
}

type UIConfig

type UIConfig struct {
	Enabled     bool   `config:"enabled"`
	SiteName    string `config:"site_name"`
	SiteFavicon string `config:"favicon"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL