go-cureword

command module
v0.0.0-...-3bdd32b Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

README

Go-Cureword

Cureword LICENSE version visit time wakatime

What do I use

Data From WakaTime

Sqlite

API

API Doc: http://api.cureword.top:256

Cli

Commands:

$ go-cureword

COMMANDS:
   account  API account operations
   run      Run API serve
   help, h  Shows a list of commands or help for one command

account:
  COMMANDS:
   add      add a new account
   list     list all accounts
   delete   delete an account
   set      set an account
   help, h  Shows a list of commands or help for one command

Config

host: 0.0.0.0
port: 256

Permission

  1. Sample permissions only return sample content.

  2. Only 300 randget/get1st calls per day are allowed.

  3. Allow randget/get1st/getword calls 500 times per day.

  4. Can use admin dashboard(with google_auth)

Errorno

此处为反馈中所有可能出现的类型与错误代码

类型 错误代码 描述
SUCCESS 200 正常获取
ERROR_MISSING_DATA 1001 缺失请求数据(检查你的url)
ERROR_VERIFY_FAIL 1002 验证失败,请检查你的密钥
ERROR_VALUE_ERROR 1003 请求方法异常,检查value内的值
ERROR_PERMISSION 1004 权限不足
ERROR_USECOUNT 1005 当日请求次数已达上限
ERROR_UNKNOWN 1006 未知错误
ERROR_DATABASE 2001 数据库连接出错

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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