api

package
v0.0.0-...-59bc7d8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

func NewServer

func NewServer(ctx context.Context, cluster string, controller controllers.BaseController, config *conf.APIConfig) (*APIServer, error)

func (*APIServer) Startup

func (server *APIServer) Startup() error

func (*APIServer) Stop

func (server *APIServer) Stop() error

type IRouter

type IRouter interface {
	//ServeHTTP used to handle the http requests
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

func NewRouter

func NewRouter(cluster string, controller controllers.BaseController, config *conf.APIConfig) IRouter

type MiddlewareHandlerFunc

type MiddlewareHandlerFunc func() gin.HandlerFunc

type Router

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

func (*Router) ServeHTTP

func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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