servicerouter

package module
v0.0.0-...-d2de3b5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: GPL-3.0 Imports: 4 Imported by: 3

README

servicerouter

Packetframe's microservice router

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(db *database.Database, service *Service) error

Register registers a new service with the router

Types

type Service

type Service struct {
	ID   primitive.ObjectID `bson:"_id,omitempty"`
	Path string
	Port uint16
	Repo string
}

Service stores a service definition

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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