Documentation ¶
Index ¶
- func GetMeasureIDBytes(id uint64) []byte
- func GetMeasureIDFromBytes(bz []byte) uint64
- func GetTimeseriesIDBytes(id uint64) []byte
- func GetTimeseriesIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendMeasure(ctx sdk.Context, measure types.Measure) uint64
- func (k Keeper) AppendTimeseries(ctx sdk.Context, timeseries types.Timeseries) uint64
- func (k Keeper) GetAllMeasure(ctx sdk.Context) (list []types.Measure)
- func (k Keeper) GetAllTimeseries(ctx sdk.Context) (list []types.Timeseries)
- func (k Keeper) GetMeasure(ctx sdk.Context, id uint64) (val types.Measure, found bool)
- func (k Keeper) GetMeasureCount(ctx sdk.Context) uint64
- func (k Keeper) GetTimeseries(ctx sdk.Context, id uint64) (val types.Timeseries, found bool)
- func (k Keeper) GetTimeseriesCount(ctx sdk.Context) uint64
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Measure(c context.Context, req *types.QueryGetMeasureRequest) (*types.QueryGetMeasureResponse, error)
- func (k Keeper) MeasureAll(c context.Context, req *types.QueryAllMeasureRequest) (*types.QueryAllMeasureResponse, error)
- func (k Keeper) RemoveMeasure(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveTimeseries(ctx sdk.Context, id uint64)
- func (k Keeper) SetMeasure(ctx sdk.Context, measure types.Measure)
- func (k Keeper) SetMeasureCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetTimeseries(ctx sdk.Context, timeseries types.Timeseries)
- func (k Keeper) SetTimeseriesCount(ctx sdk.Context, count uint64)
- func (k Keeper) Timeseries(c context.Context, req *types.QueryGetTimeseriesRequest) (*types.QueryGetTimeseriesResponse, error)
- func (k Keeper) TimeseriesAll(c context.Context, req *types.QueryAllTimeseriesRequest) (*types.QueryAllTimeseriesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMeasureIDBytes ¶
GetMeasureIDBytes returns the byte representation of the ID
func GetMeasureIDFromBytes ¶
GetMeasureIDFromBytes returns ID in uint64 format from a byte array
func GetTimeseriesIDBytes ¶
GetTimeseriesIDBytes returns the byte representation of the ID
func GetTimeseriesIDFromBytes ¶
GetTimeseriesIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AppendMeasure ¶
AppendMeasure appends a measure in the store with a new id and update the count
func (Keeper) AppendTimeseries ¶
AppendTimeseries appends a timeseries in the store with a new id and update the count
func (Keeper) GetAllMeasure ¶
GetAllMeasure returns all measure
func (Keeper) GetAllTimeseries ¶
func (k Keeper) GetAllTimeseries(ctx sdk.Context) (list []types.Timeseries)
GetAllTimeseries returns all timeseries
func (Keeper) GetMeasure ¶
GetMeasure returns a measure from its id
func (Keeper) GetMeasureCount ¶
GetMeasureCount get the total number of measure
func (Keeper) GetTimeseries ¶
GetTimeseries returns a timeseries from its id
func (Keeper) GetTimeseriesCount ¶
GetTimeseriesCount get the total number of timeseries
func (Keeper) Measure ¶
func (k Keeper) Measure(c context.Context, req *types.QueryGetMeasureRequest) (*types.QueryGetMeasureResponse, error)
func (Keeper) MeasureAll ¶
func (k Keeper) MeasureAll(c context.Context, req *types.QueryAllMeasureRequest) (*types.QueryAllMeasureResponse, error)
func (Keeper) RemoveMeasure ¶
RemoveMeasure removes a measure from the store
func (Keeper) RemoveTimeseries ¶
RemoveTimeseries removes a timeseries from the store
func (Keeper) SetMeasure ¶
SetMeasure set a specific measure in the store
func (Keeper) SetMeasureCount ¶
SetMeasureCount set the total number of measure
func (Keeper) SetTimeseries ¶
func (k Keeper) SetTimeseries(ctx sdk.Context, timeseries types.Timeseries)
SetTimeseries set a specific timeseries in the store
func (Keeper) SetTimeseriesCount ¶
SetTimeseriesCount set the total number of timeseries
func (Keeper) Timeseries ¶
func (k Keeper) Timeseries(c context.Context, req *types.QueryGetTimeseriesRequest) (*types.QueryGetTimeseriesResponse, error)
func (Keeper) TimeseriesAll ¶
func (k Keeper) TimeseriesAll(c context.Context, req *types.QueryAllTimeseriesRequest) (*types.QueryAllTimeseriesResponse, error)