config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAppConfig

func ReadAppConfig(path string) (*api.AppConfig, error)

func WriteAppConfig

func WriteAppConfig(path string, cfg *api.AppConfig) error

func WriteAuthConfig

func WriteAuthConfig(cfg *AuthConfig) error

Types

type AuthConfig

type AuthConfig struct {
	Token string `json:"token"`
	Email string `json:"email"`
}

func ReadAuthConfig

func ReadAuthConfig() (*AuthConfig, error)

Jump to

Keyboard shortcuts

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