service

package
v0.0.0-...-d890a95 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(cfg *config.Configure)

Start ...

func Stop

func Stop()

Stop ...

Types

type Handle

type Handle func(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes

Handle ...

type HandleFunc

type HandleFunc func(string) gin.HandlerFunc

HandleFunc ...

type RestServer

type RestServer struct {
	*gin.Engine

	Port string
	// contains filtered or unexported fields
}

RestServer ...

func NewRestServer

func NewRestServer(cfg *config.Configure) *RestServer

NewRestServer ...

func (*RestServer) Start

func (s *RestServer) Start()

Start ...

func (*RestServer) Stop

func (s *RestServer) Stop()

Stop ...

type RouteLoader

type RouteLoader struct {
	Version string
	// contains filtered or unexported fields
}

RouteLoader ...

func NewRouteLoader

func NewRouteLoader(version string) *RouteLoader

NewRouteLoader ...

func (*RouteLoader) Register

func (l *RouteLoader) Register(handle Handle, name string, handleFunc HandleFunc)

Register ...

func (*RouteLoader) Routers

func (l *RouteLoader) Routers() []*Router

Routers ...

type Router

type Router struct {
	Handle     Handle
	Name       string
	HandleFunc HandleFunc
}

Router ...

type Service

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

Service ...

func New

func New(cfg *config.Configure) *Service

New ...

Jump to

Keyboard shortcuts

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