Documentation
¶
Index ¶
- Constants
- Variables
- func AddGroups(gs []string) error
- func AddUsers(us []string)
- func AddUsersToGroups(gs []string, us []string) error
- func AuthToken(us string, p string, r *http.Request) bool
- func Build(in io.Reader, out interface{}) error
- func DelGroups(gs []string) error
- func DelStatus(sT database.StatusS)
- func DelUsers(us []string)
- func DelUsersFromGroups(gs []string, us []string) error
- func GetAllStatusBuckets() []string
- func GetAllStatusByDate(date string) ([]database.StatusS, error)
- func GetGroup(n string) (database.GroupS, error)
- func GetStatus(uS database.UserS, date string) []database.StatusS
- func GetUser(n string) (database.UserS, error)
- func In(v string, a []string) (ok bool, i int)
- func IsAdmin(user string) bool
- func IsSelf(me, user string) bool
- func ListGroups() ([]database.GroupS, error)
- func ListUsers() []database.UserS
- func LoadGlobalConfig(configFilename string) error
- func ModifyGroups(gs []database.GroupS) error
- func NewStatus(uS database.UserS, s string) database.StatusS
- func RemoveGroup(list []database.GroupS, rm database.GroupS) []database.GroupS
- func RemoveIndex(list []string, i int) []string
- func RemoveUser(list []database.UserS, rm database.UserS) []database.UserS
- func UserInGroup(n string, u database.UserS) bool
- type Info
Constants ¶
View Source
const DFMT = "2006-01-02"
Variables ¶
View Source
var ( // CommitHash contains the current Git revision. Use make to build to make // sure this gets set. CommitHash string // BuildDate contains the date of the current build. BuildDate string )
View Source
var DStamp = time.Now().UTC().Format(DFMT)
Functions ¶
func AddUsersToGroups ¶
func DelUsersFromGroups ¶
func GetAllStatusBuckets ¶
func GetAllStatusBuckets() []string
func ListGroups ¶
func LoadGlobalConfig ¶
LoadGlobalConfig loads Hugo configuration into the global Viper.
func ModifyGroups ¶
func RemoveIndex ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.