periwinkle

package
v0.0.0-...-00f1f15 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2015 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogErr

func LogErr(errs ...locale.Error)

func Logf

func Logf(format string, a ...interface{})

Types

type Cfg

type Cfg struct {
	Mailstore            maildir.Maildir
	WebUIDir             http.Dir
	Debug                bool
	TrustForwarded       bool // whether to trust X-Forwarded: or Forwarded: HTTP headers
	TwilioAccountID      string
	TwilioAuthToken      string
	GroupDomain          string
	WebRoot              string
	DB                   *DB
	DomainHandlers       map[string]DomainHandler
	DefaultDomainHandler DomainHandler
}

type Conflict

type Conflict struct {
	Err locale.Error
}

func (Conflict) Error

func (c Conflict) Error() string

func (Conflict) L10NString

func (c Conflict) L10NString(s locale.Spec) string

func (Conflict) Locales

func (c Conflict) Locales() []locale.Spec

type DB

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

func NewDB

func NewDB(db gorm.DB) *DB

func (*DB) Do

func (db *DB) Do(fn func(tx *Tx)) (conflict locale.Error)

type DomainHandler

type DomainHandler func(io.Reader, string, *Tx, *Cfg) postfixpipe.ExitStatus

type Tx

type Tx struct {
	*gorm.DB
}

Jump to

Keyboard shortcuts

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