context

package
v0.0.0-...-08bb043 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerContext

type ServerContext struct {
	echo.Context
	// contains filtered or unexported fields
}

ServerContext extends the echo context and contains the property "Repository"

func NewServerContext

func NewServerContext(config *configuration.Configuration, ctx echo.Context) *ServerContext

func ToServerContext

func ToServerContext(ctx echo.Context) *ServerContext

ToServerContext cast to the server context

func (ServerContext) HasRepository

func (c ServerContext) HasRepository() bool

HasRepository checks the existing repository

func (ServerContext) Repository

func (c ServerContext) Repository() *repository.Repository

Jump to

Keyboard shortcuts

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