Documentation ¶
Index ¶
- func HasEditAccess(file types.Files, user string) (bool, error)
- func HasViewingAccess(file types.Files, user string) (bool, error)
- func IsOwner(file types.Files, user string) bool
- func MakeEditorAddress(trackingNumber string, user string) string
- func MakeOwnerAddress(merklePath string, user string) string
- func MakeViewerAddress(trackingNumber string, user string) string
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AllFiles(c context.Context, req *types.QueryAllFiles) (*types.QueryAllFilesResponse, error)
- func (k Keeper) AllPubKeys(c context.Context, req *types.QueryAllPubKeys) (*types.QueryAllPubKeysResponse, error)
- func (k Keeper) File(c context.Context, req *types.QueryFile) (*types.QueryFileResponse, error)
- func (k Keeper) GetAllFiles(ctx sdk.Context) (list []types.Files)
- func (k Keeper) GetAllPubkey(ctx sdk.Context) (list []types.Pubkey)
- func (k Keeper) GetFiles(ctx sdk.Context, address string, ownerAddress string) (val types.Files, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetPubkey(ctx sdk.Context, address string) (val types.Pubkey, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MakeRootFolder(ctx sdk.Context, creator string, viewers string, editors string, ...)
- func (k Keeper) Params(c context.Context, req *types.QueryParams) (*types.QueryParamsResponse, error)
- func (k Keeper) PubKey(c context.Context, req *types.QueryPubKey) (*types.QueryPubKeyResponse, error)
- func (k Keeper) RemoveFiles(ctx sdk.Context, address string, ownerAddress string)
- func (k Keeper) RemovePubkey(ctx sdk.Context, address string)
- func (k Keeper) SetFiles(ctx sdk.Context, files types.Files)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPubkey(ctx sdk.Context, pubkey types.Pubkey)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeEditorAddress ¶
func MakeOwnerAddress ¶
MakeOwnerAddress Owner address is whoever owns this file/folder
func MakeViewerAddress ¶
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 sdk.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) AllFiles ¶
func (k Keeper) AllFiles(c context.Context, req *types.QueryAllFiles) (*types.QueryAllFilesResponse, error)
To remove
func (Keeper) AllPubKeys ¶
func (k Keeper) AllPubKeys(c context.Context, req *types.QueryAllPubKeys) (*types.QueryAllPubKeysResponse, error)
func (Keeper) GetAllFiles ¶
GetAllFiles returns all files
func (Keeper) GetAllPubkey ¶
GetAllPubkey returns all pubkey
func (Keeper) GetFiles ¶
func (k Keeper) GetFiles( ctx sdk.Context, address string, ownerAddress string, ) (val types.Files, found bool)
GetFiles returns a files from its index
func (Keeper) MakeRootFolder ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParams) (*types.QueryParamsResponse, error)
func (Keeper) PubKey ¶
func (k Keeper) PubKey(c context.Context, req *types.QueryPubKey) (*types.QueryPubKeyResponse, error)
func (Keeper) RemoveFiles ¶
RemoveFiles removes a files from the store
func (Keeper) RemovePubkey ¶
RemovePubkey removes a pubkey from the store
Source Files ¶
- access.go
- files.go
- grpc_query.go
- grpc_query_files.go
- grpc_query_params.go
- grpc_query_pubkey.go
- keeper.go
- migrations.go
- msg_server.go
- msg_server_add_editors.go
- msg_server_add_viewers.go
- msg_server_change_owner.go
- msg_server_delete_file.go
- msg_server_make_root.go
- msg_server_post_file.go
- msg_server_postkey.go
- msg_server_remove_editors.go
- msg_server_remove_viewers.go
- msg_server_reset_editors.go
- msg_server_reset_viewers.go
- params.go
- pubkey.go
Click to show internal directories.
Click to hide internal directories.