package
0.0.0-20191121140916-9649366ff4b2
Repository: https://github.com/chronosphereiox/m3.git
Documentation: pkg.go.dev
# Functions
NewAdvertisement creates a new Advertisement.
NewCampaignOptions returns an empty CampaignOptions.
NewElectionOptions returns an empty ElectionOptions.
NewMetadata creates new Metadata.
NewMetadataFromProto converts a Metadata proto message to an instance of Metadata.
NewMockAdvertisement creates a new mock instance.
NewMockCampaignOptions creates a new mock instance.
NewMockElectionOptions creates a new mock instance.
NewMockHeartbeatService creates a new mock instance.
NewMockLeaderService creates a new mock instance.
NewMockMetadata creates a new mock instance.
NewMockNamespaceOptions creates a new mock instance.
NewMockOptions creates a new mock instance.
NewMockOverrideOptions creates a new mock instance.
NewMockQueryOptions creates a new mock instance.
NewMockService creates a new mock instance.
NewMockServiceID creates a new mock instance.
NewMockServiceInstance creates a new mock instance.
NewMockServiceReplication creates a new mock instance.
NewMockServices creates a new mock instance.
NewMockServiceSharding creates a new mock instance.
NewMockWatch creates a new mock instance.
NewNamespaceOptions constructs a new NamespaceOptions.
NewOptions creates an Option.
NewOverrideOptions constructs a new OverrideOptions.
NewQueryOptions creates new QueryOptions.
NewService creates a new Service.
NewServiceFromPlacement creates a Service from the placement and service ID.
NewServiceFromProto takes the data from a placement and a service id and returns the corresponding Service object.
NewServiceID creates new ServiceID.
NewServiceInstance creates a new ServiceInstance.
NewServiceInstanceFromPlacementInstance creates a new service instance from placement instance.
NewServiceInstanceFromProto creates a new service instance from proto.
NewServiceReplication creates a new ServiceReplication.
NewServices returns a client of Services.
NewServiceSharding creates a new ServiceSharding.
NewWatch creates a Watch.
# Structs
Configuration is the config for service options.
ElectionConfiguration is for configuring election timeouts and TTLs.
MockAdvertisement is a mock of Advertisement interface.
MockAdvertisementMockRecorder is the mock recorder for MockAdvertisement.
MockCampaignOptions is a mock of CampaignOptions interface.
MockCampaignOptionsMockRecorder is the mock recorder for MockCampaignOptions.
MockElectionOptions is a mock of ElectionOptions interface.
MockElectionOptionsMockRecorder is the mock recorder for MockElectionOptions.
MockHeartbeatService is a mock of HeartbeatService interface.
MockHeartbeatServiceMockRecorder is the mock recorder for MockHeartbeatService.
MockLeaderService is a mock of LeaderService interface.
MockLeaderServiceMockRecorder is the mock recorder for MockLeaderService.
MockMetadata is a mock of Metadata interface.
MockMetadataMockRecorder is the mock recorder for MockMetadata.
MockNamespaceOptions is a mock of NamespaceOptions interface.
MockNamespaceOptionsMockRecorder is the mock recorder for MockNamespaceOptions.
MockOptions is a mock of Options interface.
MockOptionsMockRecorder is the mock recorder for MockOptions.
MockOverrideOptions is a mock of OverrideOptions interface.
MockOverrideOptionsMockRecorder is the mock recorder for MockOverrideOptions.
MockQueryOptions is a mock of QueryOptions interface.
MockQueryOptionsMockRecorder is the mock recorder for MockQueryOptions.
MockService is a mock of Service interface.
MockServiceID is a mock of ServiceID interface.
MockServiceIDMockRecorder is the mock recorder for MockServiceID.
MockServiceInstance is a mock of ServiceInstance interface.
MockServiceInstanceMockRecorder is the mock recorder for MockServiceInstance.
MockServiceMockRecorder is the mock recorder for MockService.
MockServiceReplication is a mock of ServiceReplication interface.
MockServiceReplicationMockRecorder is the mock recorder for MockServiceReplication.
MockServices is a mock of Services interface.
MockServiceSharding is a mock of ServiceSharding interface.
MockServiceShardingMockRecorder is the mock recorder for MockServiceSharding.
MockServicesMockRecorder is the mock recorder for MockServices.
MockWatch is a mock of Watch interface.
MockWatchMockRecorder is the mock recorder for MockWatch.
NamespacesConfiguration configs the NamespaceOptions.
OverrideConfiguration configs the override options.
ServiceIDConfiguration is for configuring serviceID.
# Interfaces
Advertisement advertises the availability of a given instance of a service.
CampaignOptions provide the ability to override campaign defaults.
ElectionOptions configure specific election-scoped options.
HeartbeatService manages heartbeating instances.
LeaderService provides access to etcd-backed leader elections.
Metadata contains the metadata for a service.
NamespaceOptions are options to provide custom namespaces in service discovery service.
Options are options for the client of Services.
OverrideOptions configs the override for service discovery.
QueryOptions are options to service discovery queries.
Service describes the metadata and instances of a service.
ServiceID contains the fields required to id a service.
ServiceInstance is a single instance of a service.
ServiceReplication describes the replication of a service.
Services provides access to the service topology.
ServiceSharding describes the sharding of a service.
Watch is a watcher that issues notification when a service is updated.
# Type aliases
HeartbeatGen generates a heartbeat store for a given zone.
KVGen generates a kv store for a given zone.
LeaderGen generates a leader service instance for a given service.