Documentation
¶
Index ¶
- func Host() string
- func Initialize() error
- func OneTimeSyncSlug() string
- func RegenerateOneTimeSyncSlug(c buffalo.Context) (string, error)
- func Script() string
- func SetHost(url string)
- func Sheet() string
- func UpdateScript(c buffalo.Context, script string) error
- func UpdateSheet(c buffalo.Context, sheet string) error
- type Serializable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize() error
Initialize should only be called at the start of the program
func OneTimeSyncSlug ¶
func OneTimeSyncSlug() string
OneTimeSyncSlug returns the current sync_once settings
func RegenerateOneTimeSyncSlug ¶
RegenerateOneTimeSyncSlug updates the sync_once global settings
func UpdateScript ¶
UpdateScript updates the script global settings
Types ¶
type Serializable ¶
type Serializable interface {
json.Marshaler
json.Unmarshaler
}
Serializable ensures that settings implement the json.Marshaler and json.Unmarshaler interfaces
func SerializableSettings ¶
func SerializableSettings() Serializable
SerializableSettings returns a reference to the settings that can be used (only) for serialization -- the serialization functions are already guarded by a mutex, so this should be ok to pass around.
Click to show internal directories.
Click to hide internal directories.