chttp

package
v0.0.0-...-30b40a1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CORSOrigins []string `conf:"cors_origins"`
}

type HTTP

type HTTP struct {
	// contains filtered or unexported fields
}

func New

func New(svc Service, oa OAuth, cfg Config, log logger.Logger) (*HTTP, error)

func (HTTP) ServeHTTP

func (ctr HTTP) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OAuth

type OAuth interface {
	middleware.AuthOAuth
	rapi.OAuth
}

type Service

type Service interface {
	rapi.Service
}

Directories

Path Synopsis
Package rapi provides primitives to interact with the openapi HTTP API.
Package rapi provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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