icarus

package module
v0.0.0-...-5e74752 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Course

type Course interface {
	Name() string
	Elect(LoginSession) (bool, error)
}

type CourseData

type CourseData struct {
	Name  string `json:"name"`
	Desc  string `json:"desc"`
	Token string `json:"token,omitempty"`
}

type LoginSession

type LoginSession interface{}

type Stat

type Stat struct {
	Running   bool   `json:"running"`
	Succeeded int64  `json:"succeeded"`
	Failed    int64  `json:"failed"`
	LastError string `json:"last_error"`
	Elected   bool   `json:"elected"`
}

type TaskData

type TaskData struct {
	ID      int          `json:"id"`
	Handle  string       `json:"handle"`
	User    UserData     `json:"user"`
	Courses []CourseData `json:"courses"`
	Stat    Stat         `json:"stat,omitempty"`
}

type User

type User interface {
	Name() string
	Login() (LoginSession, error)
	ListCourse() ([]CourseData, error)
}

type UserData

type UserData struct {
	UserID   string `json:"userid"`
	Password string `json:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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