config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(username string, fieldName string, value interface{}) error

Types

type Config

type Config struct {
	GeminiFetchAddress string `yaml:"GeminiFetchAddress"`
	CertFilename       string `yaml:"CertFilename"`
	AutoFetch          bool   `yaml:"AutoFetch"`
	Timezone           string `yaml:"Timezone"`
	LastFetched        string `yaml:"LastFetched"`
	GMAP               bool   `yaml:"GMAP"`
	DisplayNumber      int    `yaml:"DisplayNumber"`
	HeaderText         string `yaml:"HeaderText"`
	TagSync            bool   `yaml:"TagSync"`
	GMAPHost           string `yaml:"GMAPHost"`
	GMAPPort           string `yaml:"GMAPPort"`
}

func ExportConfig

func ExportConfig(username string) (*Config, error)

type SiteConfig

type SiteConfig struct {
	ExposeSettings bool   `yaml:"ExposeSettings"`
	SkylabPath     string `yaml:"SkylabPath"`
}

func ExportSiteConfig

func ExportSiteConfig() (*SiteConfig, error)

Jump to

Keyboard shortcuts

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