atsrv

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

atsrv

Build Status Build status GoDoc

        __
       /\ \__
   __  \ \ ,_\   ____  _ __   __  __
 /'__'\ \ \ \/  /',__\/\''__\/\ \/\ \
/\ \L\.\_\ \ \_/\__, '\ \ \/ \ \ \_/ |
\ \__/.\_\\ \__\/\____/\ \_\  \ \___/
 \/__/\/_/ \/__/\/___/  \/_/   \/__/

Backend for atcli ( https://github.com/gky360/atcli )

Requirements

Installation

go get -u github.com/gky360/atsrv

Usage

  1. Generate auth token (like cat /dev/urandom | base64 | fold -w 32 | head -n 1 ) and set it to environment variable ATSRV_AUTH_TOKEN.
  2. Set user id of AtCoder to environment variable ATSRV_USER_ID.
  3. Run atsrv .
  4. Enter your password to login to AtCoder.
  5. atsrv will start running.

Endpoints

method need token exapmle path
GET n /
GET y /me
GET y /contests/arc090
GET y /contests/arc090?with_testcases_url=true
POST y /contests/arc090/join
GET y /contests/arc090/tasks
GET y /contests/arc090/tasks?full=true
GET y /contests/arc090/tasks/d
GET y /contests/arc090/submissions
GET y /contests/arc090/submissions?task_name=d&status=AC
GET y /contests/arc090/submissions/2167890
POST y /contests/arc090/submissions?task_name=d

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
⌂ 换网址