config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpServiceConfig

type GrpServiceConfig struct {
	ServiceConfig
	CallBackFunc func(*grpc.Server) error
}

type HttpServiceConfig

type HttpServiceConfig struct {
	ServiceConfig
	Runner func(net.IP, int) error
}

type ModuleConfig

type ModuleConfig struct {
	WatershedConfig
	Name         string
	ConsulClient *consul.Client
}

type ServiceConfig

type ServiceConfig struct {
	IP                  net.IP
	Port                int
	IsListenerIpDefault bool
	AutoGetIPModel      int
	CustomIPConsumer    func() (net.IP, error)
	RegisterConfig      *consul.AgentServiceRegistration
}

type WatershedConfig

type WatershedConfig struct {
	Project      string
	Env          string
	ConsulConfig *consul.Config
}

Jump to

Keyboard shortcuts

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