types

package
v0.0.0-...-1c7cd44 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 0 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 {
	Name     string `yaml:"name"`
	Domain   string `yaml:"domain"`
	Port     int    `yaml:"port"`
	Postgres struct {
		Host     string `yaml:"host"`
		Port     int    `yaml:"port"`
		Username string `yaml:"username"`
		Password string `yaml:"password"`
		Database string `yaml:"database"`
	}
	Badge struct {
		Secret string `yaml:"secret"`
		Cookie string `yaml:"cookie"`
	}
	Flash struct {
		Cookie string `yaml:"cookie"`
		Domain string `yaml:"domain"`
	}
}

type Post

type Post struct {
	Title  string
	Author string
}

type User

type User struct {
	Name    string
	IsAdmin bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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