environment

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoDelete

type AutoDelete struct {
	Enabled bool      `json:"enabled" form:"enabled" default:"false"`
	After   time.Time `json:"after" form:"after" format:"date-time"`
}

func (*AutoDelete) Scan

func (a *AutoDelete) Scan(value interface{}) error

Scan implement the sql.Scanner interface (for deserializing AutoDelete from the database)

func (AutoDelete) Validate

func (a AutoDelete) Validate() error

Validate returns an error if the given auto-delete configuration is not valid

func (AutoDelete) Value

func (a AutoDelete) Value() (driver.Value, error)

Value implement the driver.Valuer interface (for serializing AutoDelete to database)

Jump to

Keyboard shortcuts

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