util

package
v0.0.0-...-e9593d0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cache = cache.New(12*time.Hour, 5*time.Minute)
)
View Source
var (
	ErrDisabled = errors.New("Mail Service is Disabled")
)
View Source
var (
	PREFIX = beego.AppConfig.String("urlprefix")
)

Functions

func GetPrefixString

func GetPrefixString(dest string) string

func GetPrefixStringWithData

func GetPrefixStringWithData(dest string, data interface{}) string

func Mail

func Mail(subject, content string) error

func MailDigest

func MailDigest()

func MailModel

func MailModel(model *models.BuildList)

func MailTo

func MailTo(subject, content, to string) error

Types

type Pair

type Pair struct {
	Key   interface{}
	Value interface{}
}

type Set

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

func NewSet

func NewSet() *Set

func (*Set) Add

func (s *Set) Add(element string) bool

func (*Set) AddSlice

func (s *Set) AddSlice(elements []string)

func (*Set) Contains

func (s *Set) Contains(element string) bool

func (*Set) Iterator

func (s *Set) Iterator() <-chan string

iterate over keys

func (*Set) Remove

func (s *Set) Remove(element string)

func (*Set) Size

func (s *Set) Size() int

Jump to

Keyboard shortcuts

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