isconf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrMissingClusterUsername = "err_missing_cluster_username"
	ErrMissingClusterPassword = "err_missing_cluster_password"
	ErrMissingUsersDBName     = "err_missing_users_db_name"
	ErrCannotAccessCluster    = "err_cannot_access_cluster"
)

Variables

This section is empty.

Functions

func Init

func Init(data Configuration) *errors.Error

func InitFromFile

func InitFromFile(configPath string) *errors.Error

Types

type Cluster

type Cluster struct {
	Url      string `json:"url"`
	Username string `json:"username"`
	Password string `json:"password"`
	// contains filtered or unexported fields
}

func (*Cluster) Cluster

func (c *Cluster) Cluster() *gocb.Cluster

type Configuration

type Configuration struct {
	Cluster Cluster `json:"cluster"`
	Users   Users   `json:"users"`
}

func Main

func Main() *Configuration

func (*Configuration) Setup

func (c *Configuration) Setup() *errors.Error

func (*Configuration) SetupDefaults

func (c *Configuration) SetupDefaults()

func (*Configuration) Verify

func (c *Configuration) Verify() *errors.Error

type Users

type Users struct {
	DBName             string `json:"db_name"`
	EmailPath          string `json:"email_path"`
	PasswordHashedPath string `json:"password_hashed_path"`
}

Jump to

Keyboard shortcuts

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