http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2014 License: MIT Imports: 17 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.

Documentation

Index

Constants

View Source
const (
	CODE_REDIRECT = 302
	KEY_TOKEN     = "oauth2_token"
)

Variables

This section is empty.

Functions

func Start added in v0.1.0

func Start(version, build string)

Types

type AutoFlusherWriter

type AutoFlusherWriter struct {
	// contains filtered or unexported fields
}

AutoFlusherWrite

func NewAutoFlusherWriter

func NewAutoFlusherWriter(writer http.ResponseWriter, duration time.Duration) *AutoFlusherWriter

func (*AutoFlusherWriter) Close

func (a *AutoFlusherWriter) Close()

func (*AutoFlusherWriter) Write

func (a *AutoFlusherWriter) Write(p []byte) (int, error)

type ContainersRecord

type ContainersRecord struct {
	Project   *core.Project
	Container *core.Container
	Error     []error
}

type OAuth

type OAuth struct {
	PathLogin    string // Path to handle OAuth 2.0 logins.
	PathLogout   string // Path to handle OAuth 2.0 logouts.
	PathCallback string // Path to handle callback from OAuth 2.0 backend
	PathError    string // Path to handle error cases.
	OAuthConfig  *oauth2.Config
	Config       *config.Config

	sync.Mutex
	// contains filtered or unexported fields
}

func NewOAuth

func NewOAuth(config *config.Config) *OAuth

func (*OAuth) HandleCallback

func (o *OAuth) HandleCallback(w http.ResponseWriter, r *http.Request)

func (*OAuth) HandleLogin

func (o *OAuth) HandleLogin(w http.ResponseWriter, r *http.Request)

func (*OAuth) HandleLogout

func (o *OAuth) HandleLogout(w http.ResponseWriter, r *http.Request)

func (*OAuth) Handler

func (o *OAuth) Handler(w http.ResponseWriter, r *http.Request) bool

type StatusRecord

type StatusRecord struct {
	LastRevisionLabel string
	*core.ProjectStatus
}

type StatusResult

type StatusResult struct {
	Project *core.Project
	Status  map[string]*StatusRecord
	Error   []error
}

type User

type User struct {
	Fullname string
	Avatar   string
}

Jump to

Keyboard shortcuts

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