2023-02-02 17:15:17 -08:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2022-01-05 14:38:38 -05:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-02-02 17:15:17 -08:00
|
|
|
|
2020-04-08 14:55:40 -04:00
|
|
|
package oplog
|
|
|
|
|
|
2022-01-05 14:38:38 -05:00
|
|
|
// ReplayableMessage defines an interface for messages that can be replayed from
|
|
|
|
|
// the oplog entries. we need to be able to replay into different table names.
|
2020-04-08 14:55:40 -04:00
|
|
|
type ReplayableMessage interface {
|
2022-01-05 14:38:38 -05:00
|
|
|
// TableName returns the table name of the resource
|
2020-04-08 14:55:40 -04:00
|
|
|
TableName() string
|
2022-01-05 14:38:38 -05:00
|
|
|
// SetTableName sets the table name of the resource
|
2020-04-08 14:55:40 -04:00
|
|
|
SetTableName(name string)
|
|
|
|
|
}
|