routes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WarningColor yellow color
	WarningColor = "\033[1;33m%s\033[0m"

	// ErrorColor red color
	ErrorColor = "\033[1;31m%s\033[0m"
)

Variables

This section is empty.

Functions

func GetService

func GetService(server string, path string, query string) ([]byte, int)

GetService function for implement GET at V1 Routing

func PostService

func PostService(server string, path string, query []byte) ([]byte, int)

PostService function for implement POST at V1 Routing

func V1

func V1() *chi.Mux

V1 Route function for first method of routing

Types

type V1Route

type V1Route interface {
	GetService() ([]byte, int)
	PostService() ([]byte, int)
	// contains filtered or unexported methods
}

V1Route created to work with V2 Routing

Jump to

Keyboard shortcuts

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