models

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 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 Auth added in v0.12.0

type Auth struct {
	Anonymous bool
	Username  string
	Password  string
}

func NewAuth added in v0.12.0

func NewAuth(username, password string) Auth

type Config added in v0.12.0

type Config struct {
	RetentionPolicy RetentionPolicy
	AuthSMTP        Auth
	AuthHTTP        Auth
}

type RetentionPolicy

type RetentionPolicy struct {
	MinAge         time.Duration
	EnvelopeCount  *int
	EnvelopeAge    *time.Duration
	AttachmentSize *int64
}

func (RetentionPolicy) AgeDate added in v0.11.2

func (rp RetentionPolicy) AgeDate() time.Time

type Storage

type Storage struct {
	EnvelopeCount   int
	AttachmentCount int
	AttachmentSize  int64
	DatabaseSize    int64
}

Jump to

Keyboard shortcuts

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