myconf

package
v0.0.0-...-9a81921 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIURL    string
	AppName   string
	ClientURL string
	ImagesURL string

	AuthKeyId string

	AWSRegion       string
	AWSUploadBucket string

	DBHost         string
	DBPort         uint16
	DBRootUser     string
	DBRootPassword string
	DBUser         string
	DBPassword     string
	DBName         string

	MailCharSet string
	MailSender  string
	MailRootURL string
}

func Load

func Load(name string) *Config

type Permission

type Permission struct {
	Operation     mytype.Operation `json:"operation"`
	Authenticated bool             `json:"authenticated"`
	Roles         []string         `json:"roles,omitempty,flow"`
	Fields        []string         `json:"fields,omitempty,flow"`
}

type Permissions

type Permissions struct {
	Permissions []Permission `json:"permissions,flow"`
}

func LoadPermissions

func LoadPermissions() (*Permissions, error)

Jump to

Keyboard shortcuts

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