srvcrouter

package
v0.0.0-...-ada9f9d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	RoutesExt   = "/routes"
	PatternExt  = "/pattern"
	ServicesExt = "/service"
	APIExt      = "/api"
	KeyPathExt  = "Path"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryParams

type QueryParams map[string]string

type ServiceRouter

type ServiceRouter struct {
	C   *resty.Client
	Url *url.URL
}

func NewServiceRouter

func NewServiceRouter(path string) *ServiceRouter

func (*ServiceRouter) RegisterService

func (r *ServiceRouter) RegisterService(apiIf config.ServiceApiIf) error

Jump to

Keyboard shortcuts

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