models

package
v0.0.0-...-cf724fa Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GHubCID string

GHubCID => Github Credentials ID

View Source
var GHubCSecret string

GHubCSecret => Github Secret ID

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Cid     string `json:"cid"`
	Csecret string `json:"csecret"`
}

Credentials represents the datas obtained by requesting oauth authorization to an application

func (*Credentials) Init

func (c *Credentials) Init() error

Init a Credential instance by setting its IDS

type GhubUser

type GhubUser struct {
	ID        int    `json:"id"`
	Email     string `json:"email"`
	Login     string `json:"login"`
	AvatarURL string `json:"avatar_url"`
	Name      string `json:"name"`
}

GhubUser type represents a Oauth fetched Ghub User

Jump to

Keyboard shortcuts

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