Documentation ¶
Index ¶
- func Clients(e echo.Context) *clients
- func Cookies(ctx echo.Context) *cookies
- func GrpcClientConn(e echo.Context) *grpc.ClientConn
- func JWT(c echo.Context) *jwtMdw
- func NewJWTControllerToken(handle, address, origin string) *jwt.Token
- func Partial(cmp templ.Component) echo.HandlerFunc
- func Render(c echo.Context, cmp templ.Component) error
- func Requests(c echo.Context) requests
- func UseDefaults(e *echo.Echo)
- func UseHTMX(next echo.HandlerFunc) echo.HandlerFunc
- func UseHyperView(next echo.HandlerFunc) echo.HandlerFunc
- func UseJWTController(address, handle, origin string) echo.MiddlewareFunc
- func UseSessionID() echo.MiddlewareFunc
- type HeaderKey
- type JwtControllerClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrpcClientConn ¶
func GrpcClientConn(e echo.Context) *grpc.ClientConn
GrpcClientConn creates a gRPC client connection.
func NewJWTControllerToken ¶
func NewJWTControllerToken(handle, address, origin string) *jwt.Token
func UseDefaults ¶
func UseDefaults(e *echo.Echo)
UseDefaults adds chi provided middleware libraries to the router.
func UseHTMX ¶
func UseHTMX(next echo.HandlerFunc) echo.HandlerFunc
UseHTMX sets the htmx request header as context value
func UseHyperView ¶
func UseHyperView(next echo.HandlerFunc) echo.HandlerFunc
Use HyperView sets the htmx request header as context value
func UseJWTController ¶
func UseJWTController(address, handle, origin string) echo.MiddlewareFunc
UseJWTController returns a middleware that uses JWT for session management
func UseSessionID ¶
func UseSessionID() echo.MiddlewareFunc
UseSessionID sets the session id cookie as middleware function
Types ¶
type HeaderKey ¶
type HeaderKey string
HeaderKey is the key for the htmx request header
const HTMXHeaderKey HeaderKey = "htmx-request-header"
HTMXHeaderKey is the key for the htmx request header
type JwtControllerClaims ¶
type JwtControllerClaims struct { Handle string `json:"handle"` Address string `json:"address"` Origin string `json:"origin"` jwt.RegisteredClaims }
JwtControllerClaims is a custom claims type for the JWT middleware
Click to show internal directories.
Click to hide internal directories.