request

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context) context.Context

NewContext wraps the supplied context and associates a git protocol-specific context value to it.

Types

type Context

type Context struct {
	IsAdmin      bool
	CanView      bool
	CanEdit      bool
	HasSolved    bool
	ReviewRef    string
	UpdatedFiles map[string]io.Reader
}

Context stores a few variables that are request-specific.

func FromContext

func FromContext(ctx context.Context) *Context

FromContext unwraps a Context from the provided context.Context.

Jump to

Keyboard shortcuts

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