pipeline

package
v0.0.0-...-7d6f566 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagHttpReader     pipeline.Tag = "tag_http_reader"
	TagHttpWriter     pipeline.Tag = "tag_http_writer"
	TagHttpMiddleware pipeline.Tag = "tag_http_middleware"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextAware

type ContextAware struct {
	pipeline.Context
}

func CreateContextAware

func CreateContextAware(delegate pipeline.Context) *ContextAware

func (*ContextAware) GetAuthenticatedUser

func (c *ContextAware) GetAuthenticatedUser(key pipeline.Tag) (user.AuthenticatedUser, error)

func (*ContextAware) GetClassroom

func (c *ContextAware) GetClassroom(key pipeline.Tag) (classroom.Classroom, error)

func (*ContextAware) GetLevel

func (c *ContextAware) GetLevel(key pipeline.Tag) (level.Level, error)

func (*ContextAware) GetMiddleware

func (c *ContextAware) GetMiddleware() (http.Middleware, error)

func (*ContextAware) GetReader

func (c *ContextAware) GetReader() (http.Reader, error)

func (*ContextAware) GetSession

func (c *ContextAware) GetSession(key pipeline.Tag) (session.Session, error)

func (*ContextAware) GetUser

func (c *ContextAware) GetUser(key pipeline.Tag) (user.User, error)

func (*ContextAware) GetUserLevel

func (c *ContextAware) GetUserLevel(key pipeline.Tag) (user.Level, error)

func (*ContextAware) GetUserLevelData

func (c *ContextAware) GetUserLevelData(key pipeline.Tag) (user.LevelData, error)

func (*ContextAware) GetUserLevels

func (c *ContextAware) GetUserLevels(key pipeline.Tag) ([]user.Level, error)

func (*ContextAware) GetWriter

func (c *ContextAware) GetWriter() (http.Writer, error)

type HttpPipeline

type HttpPipeline interface {
	Run(context *http.Context, stage pipeline.Stage)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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