models

package
v0.0.0-...-a8d0bc3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2016 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Author

	Email  string             `json:"email"`
	Token  string             `json:"token"`
	GitHub *GitHubAccountInfo `json:"github"`
}

Account data structure as returned by the API Account extends Author with private fields

type Author

type Author struct {
	Type     string     `json:"type"`
	Name     string     `json:"name"`
	Username string     `json:"username"`
	Urls     AuthorUrls `json:"urls"`
}

Author data as returned by the API Author only contains public information

type AuthorUrls

type AuthorUrls struct {
	Profile string `json:"profile"`
	Avatar  string `json:"avatar"`
}

type Book

type Book struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Urls        struct {
		Access    string `json:"access"`
		Homepage  string `json:"homepage"`
		Read      string `json:"read"`
		Reviews   string `json:"reviews"`
		Subscribe string `json:"subscribe"`

		Download struct {
			Epub string `json:"epub"`
			Mobi string `json:"mobi"`
			Pdf  string `json:"pdf"`
		} `json:"download"`
	} `json:"urls"`

	Author struct {
		Name     string `json:"name"`
		Username string `json:"username"`
	} `json:"author"`

	Permissions struct {
		Read   bool `json:"read"`
		Write  bool `json:"write"`
		Manage bool `json:"manage"`
	} `json:"permissions"`

	LatestBuild struct {
		Version  string `json:"version"`
		Finished string `json:"finished"`
		Started  string `json:"started"`
	} `json:"latestBuild"`
}

Books data structure as returned by the API

type Build

type Build struct {
	Branch  string      `json:"branch"`
	Message string      `json:"message"`
	Author  BuildAuthor `json:"author"`
}

type BuildAuthor

type BuildAuthor struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type GitHubAccountInfo

type GitHubAccountInfo struct {
	Username string   `json:"username"`
	Token    string   `json:"token"`
	Scopes   []string `json:"scopes"`
}

Jump to

Keyboard shortcuts

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