route

package
v0.0.0-...-019737a Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinCfg

type GinCfg struct {
	InitGin bool
	// contains filtered or unexported fields
}

GinCfg struct config

func NewRouteService

func NewRouteService(rebuild bool, path string, test bool) *GinCfg

NewRouteService for run service a route

func (*GinCfg) Register

func (route *GinCfg) Register(withTemplate bool) (*gin.Engine, error)

Register for register router

func (*GinCfg) SetPath

func (route *GinCfg) SetPath(newPath string) error

SetPath for Change Of path

type GinRepo

type GinRepo interface {
	Register(withTemplate bool) (*gin.Engine, error)
	SetPath(newPath string) error
}

GinRepo Interface for mocking the router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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