server

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2023 Kapeta Inc. SPDX-License-Identifier: MIT

Copyright 2023 Kapeta Inc. SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseEchoPathRouter added in v0.2.1

func UseEchoPathRouter(e *echo.Echo)

func UseEchoRouter added in v0.2.1

func UseEchoRouter(name string, e *echo.Echo)

UseEchoRouter registers a new directive executor which can extract values from `mux.Vars`, i.e. path variables. https://ggicci.github.io/httpin/integrations/echo

Usage:

import httpin_integration "github.com/ggicci/httpin/integration"

func init() {
    e := echo.New()
    httpin_integration.UseEchoRouter("path", e)
}

Types

type EchoMuxVarsFunc added in v0.2.1

type EchoMuxVarsFunc func(*http.Request) map[string]string

EchoMuxVarsFunc is mux.Vars

type KapetaServer

type KapetaServer struct {
	*echo.Echo
}

func New

func New() *KapetaServer

New creates a new instance of the KapetaServer, with no default settings

func NewWithDefaults

func NewWithDefaults() *KapetaServer

New creates a new instance of the KapetaServer with default settings

Jump to

Keyboard shortcuts

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