Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2021 Changes in this version + type ConfigInfo struct + Routes []Route + type Option func(c *ServiceInfo) + func WithAddress(address string) Option + func WithKind(kind constant.ServiceKind) Option + func WithMetaData(key, value string) Option + func WithScheme(scheme string) Option + type Route struct + Method string + WeightGroups []WeightGroup + type Server interface + GracefulStop func(ctx context.Context) error + Healthz func() bool + Info func() *ServiceInfo + Serve func() error + Stop func() error + type Service struct + Labels map[string]string + Methods []string + Name string + Namespace string + type ServiceInfo struct + Address string + AppID string + Deployment string + Enable bool + Group string + Healthy bool + Kind constant.ServiceKind + Metadata map[string]string + Name string + Region string + Scheme string + Services map[string]*Service + Weight float64 + Zone string + func ApplyOptions(options ...Option) ServiceInfo + func (si ServiceInfo) Label() string + type WeightGroup struct + Group string + Weight int