Documentation ¶
Index ¶
- func NewNamingMessage(action string) (*transport.Message, error)
- type ActivityId
- type ApplicationQueryResult
- type ConsistencyUnitId
- type GatewayDescription
- type GenerationNumber
- type NamingClient
- type NotificationClientConnectionReplyBody
- type NotificationClientConnectionRequestBody
- type ProtocolVersion
- type RegisterServiceNotificationFilterRequestBody
- type ServiceNotification
- type ServiceNotificationFilter
- type ServiceNotificationFilterFlags
- type ServiceNotificationPageId
- type ServiceReplicaSet
- type ServiceTableEntry
- type ServiceTableEntryNotification
- type VersionRange
- type VersionRangeCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActivityId ¶
type ActivityId struct { Id serialization.GUID Index uint64 }
func (ActivityId) IsEmpty ¶
func (a ActivityId) IsEmpty() bool
func (ActivityId) String ¶
func (a ActivityId) String() string
type ApplicationQueryResult ¶
type ConsistencyUnitId ¶
type ConsistencyUnitId struct {
GUID serialization.GUID
}
type GatewayDescription ¶
type GatewayDescription struct { Address string NodeInstance federation.NodeInstance NodeName string }
type GenerationNumber ¶
type GenerationNumber struct { Generation int64 Owner federation.NodeID }
type NamingClient ¶
type NamingClient struct { OnServiceNotification func(notification *ServiceNotification) // contains filtered or unexported fields }
func NewNamingClient ¶
func NewNamingClient(transport *transport.Client) (*NamingClient, error)
func (*NamingClient) GetApplicationList ¶
func (n *NamingClient) GetApplicationList(ctx context.Context, filter string) ([]ApplicationQueryResult, error)
func (*NamingClient) Ping ¶
func (n *NamingClient) Ping(ctx context.Context) (*GatewayDescription, error)
func (*NamingClient) RegisterFilter ¶
type NotificationClientConnectionReplyBody ¶
type NotificationClientConnectionReplyBody struct { Generation GenerationNumber LastDeletedEmptyPartitionVersion int64 Gateway GatewayDescription }
type NotificationClientConnectionRequestBody ¶
type NotificationClientConnectionRequestBody struct { ClientId string Generation GenerationNumber ClientVersions *VersionRangeCollection Filters []*ServiceNotificationFilter }
type ProtocolVersion ¶
type RegisterServiceNotificationFilterRequestBody ¶
type RegisterServiceNotificationFilterRequestBody struct { ClientId string Filter *ServiceNotificationFilter }
type ServiceNotification ¶
type ServiceNotification struct { NotificationPageId ServiceNotificationPageId Generation GenerationNumber Versions *VersionRangeCollection Partitions []*ServiceTableEntryNotification }
type ServiceNotificationFilter ¶
type ServiceNotificationFilter struct { FilterId uint64 Name common.Uri Flags ServiceNotificationFilterFlags }
type ServiceNotificationFilterFlags ¶
type ServiceNotificationFilterFlags struct {
Flags uint32
}
type ServiceNotificationPageId ¶
type ServiceNotificationPageId struct { NotificationId transport.ActivityId PageIndex uint64 }
type ServiceReplicaSet ¶
type ServiceTableEntry ¶
type ServiceTableEntry struct { ConsistencyUnitId ConsistencyUnitId ServiceName string ServiceReplicaSet ServiceReplicaSet IsFound bool }
type ServiceTableEntryNotification ¶
type ServiceTableEntryNotification struct { ServiceTable *ServiceTableEntry MatchedPrimaryOnly bool }
type VersionRange ¶
type VersionRangeCollection ¶
type VersionRangeCollection struct {
VersionRanges []VersionRange
}
Click to show internal directories.
Click to hide internal directories.