utils

package
v0.0.0-...-f7de4c5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 3 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encrypt

func Encrypt(content string, salt string) string

Encrypt encrypts the content with salt

Types

type Mail

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

Mail holds information about content of Email

func (Mail) SendMail

func (m Mail) SendMail() error

SendMail sends Email according to the configurations

type MailConfig

type MailConfig struct {
	Identity string
	Host     string
	Port     string
	Username string
	Password string
	TLS      bool
}

MailConfig holds information about Email configurations

type ProjectSorter

type ProjectSorter struct {
	Projects []models.Project
}

ProjectSorter holds an array of projects

func (*ProjectSorter) Len

func (ps *ProjectSorter) Len() int

Len returns the length of array in ProjectSorter

func (*ProjectSorter) Less

func (ps *ProjectSorter) Less(i, j int) bool

Less defines the comparison rules of project

func (*ProjectSorter) Swap

func (ps *ProjectSorter) Swap(i, j int)

Swap swaps the position of i and j

type Repository

type Repository struct {
	Name string
}

Repository holds information about repository

func (*Repository) GetProject

func (r *Repository) GetProject() string

GetProject parses the repository and return the name of project.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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