MSP-8299 vendor update
This commit is contained in:
1 parent
c8e4a014a0
commit
59d487646c
607 files changed
+48706
-13176
No files matched your search
+1
@@ -348,6 +348,7 @@ func (c *Client) notifyModuleReady(ctx context.Context, cli *clientWrapper, requ
|
||||
RequiredModules: moduleDependencies,
|
||||
Address: c.moduleInfo.GrpcOuterAddress,
|
||||
MetricsAutodiscovery: c.moduleInfo.MetricsAutodiscovery,
|
||||
ModuleLeaderMode: c.moduleInfo.ModuleLeaderMode,
|
||||
}
|
||||
_, err := cli.EmitJsonWithAck(ctx, ModuleReady, declaration)
|
||||
if err != nil {
|
||||
|
||||
+12
-3
@@ -10,12 +10,19 @@ const (
|
||||
GrpcTransport = "grpc"
|
||||
HttpTransport = "http"
|
||||
EmptyTransport = "empty"
|
||||
|
||||
ModuleLeaderModeNone = ""
|
||||
ModuleLeaderModeRequestElection = "REQUEST_ELECTION"
|
||||
ModuleLeaderModeImLeader = "IM_LEADER"
|
||||
ModuleLeaderModeImFollower = "IM_FOLLOWER"
|
||||
)
|
||||
|
||||
// AddressConfiguration represents the IP address and port for a service endpoint.
|
||||
// AddressConfiguration represents the IP address and port for a service endpoint,
|
||||
// and whether this instance is the module leader.
|
||||
type AddressConfiguration struct {
|
||||
IP string `json:"ip"`
|
||||
Port string `json:"port"`
|
||||
IP string `json:"ip"`
|
||||
Port string `json:"port"`
|
||||
IsModuleLeader bool
|
||||
}
|
||||
|
||||
// ConfigData contains configuration data for a module, including version information
|
||||
@@ -36,6 +43,7 @@ type ModuleInfo struct {
|
||||
GrpcOuterAddress AddressConfiguration
|
||||
EndpointsResolver EndpointsResolver
|
||||
MetricsAutodiscovery *MetricsAutodiscovery
|
||||
ModuleLeaderMode string
|
||||
}
|
||||
|
||||
// RoutingConfig represents a list of backend declarations for routing configuration.
|
||||
@@ -52,6 +60,7 @@ type BackendDeclaration struct {
|
||||
RequiredModules []ModuleDependency
|
||||
Address AddressConfiguration
|
||||
MetricsAutodiscovery *MetricsAutodiscovery
|
||||
ModuleLeaderMode string
|
||||
}
|
||||
|
||||
// EndpointDescriptor describes an HTTP endpoint, including its path, method, authentication
|
||||
|
||||
Reference in new issue
Block a user