service

package module
v0.0.0-...-2bb523c Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(register, listen string, service Service)

Listen will listen to all publication for registration from registry

func Register

func Register(endpoint string, service Service)

Register will register one service

Types

type Service

type Service struct {
	Name     string `json:"name"`
	Hostname string `json:"hostname"`
	Protocol string `json:"protocol"`
	Port     int    `json:"port"`
}

Service represents a service that we want to register. It should hold all information need to be able to be used by another service

func Whereis

func Whereis(endpoint, name string) Service

Jump to

Keyboard shortcuts

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