server

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheExpirationSeconds = 2

CacheExpirationSeconds is the umber of seconds to keep data in memcache

View Source
var LinkCacheKey = "links"

LinkCacheKey is the key for the links items in the cache

Functions

This section is empty.

Types

type AirTable

type AirTable struct {
	APIKey   string `required:"true"`
	BaseID   string `required:"true"`
	RootURL  string `required:"true"`
	AppPath  string `required:"true"`
	BasePath string `required:"true"`
}

AirTable defines AirTable config section

type Config

type Config struct {
	Global
	AirTable
}

Config defines global configuration

type Global

type Global struct {
	Prefix string `default:"go"`
	Host   string
}

type LinkRecord

type LinkRecord struct {
	AirtableID string `json:"id,omitempty"`
	Fields     struct {
		Path        string
		Target      string
		Description string
		Author      string
	} `json:"fields"`
}

LinkRecord represents a single record from AirTable

Jump to

Keyboard shortcuts

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