grpcsr

package
v0.0.0-...-235258f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulRegister

type ConsulRegister struct {
	ConsulAddress                  string   // consul address
	ServiceName                    string   // service name
	Tags                           []string // consul tags
	ServicePort                    int      //service port
	MetricsPort                    int      //service port
	DeregisterCriticalServiceAfter time.Duration
	Interval                       time.Duration
	// contains filtered or unexported fields
}

func NewConsulRegister

func NewConsulRegister(consulAddress, serviceName string, servicePort, metricsPort int, tags []string, logger log.Logger) *ConsulRegister

Jump to

Keyboard shortcuts

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