config

package
v0.0.0-...-726ee8c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfig

func SetConfig(conf *Config)

Set global config returned by GetConfig

func UpdateConfig

func UpdateConfig(c context.Context, update func(*Config) (*Config, error)) error

Update configuration state (from admin utility or the like)

Types

type Config

type Config struct {
	// Legistar site to scrape.
	// Please include trailing slash.
	LegistarBaseURL string
	// Olson time for legistar site
	TimeLocationName string

	// do we send updates when we see changes?
	UpdatesEnable bool

	// do we send tweets?
	TwitterEnable bool
	// API Key
	TwitterKey string
	// API Secret
	TwitterSecret string
	// Access token
	TwitterToken string
	// Access token secret
	TwitterTokenSecret string
}

func GetConfig

func GetConfig(c context.Context) (*Config, error)

Get configuration for app

Jump to

Keyboard shortcuts

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