Versions in this module Expand all Collapse all v0 v0.3.1 Apr 29, 2014 Changes in this version + var OfflineMode bool + var ProdMode bool v0.3.0 Apr 21, 2014 Changes in this version + const BindingAlphaDashError + const BindingBooleanTypeError + const BindingDeserializationError + const BindingEmailError + const BindingFloatTypeError + const BindingIntegerTypeError + const BindingMaxSizeError + const BindingMinSizeError + const BindingRequireError + const BindingUrlError + const TPL_CREATE_ISSUE + const TPL_PUSH_TAG + const TPL_TRANSFER_REPO + var EnableMemcache bool + var EnableRedis bool + var GoGetMetas = make(map[string]bool) + var IsProdMode bool + var MentionPattern = regexp.MustCompile(`@[0-9a-zA-Z_]{1,}`) + var OauthService *Oauther + var ScriptType string + func NewBaseServices() + func Oauth2Icon(t int) string + func PBKDF2(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte + func RenderMarkdownString(raw, urlPrefix string) string + func RenderSpecialLink(rawBytes []byte, urlPrefix string) []byte + type BindingErrors struct + Fields map[string]string + Overall map[string]string + func (err BindingErrors) Count() int + func (this *BindingErrors) Combine(other BindingErrors) + type OauthInfo struct + AuthUrl string + ClientId string + ClientSecret string + Scopes string + TokenUrl string + type Oauther struct + GitHub bool + Google bool + OauthInfos map[string]*OauthInfo + Tencent bool + Twitter bool + Weibo bool v0.2.0 Mar 31, 2014 Changes in this version + const Byte + const Day + const EByte + const GByte + const Hour + const KByte + const MByte + const Minute + const Month + const PByte + const TByte + const TPL_COMMIT_REPO + const TPL_COMMIT_REPO_LI + const TPL_CREATE_Issue + const TPL_CREATE_REPO + const TimeLimitCodeLength + const Week + const Year + var AppLogo string + var AppName string + var AppUrl string + var AppVer string + var Cache cache.Cache + var CacheAdapter string + var CacheConfig string + var Cfg *goconfig.ConfigFile + var CookieRememberName string + var CookieUserName string + var Domain string + var InstallLock bool + var LogConfig string + var LogInRememberDays int + var LogMode string + var MailService *Mailer + var PictureService string + var RepoRootPath string + var RunUser string + var SecretKey string + var Service struct + var SessionConfig *session.Config + var SessionManager *session.Manager + var SessionProvider string + var TemplateFuncs template.FuncMap = map[string]interface + func ActionDesc(act Actioner) string + func ActionIcon(opType int) string + func AvatarLink(email string) string + func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string + func DateFormat(t time.Time, format string) string + func DateParse(dateString, format string) (time.Time, error) + func DiffLineTypeToStr(diffType int) string + func DiffTypeToStr(diffType int) string + func EncodeMd5(str string) string + func ExecDir() (string, error) + func FileSize(s int64) string + func GetRandomString(n int, alphabets ...byte) string + func IsImageFile(data []byte) (string, bool) + func IsMarkdownFile(name string) bool + func IsReadmeFile(name string) bool + func IsTextFile(data []byte) (string, bool) + func List(l *list.List) chan interface + func NewConfigContext() + func NewServices() + func Range(l int) []int + func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte + func ShortSha(sha1 string) string + func Str2html(raw string) template.HTML + func Subtract(left interface{}, right interface{}) interface + func TimeSince(then time.Time) string + func TimeSincePro(then time.Time) string + func ToStr(value interface{}, args ...int) (s string) + func VerifyTimeLimitCode(data string, minutes int, code string) bool + type Actioner interface + GetActEmail func() string + GetActUserName func() string + GetBranch func() string + GetContent func() string + GetOpType func() int + GetRepoName func() string + type CustomRender struct + func (options *CustomRender) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) + type Mailer struct + Host string + Name string + Passwd string + User string + type PushCommit struct + AuthorEmail string + AuthorName string + Message string + Sha1 string + type PushCommits struct + Commits []*PushCommit + Len int + type StrTo string + func (f StrTo) Exist() bool + func (f StrTo) Int() (int, error) + func (f StrTo) Int64() (int64, error) + func (f StrTo) String() string + type TmplData map[string]interface