configfile

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(c Config) error

Types

type Config

type Config struct {
	DefaultConn string                `json:"default_connection,omitempty"`
	Connections map[string]Connection `json:"connections,omitempty"`
}

func Load

func Load() (Config, error)

type Connection

type Connection struct {
	Gateway       bool   `json:"gateway,omitempty"`
	URL           string `json:"url"`
	SiteID        string `json:"site_id,omitempty"`
	Token         Token  `json:"token"`
	AllowInsecure bool   `json:"allow_insecure,omitempty"`
}

type Token

type Token struct {
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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