config

package
v0.0.0-...-ed690c2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerConfig

type ServerConfig struct {
	// contains filtered or unexported fields
}

func New

func New(db storage.Database, privateKey *rsa.PrivateKey, publicKey *rsa.PublicKey, domain string) *ServerConfig

func (*ServerConfig) Db

func (c *ServerConfig) Db() storage.Database

func (*ServerConfig) Domain

func (c *ServerConfig) Domain() string

func (*ServerConfig) IsDebug

func (c *ServerConfig) IsDebug() bool

func (*ServerConfig) PrivateKey

func (c *ServerConfig) PrivateKey() *rsa.PrivateKey

func (*ServerConfig) PublicKey

func (c *ServerConfig) PublicKey() *rsa.PublicKey

func (*ServerConfig) SetDebug

func (c *ServerConfig) SetDebug(debug bool)

Jump to

Keyboard shortcuts

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