gitea: code.gitea.io/gitea/modules/generate Index | Files

package generate

import "code.gitea.io/gitea/modules/generate"

Index

Package Files

generate.go

func GetRandomString Uses

func GetRandomString(n int) (string, error)

GetRandomString generate random string by specify chars.

func NewInternalToken Uses

func NewInternalToken() (string, error)

NewInternalToken generate a new value intended to be used by INTERNAL_TOKEN.

func NewJwtSecret Uses

func NewJwtSecret() (string, error)

NewJwtSecret generate a new value intended to be used by LFS_JWT_SECRET.

func NewSecretKey Uses

func NewSecretKey() (string, error)

NewSecretKey generate a new value intended to be used by SECRET_KEY.

Package generate imports 6 packages (graph) and is imported by 16 packages. Updated 2019-03-26. Refresh now. Tools for package owners.