open_api

package
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemplateWriter

func NewTemplateWriter() *_ProxyWriterBuffer

Types

type IRaftSender

type IRaftSender interface {
	Send(event string, namespace string, key string, data []byte) error
	IsLeader() (bool, []string)
}

type OpenApiProxy

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

func NewOpenApiProxy

func NewOpenApiProxy(sender IRaftSender, leaderHandler http.Handler) *OpenApiProxy

func (*OpenApiProxy) ExcludeHandle

func (p *OpenApiProxy) ExcludeHandle(method, path string, handler httprouter.Handle)

func (*OpenApiProxy) ExcludeHandleFunc

func (p *OpenApiProxy) ExcludeHandleFunc(method, path string, handler http.HandlerFunc)

func (*OpenApiProxy) ExcludeHandler

func (p *OpenApiProxy) ExcludeHandler(method, path string, handler http.Handler)

func (*OpenApiProxy) ExcludeHandlers

func (p *OpenApiProxy) ExcludeHandlers(path string, handler http.Handler)

func (*OpenApiProxy) ExcludeHandles

func (p *OpenApiProxy) ExcludeHandles(path string, handler httprouter.Handle)

func (*OpenApiProxy) ExcludeHandlesFunc

func (p *OpenApiProxy) ExcludeHandlesFunc(path string, handler http.HandlerFunc)

func (*OpenApiProxy) ServeHTTP

func (p *OpenApiProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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