mako

package
v0.0.0-...-ca6fd01 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAdminToken = "111111"
)

Variables

This section is empty.

Functions

func AcceptVersion

func AcceptVersion(ver string) bool

func AcceptWorkOnTask

func AcceptWorkOnTask(taskId int) error

func Activate

func Activate(username, password, answer string) error

unused yet

func AddAcceptingVersion

func AddAcceptingVersion(ver string)

func AddTaskWater

func AddTaskWater(water string)

func CheckAdminToken

func CheckAdminToken(token string) bool

func ClaimFood

func ClaimFood(uid model.Uid, gotAt *time.Time) error

func ExpectAssigneeOnTask

func ExpectAssigneeOnTask(taskId int) error

func FireAssigneeFromTask

func FireAssigneeFromTask(taskId int, isDoing bool) error

func GetAdminToken

func GetAdminToken() string

func GetCPoints

func GetCPoints() []model.CPointEntry

func GetCultis

func GetCultis(uid model.Uid) []model.Culti

deprecated

func GetRankedGids

func GetRankedGids() []model.Gid

deprecated

func GetReplay

func GetReplay(replayId uint) (string, error)

func GetReplayList

func GetReplayList(uid model.Uid) []uint

func GetTask

func GetTask(taskId int) (*model.Task, error)

func GetTaskWaters

func GetTaskWaters(ct int) []string

func GetTasks

func GetTasks() ([]model.Task, error)

func GetUser

func GetUser(uid model.Uid) *model.User

func GetUsers

func GetUsers(uids *[4]model.Uid) [4]*model.User

func InitDb

func InitDb(addr string)

func InitRedis

func InitRedis(addr string)

func Login

func Login(username, password string) (*model.User, error)

func NotifyCheckTask

func NotifyCheckTask(uid model.Uid, taskId int) error

func SignUp

func SignUp(username, password string) error

func StartTask

func StartTask(uid model.Uid, taskId int) error

func UpdateCPoint

func UpdateCPoint(username string, delta int) error

func UpdateFood

func UpdateFood(uid model.Uid, delta int) error

func UpdateUserGirl

func UpdateUserGirl(uids [4]model.Uid, args *model.EndTableStat) error

func UpsertTask

func UpsertTask(task *model.Task) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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