0g-chain/x/circuit-breaker/keeper/keeper.go

18 lines
342 B
Go
Raw Normal View History

2020-03-04 14:35:16 +00:00
package circuit-breaker
// Keeper stores routes that have been "broken"
type Keeper struct {
}
func (k Keeper) GetRoutes(ctx sdk.Context) []string {
// TODO
}
func (k Keeper) SetRoutes(ctx sdk.Context, routes []string) {
// TODO
}
func (k Keeper) HandleCircuitBreakerProposal(ctx sdk.Context, c Content) {
k.SetRoutes(ctx, c.Routes)
}