# Functions
MarshalTime converts t to nanoseconds since epoch.
NewClient returns a new *Client.
NewConfig builds a new configuration with default values.
No description provided by the author
No description provided by the author
NewRetentionPolicyInfo returns a new instance of RetentionPolicyInfo with defaults set.
NewShardOwner sets the owner of the provided shard to the data node that currently owns the fewest number of shards.
No description provided by the author
UnmarshalTime converts nanoseconds since epoch to time.
# Constants
DefaultLeaseDuration is the default duration for leases.
DefaultLoggingEnabled determines if log messages are printed for the meta service.
DefaultRetentionPolicyDuration is the default value of RetentionPolicyInfo.Duration.
DefaultRetentionPolicyReplicaN is the default value of RetentionPolicyInfo.ReplicaN.
MinRetentionPolicyDuration represents the minimum duration for a policy.
SaltBytes is the number of bytes used for salts.
# Variables
ErrAuthenticate is returned when authentication fails.
ErrContinuousQueryExists is returned when creating an already existing continuous query.
ErrContinuousQueryNotFound is returned when removing a continuous query that doesn't exist.
ErrDatabaseExists is returned when creating an already existing database.
ErrDatabaseNameRequired is returned when creating a database without a name.
ErrDatabaseNotExists is returned when operating on a not existing database.
ErrNodeExists is returned when creating an already existing node.
ErrNodeIDRequired is returned when using a zero node id.
ErrNodeNotFound is returned when mutating a node that doesn't exist.
ErrNodesRequired is returned when at least one node is required for an operation.
ErrNodeUnableToDropFinalNode is returned if the node being dropped is the last node in the cluster.
ErrReplicationFactorTooLow is returned when the replication factor is not in an acceptable range.
ErrRetentionPolicyConflict is returned when creating a retention policy conflicts with an existing policy.
ErrRetentionPolicyDefault is returned when attempting a prohibited operation on a default retention policy.
ErrRetentionPolicyDurationTooLow is returned when updating a retention policy that has a duration lower than the allowed minimum.
ErrRetentionPolicyExists is returned when creating an already existing policy.
ErrRetentionPolicyNameExists is returned when renaming a policy to the same name as another existing policy.
ErrRetentionPolicyNameRequired is returned when creating a policy without a name.
ErrService is returned when the meta service returns an error.
ErrServiceUnavailable is returned when the meta service is unavailable.
ErrShardGroupExists is returned when creating an already existing shard group.
ErrShardGroupNotFound is returned when mutating a shard group that doesn't exist.
ErrShardNotReplicated is returned if the node requested to be dropped has the last copy of a shard present and the force keyword was not used.
ErrStoreClosed is returned when closing an already closed store.
ErrStoreOpen is returned when opening an already open store.
ErrSubscriptionExists is returned when creating an already existing subscription.
ErrSubscriptionNotFound is returned when removing a subscription that doesn't exist.
ErrTooManyPeers is returned when more than 3 peers are used.
ErrUserExists is returned when creating an already existing user.
ErrUsernameRequired is returned when creating a user without a username.
ErrUserNotFound is returned when mutating a user that doesn't exist.
# Structs
Client is used to execute commands on and read data from a meta service cluster.
Config represents the meta configuration.
ContinuousQueryInfo represents metadata about a continuous query.
Data represents the top level collection of all metadata.
DatabaseInfo represents information about a database in the system.
ErrAuthorize represents an authorization error.
No description provided by the author
No description provided by the author
NodeInfo represents information about a single node in the cluster.
No description provided by the author
RetentionPolicyInfo represents metadata about a retention policy.
RetentionPolicyUpdate represents retention policy fields to be updated.
ShardGroupInfo represents metadata about a shard group.
ShardInfo represents metadata about a shard.
ShardOwner represents a node that owns a shard.
SubscriptionInfo hold the subscription information.
UserInfo represents metadata about a user in the system.
No description provided by the author
# Type aliases
NodeInfos is a slice of NodeInfo used for sorting.
ShardGroupInfos implements sort.Interface on []ShardGroupInfo, based on the StartTime field.