Documentation
¶
Index ¶
- Variables
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k *Keeper) Create(ctx sdk.Context, msg types.MsgCreate) (*executionpb.Execution, error)
- func (k *Keeper) Get(ctx sdk.Context, hash hash.Hash) (*executionpb.Execution, error)
- func (k *Keeper) Import(ctx sdk.Context, execs []*executionpb.Execution) error
- func (k *Keeper) List(ctx sdk.Context, filter types.ListFilter) ([]*executionpb.Execution, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) Update(ctx sdk.Context, msg types.MsgUpdate) (*executionpb.Execution, error)
- type Metric
Constants ¶
This section is empty.
Variables ¶
View Source
var M = NewMetric()
M is global metric variable.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for execution clients.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the execution store
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, key sdk.StoreKey, serviceKeeper types.ServiceKeeper, instanceKeeper types.InstanceKeeper, runnerKeeper types.RunnerKeeper, processKeeper types.ProcessKeeper, creditKeeper types.CreditKeeper, ) Keeper
NewKeeper creates a execution keeper
func (*Keeper) Create ¶
Create creates a new execution with proposed status. The execution reaches consensus only when more than 2/3 of emitters proposed the same execution. TODO: we should split the message and keeper function of execution create from user and for process.
func (*Keeper) List ¶
func (k *Keeper) List(ctx sdk.Context, filter types.ListFilter) ([]*executionpb.Execution, error)
List returns all executions.
Click to show internal directories.
Click to hide internal directories.