config

package
v0.0.0-...-2175bb8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConfig

type DbConfig struct {
	Driver  string          `yaml:"driver"`
	Options DbOptionsConfig `yaml:"options"`
}

type DbOptionsConfig

type DbOptionsConfig struct {
	FS       FSDbOptionsConfig     `yaml:"fs"`
	Postgres PostgresOptionsConfig `yaml:"postgres"`
}

type FSDbOptionsConfig

type FSDbOptionsConfig struct {
	Path string `yaml:"path"`
}

type GitConfig

type GitConfig struct {
	Github GithubConfig `yaml:"github"`
}

type GithubConfig

type GithubConfig struct {
	AccessToken string `yaml:"access_token" split_words:"true"`
}

type PostgresOptionsConfig

type PostgresOptionsConfig struct {
	User             string `yaml:"user"`
	Password         string `yaml:"password"`
	MigratorUser     string `yaml:"migrator_user" split_words:"true"`
	MigratorPassword string `yaml:"migrator_password" split_words:"true"`
	Database         string `yaml:"db"`
	Schema           string `yaml:"schema"`
	Host             string `yaml:"host"`
	Port             string `yaml:"port"`
}

func (PostgresOptionsConfig) GetDatabase

func (c PostgresOptionsConfig) GetDatabase() string

func (PostgresOptionsConfig) GetDriverName

func (c PostgresOptionsConfig) GetDriverName() string

func (PostgresOptionsConfig) GetHost

func (c PostgresOptionsConfig) GetHost() string

func (PostgresOptionsConfig) GetMigratorPassword

func (c PostgresOptionsConfig) GetMigratorPassword() string

func (PostgresOptionsConfig) GetMigratorUsername

func (c PostgresOptionsConfig) GetMigratorUsername() string

func (PostgresOptionsConfig) GetPassword

func (c PostgresOptionsConfig) GetPassword() string

func (PostgresOptionsConfig) GetPort

func (c PostgresOptionsConfig) GetPort() string

func (PostgresOptionsConfig) GetSchema

func (c PostgresOptionsConfig) GetSchema() string

func (PostgresOptionsConfig) GetUsername

func (c PostgresOptionsConfig) GetUsername() string

type ServerConfig

type ServerConfig struct {
	Port string `yaml:"port"`
}

type Ymir

type Ymir struct {
	Server ServerConfig `yaml:"server"`
	Db     DbConfig     `yaml:"db"`
	Git    GitConfig    `yaml:"git"`
}

Jump to

Keyboard shortcuts

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