types

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCodespace sdk.CodespaceType = ModuleName

	CodeKeyDoesNotExist  sdk.CodeType = 101
	CodeKeyAlreadyExists sdk.CodeType = 102
)

DefaultCodespace is the Module Name

View Source
const (
	// module name
	ModuleName = "crud"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName
)
View Source
const RouterKey = ModuleName

Variables

View Source
var ModuleCdc = codec.New()

Functions

func ErrKeyAlreadyExists

func ErrKeyAlreadyExists(codespace sdk.CodespaceType) sdk.Error

ErrNameDoesNotExist is the error for name not existing

func ErrKeyDoesNotExist

func ErrKeyDoesNotExist(codespace sdk.CodespaceType) sdk.Error

ErrNameDoesNotExist is the error for name not existing

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Types

type BLZValue

type BLZValue struct {
	Value string         `json:"value"`
	Owner sdk.AccAddress `json:"owner"`
}

func NewBLZValue

func NewBLZValue() BLZValue

func (BLZValue) String

func (kv BLZValue) String() string

func (BLZValue) Unmarshal

func (kv BLZValue) Unmarshal(b []byte) BLZValue

type MsgBLZCreate

type MsgBLZCreate struct {
	UUID  string
	Key   string
	Value string
	Owner sdk.AccAddress
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Create

func NewMsgBLZCreate

func NewMsgBLZCreate(UUID string, key string, value string, owner sdk.AccAddress) MsgBLZCreate

func (MsgBLZCreate) GetSignBytes

func (msg MsgBLZCreate) GetSignBytes() []byte

func (MsgBLZCreate) GetSigners

func (msg MsgBLZCreate) GetSigners() []sdk.AccAddress

func (MsgBLZCreate) Route

func (msg MsgBLZCreate) Route() string

func (MsgBLZCreate) Type

func (msg MsgBLZCreate) Type() string

func (MsgBLZCreate) ValidateBasic

func (msg MsgBLZCreate) ValidateBasic() sdk.Error

type MsgBLZDelete

type MsgBLZDelete struct {
	UUID  string
	Key   string
	Owner sdk.AccAddress
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Delete

func NewMsgBLZDelete

func NewMsgBLZDelete(UUID string, key string, owner sdk.AccAddress) MsgBLZDelete

func (MsgBLZDelete) GetSignBytes

func (msg MsgBLZDelete) GetSignBytes() []byte

func (MsgBLZDelete) GetSigners

func (msg MsgBLZDelete) GetSigners() []sdk.AccAddress

func (MsgBLZDelete) Route

func (msg MsgBLZDelete) Route() string

func (MsgBLZDelete) Type

func (msg MsgBLZDelete) Type() string

func (MsgBLZDelete) ValidateBasic

func (msg MsgBLZDelete) ValidateBasic() sdk.Error

type MsgBLZHas

type MsgBLZHas struct {
	UUID  string
	Key   string
	Owner sdk.AccAddress
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Has

func NewMsgBLZHas

func NewMsgBLZHas(UUID string, key string, owner sdk.AccAddress) MsgBLZHas

func (MsgBLZHas) GetSignBytes

func (msg MsgBLZHas) GetSignBytes() []byte

func (MsgBLZHas) GetSigners

func (msg MsgBLZHas) GetSigners() []sdk.AccAddress

func (MsgBLZHas) Route

func (msg MsgBLZHas) Route() string

func (MsgBLZHas) Type

func (msg MsgBLZHas) Type() string

func (MsgBLZHas) ValidateBasic

func (msg MsgBLZHas) ValidateBasic() sdk.Error

type MsgBLZKeys

type MsgBLZKeys struct {
	UUID  string
	Owner sdk.AccAddress
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Keys

func NewMsgBLZKeys

func NewMsgBLZKeys(UUID string, owner sdk.AccAddress) MsgBLZKeys

func (MsgBLZKeys) GetSignBytes

func (msg MsgBLZKeys) GetSignBytes() []byte

func (MsgBLZKeys) GetSigners

func (msg MsgBLZKeys) GetSigners() []sdk.AccAddress

func (MsgBLZKeys) Route

func (msg MsgBLZKeys) Route() string

func (MsgBLZKeys) Type

func (msg MsgBLZKeys) Type() string

func (MsgBLZKeys) ValidateBasic

func (msg MsgBLZKeys) ValidateBasic() sdk.Error

type MsgBLZRead

type MsgBLZRead struct {
	UUID  string
	Key   string
	Owner sdk.AccAddress
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Read

func NewMsgBLZRead

func NewMsgBLZRead(UUID string, key string, owner sdk.AccAddress) MsgBLZRead

func (MsgBLZRead) GetSignBytes

func (msg MsgBLZRead) GetSignBytes() []byte

func (MsgBLZRead) GetSigners

func (msg MsgBLZRead) GetSigners() []sdk.AccAddress

func (MsgBLZRead) Route

func (msg MsgBLZRead) Route() string

func (MsgBLZRead) Type

func (msg MsgBLZRead) Type() string

func (MsgBLZRead) ValidateBasic

func (msg MsgBLZRead) ValidateBasic() sdk.Error

type MsgBLZUpdate

type MsgBLZUpdate struct {
	UUID  string
	Key   string
	Value string
	Owner sdk.AccAddress
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Update

func NewMsgBLZUpdate

func NewMsgBLZUpdate(UUID string, key string, value string, owner sdk.AccAddress) MsgBLZUpdate

func (MsgBLZUpdate) GetSignBytes

func (msg MsgBLZUpdate) GetSignBytes() []byte

func (MsgBLZUpdate) GetSigners

func (msg MsgBLZUpdate) GetSigners() []sdk.AccAddress

func (MsgBLZUpdate) Route

func (msg MsgBLZUpdate) Route() string

func (MsgBLZUpdate) Type

func (msg MsgBLZUpdate) Type() string

func (MsgBLZUpdate) ValidateBasic

func (msg MsgBLZUpdate) ValidateBasic() sdk.Error

type QueryResultHas

type QueryResultHas struct {
	UUID string `json:"uuid"`
	Key  string `json:"key"`
	Has  bool   `json:"has"`
}

func (QueryResultHas) String

func (r QueryResultHas) String() string

for fmt.Stringer

type QueryResultKeys

type QueryResultKeys struct {
	UUID string   `json:"uuid"`
	Keys []string `json:"keys"`
}

func (QueryResultKeys) String

func (r QueryResultKeys) String() string

for fmt.Stringer

type QueryResultRead

type QueryResultRead struct {
	UUID  string `json:"uuid"`
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (QueryResultRead) String

func (r QueryResultRead) String() string

for fmt.Stringer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL