Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddGroupMember(ctx sdk.Context, groupMemberInfo types.GroupMemberInfo) error
- func (k Keeper) Bucket(goCtx context.Context, req *types.QueryBucketRequest) (*types.QueryBucketResponse, error)
- func (k Keeper) CheckSPAndSignature(ctx sdk.Context, spAddrs []string, sigData [][]byte, signature [][]byte) error
- func (k Keeper) CreateBucket(ctx sdk.Context, bucketInfo types.BucketInfo) error
- func (k Keeper) CreateGroup(ctx sdk.Context, groupInfo types.GroupInfo) error
- func (k Keeper) CreateObject(ctx sdk.Context, objectInfo types.ObjectInfo) error
- func (k Keeper) DeleteBucket(ctx sdk.Context, bucketName string) error
- func (k Keeper) DeleteGroup(ctx sdk.Context, ownerAddr string, groupName string) error
- func (k Keeper) DeleteObject(ctx sdk.Context, bucketName string, objectName string)
- func (k Keeper) GetBucket(ctx sdk.Context, bucketName string) (bucketInfo types.BucketInfo, found bool)
- func (k Keeper) GetBucketId(ctx sdk.Context) math.Uint
- func (k Keeper) GetGroup(ctx sdk.Context, ownerAddr string, groupName string) (groupInfo types.GroupInfo, found bool)
- func (k Keeper) GetGroupId(ctx sdk.Context) math.Uint
- func (k Keeper) GetObject(ctx sdk.Context, bucketName string, objectName string) (objectInfo types.ObjectInfo, found bool)
- func (k Keeper) GetObjectID(ctx sdk.Context) math.Uint
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) HasGroupMember(ctx sdk.Context, groupMemberKey []byte) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxPayloadSize(ctx sdk.Context) (res uint64)
- func (k Keeper) MaxSegmentSize(ctx sdk.Context) (res uint64)
- func (k Keeper) MustGetBucket(ctx sdk.Context, bucketName string) (bucketInfo types.BucketInfo, found bool)
- func (k Keeper) Object(goCtx context.Context, req *types.QueryObjectRequest) (*types.QueryObjectResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RedundantDataChunkNum(ctx sdk.Context) (res uint32)
- func (k Keeper) RedundantParityChunkNum(ctx sdk.Context) (res uint32)
- func (k Keeper) RemoveGroupMember(ctx sdk.Context, groupId math.Uint, member string) error
- func (k Keeper) SetObject(ctx sdk.Context, objectInfo types.ObjectInfo)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type Sequence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, spKeeper types.SpKeeper, ) *Keeper
func (Keeper) AddGroupMember ¶
func (Keeper) Bucket ¶
func (k Keeper) Bucket(goCtx context.Context, req *types.QueryBucketRequest) (*types.QueryBucketResponse, error)
func (Keeper) CheckSPAndSignature ¶
func (Keeper) CreateBucket ¶
func (Keeper) CreateGroup ¶
func (Keeper) CreateObject ¶
func (Keeper) DeleteGroup ¶
func (Keeper) DeleteObject ¶
func (Keeper) HasGroupMember ¶
func (Keeper) MustGetBucket ¶
func (Keeper) Object ¶
func (k Keeper) Object(goCtx context.Context, req *types.QueryObjectRequest) (*types.QueryObjectResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RedundantDataChunkNum ¶
func (Keeper) RedundantParityChunkNum ¶
func (Keeper) RemoveGroupMember ¶
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
sequence is a persistent unique key generator based on a counter.
func NewSequence ¶
func (Sequence) InitVal ¶
InitVal sets the start value for the sequence. It must be called only once on an empty DB. Otherwise an error is returned when the key exists. The given start value is stored as current value.
It is recommended to call this method only for a sequence start value other than `1` as the method consumes unnecessary gas otherwise. A scenario would be an import from genesis.
Click to show internal directories.
Click to hide internal directories.