app

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGroupProviders

func RegisterGroupProviders(group string, providers ...interface{})

func RegisterHandlerProviders

func RegisterHandlerProviders(providers ...interface{})

func RegisterHealthCheckProviders

func RegisterHealthCheckProviders(providers ...interface{})

func RegisterMiddlewareProviders

func RegisterMiddlewareProviders(providers ...interface{})

func RegisterProviders

func RegisterProviders(providers ...interface{})

func Start

func Start() (err error)

Types

type Application

type Application interface {
	Start() error
	RegisterProviders(providers ...interface{})
	RegisterGroupProviders(group string, providers ...interface{})
	RegisterMiddlewareProviders(providers ...interface{})
	RegisterHealthCheckProviders(providers ...interface{})
	RegisterHandlerProviders(providers ...interface{})
}

func NewApplication

func NewApplication() Application

type Handler

type Handler interface {
	MapRoutes(group *gin.RouterGroup)
}

type HealthChecker

type HealthChecker interface {
}

type HealthServer

type HealthServer interface {
	Start() error
}

type Middleware

type Middleware interface {
	NewHandler() gin.HandlerFunc
}

type ProviderFactory

type ProviderFactory interface {
	NewProvider() interface{}
}

type Server

type Server interface {
	Start() error
}

Jump to

Keyboard shortcuts

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