consul_register

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulClient

type ConsulClient struct {
	ServiceName string
	ServiceId   string
	// contains filtered or unexported fields
}

func NewConsulClient

func NewConsulClient(serviceName string) *ConsulClient

func (*ConsulClient) DeregisterService

func (client *ConsulClient) DeregisterService() error

func (*ConsulClient) LookUpService

func (client *ConsulClient) LookUpService(serviceId string) (*Service, error)

func (*ConsulClient) RegisterService

func (client *ConsulClient) RegisterService() error

type Service

type Service struct {
	Address string
	Port    int
	ID      string
}

func (*Service) GetHTTP

func (service *Service) GetHTTP() string

Jump to

Keyboard shortcuts

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