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) Decrypt(goCtx context.Context, req *types.QueryDecryptRequest) (*types.QueryDecryptResponse, error)
- func (k Keeper) Encrypt(goCtx context.Context, req *types.QueryEncryptRequest) (*types.QueryEncryptResponse, error)
- func (k Keeper) Files(c context.Context, req *types.QueryFileRequest) (*types.QueryFileResponse, error)
- func (k Keeper) FilesAll(c context.Context, req *types.QueryAllFilesRequest) (*types.QueryAllFilesResponse, 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) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Pubkey(c context.Context, req *types.QueryPubkeyRequest) (*types.QueryPubkeyResponse, error)
- func (k Keeper) PubkeyAll(c context.Context, req *types.QueryAllPubkeysRequest) (*types.QueryAllPubkeysResponse, 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 ¶
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) Decrypt ¶
func (k Keeper) Decrypt(goCtx context.Context, req *types.QueryDecryptRequest) (*types.QueryDecryptResponse, error)
func (Keeper) Encrypt ¶
func (k Keeper) Encrypt(goCtx context.Context, req *types.QueryEncryptRequest) (*types.QueryEncryptResponse, error)
func (Keeper) Files ¶
func (k Keeper) Files(c context.Context, req *types.QueryFileRequest) (*types.QueryFileResponse, error)
func (Keeper) FilesAll ¶
func (k Keeper) FilesAll(c context.Context, req *types.QueryAllFilesRequest) (*types.QueryAllFilesResponse, error)
To remove
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) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Pubkey ¶
func (k Keeper) Pubkey(c context.Context, req *types.QueryPubkeyRequest) (*types.QueryPubkeyResponse, error)
func (Keeper) PubkeyAll ¶
func (k Keeper) PubkeyAll(c context.Context, req *types.QueryAllPubkeysRequest) (*types.QueryAllPubkeysResponse, 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_decrypt.go
- grpc_query_encrypt.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.