app

package
v0.0.0-...-df2bac0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(ac *appContext, r *http.Request) (*oauth2.Token, error)

func NewAppContext

func NewAppContext() *appContext

func NewRouter

func NewRouter(ac *appContext) http.Handler

func NewServer

func NewServer(handler http.Handler) *http.Server

func Run

func Run()

func RunServer

func RunServer(server *http.Server)

Types

type SyncRepo

type SyncRepo struct {
	Repo string `json:"repo"`
}

type User

type User struct {
	Username    string        `json:"username"`
	Email       *mail.Address `json:"email"`
	SyncedRepos []SyncRepo    `json:"synced_repos"`
	Token       *oauth2.Token `json:"-"`
}

func GetUser

func GetUser(ac *appContext, r *http.Request) (*User, error)

Jump to

Keyboard shortcuts

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