Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConsumerHasUnexpectedConfig = errors.New("consumer has unexpected config")
View Source
var ErrStreamHasUnexpectedConfig = errors.New("stream has unexpected config")
Functions ¶
This section is empty.
Types ¶
type MigrationInfo ¶
type MigrationInfo struct { ID string `json:"id"` Policy Policy `json:"policy"` Streams []nats.StreamConfig `json:"streams"` Consumers map[string][]nats.ConsumerConfig `json:"consumers"` }
func (MigrationInfo) MigrationID ¶
func (i MigrationInfo) MigrationID() string
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func NewMigrator(connection *connection.NatsConnection, options ...Option) (*Migrator, error)
func (*Migrator) IsMigrated ¶
Click to show internal directories.
Click to hide internal directories.