utils

package
v0.0.0-...-b75766b Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2015 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatenateErrors

func ConcatenateErrors(errs *[]error) string

func EpochHours

func EpochHours() int64

func EpochNow

func EpochNow() int64

func RemoveDuplicates

func RemoveDuplicates(arr *[]string)

func ValidateAndRaiseError

func ValidateAndRaiseError(request *gottp.Request, structure interface{}) bool

Types

type M

type M bson.M

func GetPaginationToQuery

func GetPaginationToQuery(paginator *gottp.Paginator) *M

type MailConn

type MailConn struct {
	HostName   string
	UserName   string
	Password   string
	SenderName string
	Port       string
	Host       string
}

func (*MailConn) MessageBytes

func (conn *MailConn) MessageBytes(message Message) []byte

func (*MailConn) SendEmail

func (conn *MailConn) SendEmail(message Message)

type Message

type Message struct {
	From    string
	To      []string
	Subject string
	Body    string
}

type R

type R struct {
	StatusCode int
	Data       interface{}
	Message    string
}

func (R) SendOverWire

func (self R) SendOverWire() utils.Q

type TimedWaitGroup

type TimedWaitGroup struct {
	sync.WaitGroup
	TimeOut time.Duration
}

func (*TimedWaitGroup) GetCompletionChannel

func (self *TimedWaitGroup) GetCompletionChannel(completionChannel chan<- bool)

func (*TimedWaitGroup) TimedWait

func (self *TimedWaitGroup) TimedWait() bool

Jump to

Keyboard shortcuts

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