Documentation ¶
Index ¶
- Constants
- type ContextAware
- func (c *ContextAware) GetAuthenticatedUser(key pipeline.Tag) (user.AuthenticatedUser, error)
- func (c *ContextAware) GetClassroom(key pipeline.Tag) (classroom.Classroom, error)
- func (c *ContextAware) GetLevel(key pipeline.Tag) (level.Level, error)
- func (c *ContextAware) GetMiddleware() (http.Middleware, error)
- func (c *ContextAware) GetReader() (http.Reader, error)
- func (c *ContextAware) GetSession(key pipeline.Tag) (session.Session, error)
- func (c *ContextAware) GetUser(key pipeline.Tag) (user.User, error)
- func (c *ContextAware) GetUserLevel(key pipeline.Tag) (user.Level, error)
- func (c *ContextAware) GetUserLevelData(key pipeline.Tag) (user.LevelData, error)
- func (c *ContextAware) GetUserLevels(key pipeline.Tag) ([]user.Level, error)
- func (c *ContextAware) GetWriter() (http.Writer, error)
- type HttpPipeline
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) GetSession ¶
func (c *ContextAware) GetSession(key pipeline.Tag) (session.Session, 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)
type HttpPipeline ¶
Click to show internal directories.
Click to hide internal directories.