Add a useful comment
This commit is contained in:
parent
13837fde04
commit
3765b4240b
|
@ -24,6 +24,7 @@ type LogState struct {
|
||||||
LastSuccess time.Time `json:"last_success"`
|
LastSuccess time.Time `json:"last_success"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Methods are safe to call concurrently.
|
||||||
type StateProvider interface {
|
type StateProvider interface {
|
||||||
// Initialize the state. Called before any other method in this interface.
|
// Initialize the state. Called before any other method in this interface.
|
||||||
// Idempotent: returns nil if the state is already initialized.
|
// Idempotent: returns nil if the state is already initialized.
|
||||||
|
|
Loading…
Reference in New Issue