http

package
v0.0.0-...-bd653c0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccsessLog

func AccsessLog(h http.Handler) http.Handler

func Cors

func Cors(h http.Handler) http.Handler

func JSONApi

func JSONApi(h http.Handler) http.Handler

func OktaAuth

func OktaAuth(h http.Handler) http.Handler

func UseMiddlewares

func UseMiddlewares(h http.Handler) http.Handler

Types

type Service

type Service struct {
	Router http.Handler
	// contains filtered or unexported fields
}

func New

func New(repo core.Repository) Service

func (Service) Create

func (s Service) Create(w http.ResponseWriter, r *http.Request, params httprouter.Params)

func (Service) Delete

func (s Service) Delete(w http.ResponseWriter, r *http.Request, params httprouter.Params)

func (Service) Index

func (s Service) Index(w http.ResponseWriter, r *http.Request, params httprouter.Params)

func (Service) Update

func (s Service) Update(w http.ResponseWriter, r *http.Request, params httprouter.Params)

Jump to

Keyboard shortcuts

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