types

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: GPL-3.0 Imports: 32 Imported by: 2

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "bucket"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_bucket"
)
View Source
const (
	TypeMsgCreateWhichIs = "create_which_is"
	TypeMsgUpdateWhichIs = "update_which_is"
	TypeMsgDeleteWhichIs = "delete_which_is"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgCreateBucket = "create_bucket"
View Source
const TypeMsgDeactivateBucket = "delete_bucket"
View Source
const TypeMsgUpdateBucket = "update_bucket"
View Source
const (
	// WhichIsKeyPrefix is the prefix to retrieve all WhichIs
	WhichIsKeyPrefix = "WhichIs/value/"
)

Variables

View Source
var (
	ErrInvalidLengthBucket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBucket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBucket = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample         = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrInactiveBucket = sdkerrors.Register(ModuleName, 1104, "Requested bucket has been deactivated")
)

x/bucket module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWhichIs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWhichIs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWhichIs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var BucketEventType_name = map[int32]string{
	0: "BUCKET_EVENT_TYPE_UNSPECIFIED",
	1: "BUCKET_EVENT_TYPE_GET",
	2: "BUCKET_EVENT_TYPE_SET",
	3: "BUCKET_EVENT_TYPE_DELETE",
}
View Source
var BucketEventType_value = map[string]int32{
	"BUCKET_EVENT_TYPE_UNSPECIFIED": 0,
	"BUCKET_EVENT_TYPE_GET":         1,
	"BUCKET_EVENT_TYPE_SET":         2,
	"BUCKET_EVENT_TYPE_DELETE":      3,
}
View Source
var BucketType_name = map[int32]string{
	0: "BUCKET_TYPE_UNSPECIFIED",
	1: "BUCKET_TYPE_APP",
	2: "BUCKET_TYPE_USER",
}
View Source
var BucketType_value = map[string]int32{
	"BUCKET_TYPE_UNSPECIFIED": 0,
	"BUCKET_TYPE_APP":         1,
	"BUCKET_TYPE_USER":        2,
}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func NewBucketDocToBuf added in v0.0.11

func NewBucketDocToBuf(doc *BucketDoc) *bt.BucketDoc

func NewWhichIsToBuf added in v0.0.11

func NewWhichIsToBuf(cd *WhichIs) *bt.WhichIs

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func WhichIsKey

func WhichIsKey(
	did string,
) []byte

WhichIsKey returns the store key to retrieve a WhichIs from the did field

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BucketDoc added in v0.0.8

type BucketDoc struct {
	// Label is human-readable name of the bucket.
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// Description is a human-readable description of the bucket.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Type is the kind of bucket for either App specific or User specific data.
	Type BucketType `protobuf:"varint,3,opt,name=type,proto3,enum=sonrio.sonr.bucket.BucketType" json:"type,omitempty"`
	// Did is the identifier of the bucket.
	Did string `protobuf:"bytes,4,opt,name=did,proto3" json:"did,omitempty"`
	// Objects are stored in a tree structure.
	ObjectDids []string `protobuf:"bytes,5,rep,name=object_dids,json=objectDids,proto3" json:"object_dids,omitempty"`
}

Bucket is a collection of objects.

func NewBucketDocFromBuf added in v0.0.11

func NewBucketDocFromBuf(doc *bt.BucketDoc) *BucketDoc

func (*BucketDoc) AddObjects added in v0.0.9

func (o *BucketDoc) AddObjects(l ...string)

AddObjects takes a list of fields and adds it to BucketDoc

func (*BucketDoc) Descriptor added in v0.0.8

func (*BucketDoc) Descriptor() ([]byte, []int)

func (*BucketDoc) GetDescription added in v0.0.8

func (m *BucketDoc) GetDescription() string

func (*BucketDoc) GetDid added in v0.0.8

func (m *BucketDoc) GetDid() string

func (*BucketDoc) GetLabel added in v0.0.8

func (m *BucketDoc) GetLabel() string

func (*BucketDoc) GetObjectDids added in v0.0.8

func (m *BucketDoc) GetObjectDids() []string

func (*BucketDoc) GetType added in v0.0.8

func (m *BucketDoc) GetType() BucketType

func (*BucketDoc) Marshal added in v0.0.8

func (m *BucketDoc) Marshal() (dAtA []byte, err error)

func (*BucketDoc) MarshalTo added in v0.0.8

func (m *BucketDoc) MarshalTo(dAtA []byte) (int, error)

func (*BucketDoc) MarshalToSizedBuffer added in v0.0.8

func (m *BucketDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BucketDoc) ProtoMessage added in v0.0.8

func (*BucketDoc) ProtoMessage()

func (*BucketDoc) RemoveObjects added in v0.0.9

func (o *BucketDoc) RemoveObjects(l ...string)

RemoveObjects takes a list of Object Dids and removes the matching label from the BucketDoc

func (*BucketDoc) Reset added in v0.0.8

func (m *BucketDoc) Reset()

func (*BucketDoc) Size added in v0.0.8

func (m *BucketDoc) Size() (n int)

func (*BucketDoc) String added in v0.0.8

func (m *BucketDoc) String() string

func (*BucketDoc) Unmarshal added in v0.0.8

func (m *BucketDoc) Unmarshal(dAtA []byte) error

func (*BucketDoc) XXX_DiscardUnknown added in v0.0.8

func (m *BucketDoc) XXX_DiscardUnknown()

func (*BucketDoc) XXX_Marshal added in v0.0.8

func (m *BucketDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BucketDoc) XXX_Merge added in v0.0.8

func (m *BucketDoc) XXX_Merge(src proto.Message)

func (*BucketDoc) XXX_Size added in v0.0.8

func (m *BucketDoc) XXX_Size() int

func (*BucketDoc) XXX_Unmarshal added in v0.0.8

func (m *BucketDoc) XXX_Unmarshal(b []byte) error

type BucketEvent

type BucketEvent struct {
	// Owner is the peer that originated the event.
	PeerDid string `protobuf:"bytes,1,opt,name=peer_did,json=peerDid,proto3" json:"peer_did,omitempty"`
	// Type is the type of event being performed on a Bucket.
	Type BucketEventType `protobuf:"varint,2,opt,name=type,proto3,enum=sonrio.sonr.bucket.BucketEventType" json:"type,omitempty"`
	// Object is the entry being modified in the Bucket.
	Object *types.ObjectDoc `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	// Metadata is the metadata associated with the event.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
}

BucketEvent is the base event type for all Bucket events.

func (*BucketEvent) Descriptor

func (*BucketEvent) Descriptor() ([]byte, []int)

func (*BucketEvent) GetMetadata

func (m *BucketEvent) GetMetadata() map[string]string

func (*BucketEvent) GetObject

func (m *BucketEvent) GetObject() *types.ObjectDoc

func (*BucketEvent) GetPeerDid added in v0.0.8

func (m *BucketEvent) GetPeerDid() string

func (*BucketEvent) GetType

func (m *BucketEvent) GetType() BucketEventType

func (*BucketEvent) Marshal

func (m *BucketEvent) Marshal() (dAtA []byte, err error)

func (*BucketEvent) MarshalTo

func (m *BucketEvent) MarshalTo(dAtA []byte) (int, error)

func (*BucketEvent) MarshalToSizedBuffer

func (m *BucketEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BucketEvent) ProtoMessage

func (*BucketEvent) ProtoMessage()

func (*BucketEvent) Reset

func (m *BucketEvent) Reset()

func (*BucketEvent) Size

func (m *BucketEvent) Size() (n int)

func (*BucketEvent) String

func (m *BucketEvent) String() string

func (*BucketEvent) Unmarshal

func (m *BucketEvent) Unmarshal(dAtA []byte) error

func (*BucketEvent) XXX_DiscardUnknown

func (m *BucketEvent) XXX_DiscardUnknown()

func (*BucketEvent) XXX_Marshal

func (m *BucketEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BucketEvent) XXX_Merge

func (m *BucketEvent) XXX_Merge(src proto.Message)

func (*BucketEvent) XXX_Size

func (m *BucketEvent) XXX_Size() int

func (*BucketEvent) XXX_Unmarshal

func (m *BucketEvent) XXX_Unmarshal(b []byte) error

type BucketEventType

type BucketEventType int32

EventType is the type of event being performed on a Bucket.

const (
	// EventTypeUnspecified is the default value.
	BucketEventType_BUCKET_EVENT_TYPE_UNSPECIFIED BucketEventType = 0
	// EventTypeGet is a get event being performed on a Bucket record.
	BucketEventType_BUCKET_EVENT_TYPE_GET BucketEventType = 1
	// EventTypeSet is a set event on the Bucket store.
	BucketEventType_BUCKET_EVENT_TYPE_SET BucketEventType = 2
	// EventTypeDelete is a delete event on the Bucket store.
	BucketEventType_BUCKET_EVENT_TYPE_DELETE BucketEventType = 3
)

func (BucketEventType) EnumDescriptor

func (BucketEventType) EnumDescriptor() ([]byte, []int)

func (BucketEventType) String

func (x BucketEventType) String() string

type BucketType

type BucketType int32

BucketType is the type of a bucket.

const (
	// BucketTypeUnspecified is the default value.
	BucketType_BUCKET_TYPE_UNSPECIFIED BucketType = 0
	// BucketTypeApp is an App specific bucket. For Assets regarding the service.
	BucketType_BUCKET_TYPE_APP BucketType = 1
	// BucketTypeUser is a User specific bucket. For any remote user data that is required
	// to be stored in the Network.
	BucketType_BUCKET_TYPE_USER BucketType = 2
)

func (BucketType) EnumDescriptor

func (BucketType) EnumDescriptor() ([]byte, []int)

func (BucketType) String

func (x BucketType) String() string

type CapabilityKeeper

type CapabilityKeeper interface {
}

type GenesisState

type GenesisState struct {
	Params      Params    `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	WhichIsList []WhichIs `protobuf:"bytes,2,rep,name=whichIsList,proto3" json:"whichIsList"`
}

GenesisState defines the bucket module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetWhichIsList

func (m *GenesisState) GetWhichIsList() []WhichIs

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type MintKeeper

type MintKeeper interface {
}

type MsgClient

type MsgClient interface {
	// CreateBucket
	//
	// CreateBucket defines a new collection on the bucket module of the blockchain.
	CreateBucket(ctx context.Context, in *MsgCreateBucket, opts ...grpc.CallOption) (*MsgCreateBucketResponse, error)
	// UpdateBucket
	//
	// UpdateBucket updates existing collection on the bucket module of the blockchain.
	UpdateBucket(ctx context.Context, in *MsgUpdateBucket, opts ...grpc.CallOption) (*MsgUpdateBucketResponse, error)
	// DeactivateBucket
	//
	// DeactivateBucket deactivates existing collection on the bucket module of the blockchain.
	DeactivateBucket(ctx context.Context, in *MsgDeactivateBucket, opts ...grpc.CallOption) (*MsgDeactivateBucketResponse, error)
	// CreateWhichIs
	//
	// CreateWhichIs method creates a new BucketDoc record for the bucket module.
	CreateWhichIs(ctx context.Context, in *MsgCreateWhichIs, opts ...grpc.CallOption) (*MsgCreateWhichIsResponse, error)
	// UpdateWhichIs
	//
	// UpdateWhichIs method updates an existing BucketDoc from the bucket store.
	UpdateWhichIs(ctx context.Context, in *MsgUpdateWhichIs, opts ...grpc.CallOption) (*MsgUpdateWhichIsResponse, error)
	// DeleteWhichIs
	//
	// DeleteWhichIs method deletes an existing BucketDoc from the bucket store.
	DeleteWhichIs(ctx context.Context, in *MsgDeleteWhichIs, opts ...grpc.CallOption) (*MsgDeleteWhichIsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateBucket

type MsgCreateBucket struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Label       string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Kind        string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`
	// Authenticated user session data
	Session *types.Session `protobuf:"bytes,5,opt,name=session,proto3" json:"session,omitempty"`
	// Provided initial objects for the bucket
	InitialObjectDids []string `protobuf:"bytes,6,rep,name=initial_object_dids,json=initialObjectDids,proto3" json:"initial_object_dids,omitempty"`
}

func NewMsgCreateBucket

func NewMsgCreateBucket(creator string, label string, description string, kind string, session *rt.Session, ibDids []string) *MsgCreateBucket

func NewMsgCreateBucketFromBuf added in v0.0.11

func NewMsgCreateBucketFromBuf(msg *bt.MsgCreateBucket) *MsgCreateBucket

func (*MsgCreateBucket) Descriptor

func (*MsgCreateBucket) Descriptor() ([]byte, []int)

func (*MsgCreateBucket) GetCreator

func (m *MsgCreateBucket) GetCreator() string

func (*MsgCreateBucket) GetDescription

func (m *MsgCreateBucket) GetDescription() string

func (*MsgCreateBucket) GetInitialObjectDids added in v0.0.8

func (m *MsgCreateBucket) GetInitialObjectDids() []string

func (*MsgCreateBucket) GetKind

func (m *MsgCreateBucket) GetKind() string

func (*MsgCreateBucket) GetLabel

func (m *MsgCreateBucket) GetLabel() string

func (*MsgCreateBucket) GetSession added in v0.0.8

func (m *MsgCreateBucket) GetSession() *types.Session

func (*MsgCreateBucket) GetSignBytes

func (msg *MsgCreateBucket) GetSignBytes() []byte

func (*MsgCreateBucket) GetSigners

func (msg *MsgCreateBucket) GetSigners() []sdk.AccAddress

func (*MsgCreateBucket) Marshal

func (m *MsgCreateBucket) Marshal() (dAtA []byte, err error)

func (*MsgCreateBucket) MarshalTo

func (m *MsgCreateBucket) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateBucket) MarshalToSizedBuffer

func (m *MsgCreateBucket) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateBucket) ProtoMessage

func (*MsgCreateBucket) ProtoMessage()

func (*MsgCreateBucket) Reset

func (m *MsgCreateBucket) Reset()

func (*MsgCreateBucket) Route

func (msg *MsgCreateBucket) Route() string

func (*MsgCreateBucket) Size

func (m *MsgCreateBucket) Size() (n int)

func (*MsgCreateBucket) String

func (m *MsgCreateBucket) String() string

func (*MsgCreateBucket) Type

func (msg *MsgCreateBucket) Type() string

func (*MsgCreateBucket) Unmarshal

func (m *MsgCreateBucket) Unmarshal(dAtA []byte) error

func (*MsgCreateBucket) ValidateBasic

func (msg *MsgCreateBucket) ValidateBasic() error

func (*MsgCreateBucket) XXX_DiscardUnknown

func (m *MsgCreateBucket) XXX_DiscardUnknown()

func (*MsgCreateBucket) XXX_Marshal

func (m *MsgCreateBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateBucket) XXX_Merge

func (m *MsgCreateBucket) XXX_Merge(src proto.Message)

func (*MsgCreateBucket) XXX_Size

func (m *MsgCreateBucket) XXX_Size() int

func (*MsgCreateBucket) XXX_Unmarshal

func (m *MsgCreateBucket) XXX_Unmarshal(b []byte) error

type MsgCreateBucketResponse

type MsgCreateBucketResponse struct {
	// Code of the response
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// Message of the response
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// Whichis response of the ObjectDoc
	WhichIs *WhichIs `protobuf:"bytes,3,opt,name=which_is,json=whichIs,proto3" json:"which_is,omitempty"`
}

func (*MsgCreateBucketResponse) Descriptor

func (*MsgCreateBucketResponse) Descriptor() ([]byte, []int)

func (*MsgCreateBucketResponse) GetCode added in v0.0.8

func (m *MsgCreateBucketResponse) GetCode() int32

func (*MsgCreateBucketResponse) GetMessage added in v0.0.8

func (m *MsgCreateBucketResponse) GetMessage() string

func (*MsgCreateBucketResponse) GetWhichIs added in v0.0.8

func (m *MsgCreateBucketResponse) GetWhichIs() *WhichIs

func (*MsgCreateBucketResponse) Marshal

func (m *MsgCreateBucketResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateBucketResponse) MarshalTo

func (m *MsgCreateBucketResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateBucketResponse) MarshalToSizedBuffer

func (m *MsgCreateBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateBucketResponse) ProtoMessage

func (*MsgCreateBucketResponse) ProtoMessage()

func (*MsgCreateBucketResponse) Reset

func (m *MsgCreateBucketResponse) Reset()

func (*MsgCreateBucketResponse) Size

func (m *MsgCreateBucketResponse) Size() (n int)

func (*MsgCreateBucketResponse) String

func (m *MsgCreateBucketResponse) String() string

func (*MsgCreateBucketResponse) Unmarshal

func (m *MsgCreateBucketResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateBucketResponse) XXX_DiscardUnknown

func (m *MsgCreateBucketResponse) XXX_DiscardUnknown()

func (*MsgCreateBucketResponse) XXX_Marshal

func (m *MsgCreateBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateBucketResponse) XXX_Merge

func (m *MsgCreateBucketResponse) XXX_Merge(src proto.Message)

func (*MsgCreateBucketResponse) XXX_Size

func (m *MsgCreateBucketResponse) XXX_Size() int

func (*MsgCreateBucketResponse) XXX_Unmarshal

func (m *MsgCreateBucketResponse) XXX_Unmarshal(b []byte) error

type MsgCreateWhichIs

type MsgCreateWhichIs struct {
	Creator string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Did     string     `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
	Bucket  *BucketDoc `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
}

func NewMsgCreateWhichIs

func NewMsgCreateWhichIs(
	creator string,
	did string,
	bucketDoc *BucketDoc,
) *MsgCreateWhichIs

func NewMsgCreateWhichIsFromBuf added in v0.0.11

func NewMsgCreateWhichIsFromBuf(msg *bt.MsgCreateWhichIs) *MsgCreateWhichIs

func (*MsgCreateWhichIs) Descriptor

func (*MsgCreateWhichIs) Descriptor() ([]byte, []int)

func (*MsgCreateWhichIs) GetBucket added in v0.0.8

func (m *MsgCreateWhichIs) GetBucket() *BucketDoc

func (*MsgCreateWhichIs) GetCreator

func (m *MsgCreateWhichIs) GetCreator() string

func (*MsgCreateWhichIs) GetDid

func (m *MsgCreateWhichIs) GetDid() string

func (*MsgCreateWhichIs) GetSignBytes

func (msg *MsgCreateWhichIs) GetSignBytes() []byte

func (*MsgCreateWhichIs) GetSigners

func (msg *MsgCreateWhichIs) GetSigners() []sdk.AccAddress

func (*MsgCreateWhichIs) Marshal

func (m *MsgCreateWhichIs) Marshal() (dAtA []byte, err error)

func (*MsgCreateWhichIs) MarshalTo

func (m *MsgCreateWhichIs) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateWhichIs) MarshalToSizedBuffer

func (m *MsgCreateWhichIs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateWhichIs) ProtoMessage

func (*MsgCreateWhichIs) ProtoMessage()

func (*MsgCreateWhichIs) Reset

func (m *MsgCreateWhichIs) Reset()

func (*MsgCreateWhichIs) Route

func (msg *MsgCreateWhichIs) Route() string

func (*MsgCreateWhichIs) Size

func (m *MsgCreateWhichIs) Size() (n int)

func (*MsgCreateWhichIs) String

func (m *MsgCreateWhichIs) String() string

func (*MsgCreateWhichIs) Type

func (msg *MsgCreateWhichIs) Type() string

func (*MsgCreateWhichIs) Unmarshal

func (m *MsgCreateWhichIs) Unmarshal(dAtA []byte) error

func (*MsgCreateWhichIs) ValidateBasic

func (msg *MsgCreateWhichIs) ValidateBasic() error

func (*MsgCreateWhichIs) XXX_DiscardUnknown

func (m *MsgCreateWhichIs) XXX_DiscardUnknown()

func (*MsgCreateWhichIs) XXX_Marshal

func (m *MsgCreateWhichIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateWhichIs) XXX_Merge

func (m *MsgCreateWhichIs) XXX_Merge(src proto.Message)

func (*MsgCreateWhichIs) XXX_Size

func (m *MsgCreateWhichIs) XXX_Size() int

func (*MsgCreateWhichIs) XXX_Unmarshal

func (m *MsgCreateWhichIs) XXX_Unmarshal(b []byte) error

type MsgCreateWhichIsResponse

type MsgCreateWhichIsResponse struct {
}

func (*MsgCreateWhichIsResponse) Descriptor

func (*MsgCreateWhichIsResponse) Descriptor() ([]byte, []int)

func (*MsgCreateWhichIsResponse) Marshal

func (m *MsgCreateWhichIsResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateWhichIsResponse) MarshalTo

func (m *MsgCreateWhichIsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateWhichIsResponse) MarshalToSizedBuffer

func (m *MsgCreateWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateWhichIsResponse) ProtoMessage

func (*MsgCreateWhichIsResponse) ProtoMessage()

func (*MsgCreateWhichIsResponse) Reset

func (m *MsgCreateWhichIsResponse) Reset()

func (*MsgCreateWhichIsResponse) Size

func (m *MsgCreateWhichIsResponse) Size() (n int)

func (*MsgCreateWhichIsResponse) String

func (m *MsgCreateWhichIsResponse) String() string

func (*MsgCreateWhichIsResponse) Unmarshal

func (m *MsgCreateWhichIsResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateWhichIsResponse) XXX_DiscardUnknown

func (m *MsgCreateWhichIsResponse) XXX_DiscardUnknown()

func (*MsgCreateWhichIsResponse) XXX_Marshal

func (m *MsgCreateWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateWhichIsResponse) XXX_Merge

func (m *MsgCreateWhichIsResponse) XXX_Merge(src proto.Message)

func (*MsgCreateWhichIsResponse) XXX_Size

func (m *MsgCreateWhichIsResponse) XXX_Size() int

func (*MsgCreateWhichIsResponse) XXX_Unmarshal

func (m *MsgCreateWhichIsResponse) XXX_Unmarshal(b []byte) error

type MsgDeactivateBucket added in v0.0.9

type MsgDeactivateBucket struct {
	Creator string         `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Did     string         `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
	Session *types.Session `protobuf:"bytes,3,opt,name=session,proto3" json:"session,omitempty"`
}

func NewMsgDeactivateBucket added in v0.0.9

func NewMsgDeactivateBucket(creator string, did string, session *rt.Session) *MsgDeactivateBucket

func NewMsgDeactivateBucketFromBuf added in v0.0.11

func NewMsgDeactivateBucketFromBuf(msg *bt.MsgDeactivateBucket) *MsgDeactivateBucket

func (*MsgDeactivateBucket) Descriptor added in v0.0.9

func (*MsgDeactivateBucket) Descriptor() ([]byte, []int)

func (*MsgDeactivateBucket) GetCreator added in v0.0.9

func (m *MsgDeactivateBucket) GetCreator() string

func (*MsgDeactivateBucket) GetDid added in v0.0.9

func (m *MsgDeactivateBucket) GetDid() string

func (*MsgDeactivateBucket) GetSession added in v0.0.9

func (m *MsgDeactivateBucket) GetSession() *types.Session

func (*MsgDeactivateBucket) GetSignBytes added in v0.0.9

func (msg *MsgDeactivateBucket) GetSignBytes() []byte

func (*MsgDeactivateBucket) GetSigners added in v0.0.9

func (msg *MsgDeactivateBucket) GetSigners() []sdk.AccAddress

func (*MsgDeactivateBucket) Marshal added in v0.0.9

func (m *MsgDeactivateBucket) Marshal() (dAtA []byte, err error)

func (*MsgDeactivateBucket) MarshalTo added in v0.0.9

func (m *MsgDeactivateBucket) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeactivateBucket) MarshalToSizedBuffer added in v0.0.9

func (m *MsgDeactivateBucket) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeactivateBucket) ProtoMessage added in v0.0.9

func (*MsgDeactivateBucket) ProtoMessage()

func (*MsgDeactivateBucket) Reset added in v0.0.9

func (m *MsgDeactivateBucket) Reset()

func (*MsgDeactivateBucket) Route added in v0.0.9

func (msg *MsgDeactivateBucket) Route() string

func (*MsgDeactivateBucket) Size added in v0.0.9

func (m *MsgDeactivateBucket) Size() (n int)

func (*MsgDeactivateBucket) String added in v0.0.9

func (m *MsgDeactivateBucket) String() string

func (*MsgDeactivateBucket) Type added in v0.0.9

func (msg *MsgDeactivateBucket) Type() string

func (*MsgDeactivateBucket) Unmarshal added in v0.0.9

func (m *MsgDeactivateBucket) Unmarshal(dAtA []byte) error

func (*MsgDeactivateBucket) ValidateBasic added in v0.0.9

func (msg *MsgDeactivateBucket) ValidateBasic() error

func (*MsgDeactivateBucket) XXX_DiscardUnknown added in v0.0.9

func (m *MsgDeactivateBucket) XXX_DiscardUnknown()

func (*MsgDeactivateBucket) XXX_Marshal added in v0.0.9

func (m *MsgDeactivateBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeactivateBucket) XXX_Merge added in v0.0.9

func (m *MsgDeactivateBucket) XXX_Merge(src proto.Message)

func (*MsgDeactivateBucket) XXX_Size added in v0.0.9

func (m *MsgDeactivateBucket) XXX_Size() int

func (*MsgDeactivateBucket) XXX_Unmarshal added in v0.0.9

func (m *MsgDeactivateBucket) XXX_Unmarshal(b []byte) error

type MsgDeactivateBucketResponse added in v0.0.9

type MsgDeactivateBucketResponse struct {
	// Code of the response
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// Message of the response
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

func (*MsgDeactivateBucketResponse) Descriptor added in v0.0.9

func (*MsgDeactivateBucketResponse) Descriptor() ([]byte, []int)

func (*MsgDeactivateBucketResponse) GetCode added in v0.0.9

func (m *MsgDeactivateBucketResponse) GetCode() int32

func (*MsgDeactivateBucketResponse) GetMessage added in v0.0.9

func (m *MsgDeactivateBucketResponse) GetMessage() string

func (*MsgDeactivateBucketResponse) Marshal added in v0.0.9

func (m *MsgDeactivateBucketResponse) Marshal() (dAtA []byte, err error)

func (*MsgDeactivateBucketResponse) MarshalTo added in v0.0.9

func (m *MsgDeactivateBucketResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeactivateBucketResponse) MarshalToSizedBuffer added in v0.0.9

func (m *MsgDeactivateBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeactivateBucketResponse) ProtoMessage added in v0.0.9

func (*MsgDeactivateBucketResponse) ProtoMessage()

func (*MsgDeactivateBucketResponse) Reset added in v0.0.9

func (m *MsgDeactivateBucketResponse) Reset()

func (*MsgDeactivateBucketResponse) Size added in v0.0.9

func (m *MsgDeactivateBucketResponse) Size() (n int)

func (*MsgDeactivateBucketResponse) String added in v0.0.9

func (m *MsgDeactivateBucketResponse) String() string

func (*MsgDeactivateBucketResponse) Unmarshal added in v0.0.9

func (m *MsgDeactivateBucketResponse) Unmarshal(dAtA []byte) error

func (*MsgDeactivateBucketResponse) XXX_DiscardUnknown added in v0.0.9

func (m *MsgDeactivateBucketResponse) XXX_DiscardUnknown()

func (*MsgDeactivateBucketResponse) XXX_Marshal added in v0.0.9

func (m *MsgDeactivateBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeactivateBucketResponse) XXX_Merge added in v0.0.9

func (m *MsgDeactivateBucketResponse) XXX_Merge(src proto.Message)

func (*MsgDeactivateBucketResponse) XXX_Size added in v0.0.9

func (m *MsgDeactivateBucketResponse) XXX_Size() int

func (*MsgDeactivateBucketResponse) XXX_Unmarshal added in v0.0.9

func (m *MsgDeactivateBucketResponse) XXX_Unmarshal(b []byte) error

type MsgDeleteWhichIs

type MsgDeleteWhichIs struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Did     string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
}

func NewMsgDeleteWhichIs

func NewMsgDeleteWhichIs(
	creator string,
	did string,
) *MsgDeleteWhichIs

func (*MsgDeleteWhichIs) Descriptor

func (*MsgDeleteWhichIs) Descriptor() ([]byte, []int)

func (*MsgDeleteWhichIs) GetCreator

func (m *MsgDeleteWhichIs) GetCreator() string

func (*MsgDeleteWhichIs) GetDid added in v0.0.10

func (m *MsgDeleteWhichIs) GetDid() string

func (*MsgDeleteWhichIs) GetSignBytes

func (msg *MsgDeleteWhichIs) GetSignBytes() []byte

func (*MsgDeleteWhichIs) GetSigners

func (msg *MsgDeleteWhichIs) GetSigners() []sdk.AccAddress

func (*MsgDeleteWhichIs) Marshal

func (m *MsgDeleteWhichIs) Marshal() (dAtA []byte, err error)

func (*MsgDeleteWhichIs) MarshalTo

func (m *MsgDeleteWhichIs) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteWhichIs) MarshalToSizedBuffer

func (m *MsgDeleteWhichIs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteWhichIs) ProtoMessage

func (*MsgDeleteWhichIs) ProtoMessage()

func (*MsgDeleteWhichIs) Reset

func (m *MsgDeleteWhichIs) Reset()

func (*MsgDeleteWhichIs) Route

func (msg *MsgDeleteWhichIs) Route() string

func (*MsgDeleteWhichIs) Size

func (m *MsgDeleteWhichIs) Size() (n int)

func (*MsgDeleteWhichIs) String

func (m *MsgDeleteWhichIs) String() string

func (*MsgDeleteWhichIs) Type

func (msg *MsgDeleteWhichIs) Type() string

func (*MsgDeleteWhichIs) Unmarshal

func (m *MsgDeleteWhichIs) Unmarshal(dAtA []byte) error

func (*MsgDeleteWhichIs) ValidateBasic

func (msg *MsgDeleteWhichIs) ValidateBasic() error

func (*MsgDeleteWhichIs) XXX_DiscardUnknown

func (m *MsgDeleteWhichIs) XXX_DiscardUnknown()

func (*MsgDeleteWhichIs) XXX_Marshal

func (m *MsgDeleteWhichIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteWhichIs) XXX_Merge

func (m *MsgDeleteWhichIs) XXX_Merge(src proto.Message)

func (*MsgDeleteWhichIs) XXX_Size

func (m *MsgDeleteWhichIs) XXX_Size() int

func (*MsgDeleteWhichIs) XXX_Unmarshal

func (m *MsgDeleteWhichIs) XXX_Unmarshal(b []byte) error

type MsgDeleteWhichIsResponse

type MsgDeleteWhichIsResponse struct {
}

func (*MsgDeleteWhichIsResponse) Descriptor

func (*MsgDeleteWhichIsResponse) Descriptor() ([]byte, []int)

func (*MsgDeleteWhichIsResponse) Marshal

func (m *MsgDeleteWhichIsResponse) Marshal() (dAtA []byte, err error)

func (*MsgDeleteWhichIsResponse) MarshalTo

func (m *MsgDeleteWhichIsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteWhichIsResponse) MarshalToSizedBuffer

func (m *MsgDeleteWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteWhichIsResponse) ProtoMessage

func (*MsgDeleteWhichIsResponse) ProtoMessage()

func (*MsgDeleteWhichIsResponse) Reset

func (m *MsgDeleteWhichIsResponse) Reset()

func (*MsgDeleteWhichIsResponse) Size

func (m *MsgDeleteWhichIsResponse) Size() (n int)

func (*MsgDeleteWhichIsResponse) String

func (m *MsgDeleteWhichIsResponse) String() string

func (*MsgDeleteWhichIsResponse) Unmarshal

func (m *MsgDeleteWhichIsResponse) Unmarshal(dAtA []byte) error

func (*MsgDeleteWhichIsResponse) XXX_DiscardUnknown

func (m *MsgDeleteWhichIsResponse) XXX_DiscardUnknown()

func (*MsgDeleteWhichIsResponse) XXX_Marshal

func (m *MsgDeleteWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteWhichIsResponse) XXX_Merge

func (m *MsgDeleteWhichIsResponse) XXX_Merge(src proto.Message)

func (*MsgDeleteWhichIsResponse) XXX_Size

func (m *MsgDeleteWhichIsResponse) XXX_Size() int

func (*MsgDeleteWhichIsResponse) XXX_Unmarshal

func (m *MsgDeleteWhichIsResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// CreateBucket
	//
	// CreateBucket defines a new collection on the bucket module of the blockchain.
	CreateBucket(context.Context, *MsgCreateBucket) (*MsgCreateBucketResponse, error)
	// UpdateBucket
	//
	// UpdateBucket updates existing collection on the bucket module of the blockchain.
	UpdateBucket(context.Context, *MsgUpdateBucket) (*MsgUpdateBucketResponse, error)
	// DeactivateBucket
	//
	// DeactivateBucket deactivates existing collection on the bucket module of the blockchain.
	DeactivateBucket(context.Context, *MsgDeactivateBucket) (*MsgDeactivateBucketResponse, error)
	// CreateWhichIs
	//
	// CreateWhichIs method creates a new BucketDoc record for the bucket module.
	CreateWhichIs(context.Context, *MsgCreateWhichIs) (*MsgCreateWhichIsResponse, error)
	// UpdateWhichIs
	//
	// UpdateWhichIs method updates an existing BucketDoc from the bucket store.
	UpdateWhichIs(context.Context, *MsgUpdateWhichIs) (*MsgUpdateWhichIsResponse, error)
	// DeleteWhichIs
	//
	// DeleteWhichIs method deletes an existing BucketDoc from the bucket store.
	DeleteWhichIs(context.Context, *MsgDeleteWhichIs) (*MsgDeleteWhichIsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateBucket

type MsgUpdateBucket struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// The Bucket label
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// New bucket description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Session data of authenticated user
	Session *types.Session `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
	// Added Objects
	AddedObjectDids []string `protobuf:"bytes,5,rep,name=added_object_dids,json=addedObjectDids,proto3" json:"added_object_dids,omitempty"`
	// Removed Objects
	RemovedObjectDids []string `protobuf:"bytes,6,rep,name=removed_object_dids,json=removedObjectDids,proto3" json:"removed_object_dids,omitempty"`
}

func NewMsgUpdateBucket

func NewMsgUpdateBucket(creator string, label string, description string, session *rt.Session, addObjs []string, removObjs []string) *MsgUpdateBucket

func NewMsgUpdateBucketFromBuf added in v0.0.11

func NewMsgUpdateBucketFromBuf(msg *bt.MsgUpdateBucket) *MsgUpdateBucket

func (*MsgUpdateBucket) Descriptor

func (*MsgUpdateBucket) Descriptor() ([]byte, []int)

func (*MsgUpdateBucket) GetAddedObjectDids added in v0.0.8

func (m *MsgUpdateBucket) GetAddedObjectDids() []string

func (*MsgUpdateBucket) GetCreator

func (m *MsgUpdateBucket) GetCreator() string

func (*MsgUpdateBucket) GetDescription

func (m *MsgUpdateBucket) GetDescription() string

func (*MsgUpdateBucket) GetLabel

func (m *MsgUpdateBucket) GetLabel() string

func (*MsgUpdateBucket) GetRemovedObjectDids added in v0.0.8

func (m *MsgUpdateBucket) GetRemovedObjectDids() []string

func (*MsgUpdateBucket) GetSession added in v0.0.8

func (m *MsgUpdateBucket) GetSession() *types.Session

func (*MsgUpdateBucket) GetSignBytes

func (msg *MsgUpdateBucket) GetSignBytes() []byte

func (*MsgUpdateBucket) GetSigners

func (msg *MsgUpdateBucket) GetSigners() []sdk.AccAddress

func (*MsgUpdateBucket) Marshal

func (m *MsgUpdateBucket) Marshal() (dAtA []byte, err error)

func (*MsgUpdateBucket) MarshalTo

func (m *MsgUpdateBucket) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateBucket) MarshalToSizedBuffer

func (m *MsgUpdateBucket) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateBucket) ProtoMessage

func (*MsgUpdateBucket) ProtoMessage()

func (*MsgUpdateBucket) Reset

func (m *MsgUpdateBucket) Reset()

func (*MsgUpdateBucket) Route

func (msg *MsgUpdateBucket) Route() string

func (*MsgUpdateBucket) Size

func (m *MsgUpdateBucket) Size() (n int)

func (*MsgUpdateBucket) String

func (m *MsgUpdateBucket) String() string

func (*MsgUpdateBucket) Type

func (msg *MsgUpdateBucket) Type() string

func (*MsgUpdateBucket) Unmarshal

func (m *MsgUpdateBucket) Unmarshal(dAtA []byte) error

func (*MsgUpdateBucket) ValidateBasic

func (msg *MsgUpdateBucket) ValidateBasic() error

func (*MsgUpdateBucket) XXX_DiscardUnknown

func (m *MsgUpdateBucket) XXX_DiscardUnknown()

func (*MsgUpdateBucket) XXX_Marshal

func (m *MsgUpdateBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateBucket) XXX_Merge

func (m *MsgUpdateBucket) XXX_Merge(src proto.Message)

func (*MsgUpdateBucket) XXX_Size

func (m *MsgUpdateBucket) XXX_Size() int

func (*MsgUpdateBucket) XXX_Unmarshal

func (m *MsgUpdateBucket) XXX_Unmarshal(b []byte) error

type MsgUpdateBucketResponse

type MsgUpdateBucketResponse struct {
	// Code of the response
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// Message of the response
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// Whichis response of the ObjectDoc
	WhichIs *WhichIs `protobuf:"bytes,3,opt,name=which_is,json=whichIs,proto3" json:"which_is,omitempty"`
}

func (*MsgUpdateBucketResponse) Descriptor

func (*MsgUpdateBucketResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateBucketResponse) GetCode added in v0.0.8

func (m *MsgUpdateBucketResponse) GetCode() int32

func (*MsgUpdateBucketResponse) GetMessage added in v0.0.8

func (m *MsgUpdateBucketResponse) GetMessage() string

func (*MsgUpdateBucketResponse) GetWhichIs added in v0.0.8

func (m *MsgUpdateBucketResponse) GetWhichIs() *WhichIs

func (*MsgUpdateBucketResponse) Marshal

func (m *MsgUpdateBucketResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateBucketResponse) MarshalTo

func (m *MsgUpdateBucketResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateBucketResponse) MarshalToSizedBuffer

func (m *MsgUpdateBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateBucketResponse) ProtoMessage

func (*MsgUpdateBucketResponse) ProtoMessage()

func (*MsgUpdateBucketResponse) Reset

func (m *MsgUpdateBucketResponse) Reset()

func (*MsgUpdateBucketResponse) Size

func (m *MsgUpdateBucketResponse) Size() (n int)

func (*MsgUpdateBucketResponse) String

func (m *MsgUpdateBucketResponse) String() string

func (*MsgUpdateBucketResponse) Unmarshal

func (m *MsgUpdateBucketResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateBucketResponse) XXX_DiscardUnknown

func (m *MsgUpdateBucketResponse) XXX_DiscardUnknown()

func (*MsgUpdateBucketResponse) XXX_Marshal

func (m *MsgUpdateBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateBucketResponse) XXX_Merge

func (m *MsgUpdateBucketResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateBucketResponse) XXX_Size

func (m *MsgUpdateBucketResponse) XXX_Size() int

func (*MsgUpdateBucketResponse) XXX_Unmarshal

func (m *MsgUpdateBucketResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateWhichIs

type MsgUpdateWhichIs struct {
	Creator string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Did     string     `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
	Bucket  *BucketDoc `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
}

func NewMsgUpdateWhichIs

func NewMsgUpdateWhichIs(
	creator string,
	did string,
	bucketDoc *BucketDoc,
) *MsgUpdateWhichIs

func (*MsgUpdateWhichIs) Descriptor

func (*MsgUpdateWhichIs) Descriptor() ([]byte, []int)

func (*MsgUpdateWhichIs) GetBucket added in v0.0.8

func (m *MsgUpdateWhichIs) GetBucket() *BucketDoc

func (*MsgUpdateWhichIs) GetCreator

func (m *MsgUpdateWhichIs) GetCreator() string

func (*MsgUpdateWhichIs) GetDid

func (m *MsgUpdateWhichIs) GetDid() string

func (*MsgUpdateWhichIs) GetSignBytes

func (msg *MsgUpdateWhichIs) GetSignBytes() []byte

func (*MsgUpdateWhichIs) GetSigners

func (msg *MsgUpdateWhichIs) GetSigners() []sdk.AccAddress

func (*MsgUpdateWhichIs) Marshal

func (m *MsgUpdateWhichIs) Marshal() (dAtA []byte, err error)

func (*MsgUpdateWhichIs) MarshalTo

func (m *MsgUpdateWhichIs) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateWhichIs) MarshalToSizedBuffer

func (m *MsgUpdateWhichIs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateWhichIs) ProtoMessage

func (*MsgUpdateWhichIs) ProtoMessage()

func (*MsgUpdateWhichIs) Reset

func (m *MsgUpdateWhichIs) Reset()

func (*MsgUpdateWhichIs) Route

func (msg *MsgUpdateWhichIs) Route() string

func (*MsgUpdateWhichIs) Size

func (m *MsgUpdateWhichIs) Size() (n int)

func (*MsgUpdateWhichIs) String

func (m *MsgUpdateWhichIs) String() string

func (*MsgUpdateWhichIs) Type

func (msg *MsgUpdateWhichIs) Type() string

func (*MsgUpdateWhichIs) Unmarshal

func (m *MsgUpdateWhichIs) Unmarshal(dAtA []byte) error

func (*MsgUpdateWhichIs) ValidateBasic

func (msg *MsgUpdateWhichIs) ValidateBasic() error

func (*MsgUpdateWhichIs) XXX_DiscardUnknown

func (m *MsgUpdateWhichIs) XXX_DiscardUnknown()

func (*MsgUpdateWhichIs) XXX_Marshal

func (m *MsgUpdateWhichIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateWhichIs) XXX_Merge

func (m *MsgUpdateWhichIs) XXX_Merge(src proto.Message)

func (*MsgUpdateWhichIs) XXX_Size

func (m *MsgUpdateWhichIs) XXX_Size() int

func (*MsgUpdateWhichIs) XXX_Unmarshal

func (m *MsgUpdateWhichIs) XXX_Unmarshal(b []byte) error

type MsgUpdateWhichIsResponse

type MsgUpdateWhichIsResponse struct {
}

func (*MsgUpdateWhichIsResponse) Descriptor

func (*MsgUpdateWhichIsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateWhichIsResponse) Marshal

func (m *MsgUpdateWhichIsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateWhichIsResponse) MarshalTo

func (m *MsgUpdateWhichIsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateWhichIsResponse) MarshalToSizedBuffer

func (m *MsgUpdateWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateWhichIsResponse) ProtoMessage

func (*MsgUpdateWhichIsResponse) ProtoMessage()

func (*MsgUpdateWhichIsResponse) Reset

func (m *MsgUpdateWhichIsResponse) Reset()

func (*MsgUpdateWhichIsResponse) Size

func (m *MsgUpdateWhichIsResponse) Size() (n int)

func (*MsgUpdateWhichIsResponse) String

func (m *MsgUpdateWhichIsResponse) String() string

func (*MsgUpdateWhichIsResponse) Unmarshal

func (m *MsgUpdateWhichIsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateWhichIsResponse) XXX_DiscardUnknown

func (m *MsgUpdateWhichIsResponse) XXX_DiscardUnknown()

func (*MsgUpdateWhichIsResponse) XXX_Marshal

func (m *MsgUpdateWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateWhichIsResponse) XXX_Merge

func (m *MsgUpdateWhichIsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateWhichIsResponse) XXX_Size

func (m *MsgUpdateWhichIsResponse) XXX_Size() int

func (*MsgUpdateWhichIsResponse) XXX_Unmarshal

func (m *MsgUpdateWhichIsResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryAllWhichIsRequest

type QueryAllWhichIsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Session    *types.Session     `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
}

func (*QueryAllWhichIsRequest) Descriptor

func (*QueryAllWhichIsRequest) Descriptor() ([]byte, []int)

func (*QueryAllWhichIsRequest) GetPagination

func (m *QueryAllWhichIsRequest) GetPagination() *query.PageRequest

func (*QueryAllWhichIsRequest) GetSession added in v0.0.8

func (m *QueryAllWhichIsRequest) GetSession() *types.Session

func (*QueryAllWhichIsRequest) Marshal

func (m *QueryAllWhichIsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllWhichIsRequest) MarshalTo

func (m *QueryAllWhichIsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllWhichIsRequest) MarshalToSizedBuffer

func (m *QueryAllWhichIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllWhichIsRequest) ProtoMessage

func (*QueryAllWhichIsRequest) ProtoMessage()

func (*QueryAllWhichIsRequest) Reset

func (m *QueryAllWhichIsRequest) Reset()

func (*QueryAllWhichIsRequest) Size

func (m *QueryAllWhichIsRequest) Size() (n int)

func (*QueryAllWhichIsRequest) String

func (m *QueryAllWhichIsRequest) String() string

func (*QueryAllWhichIsRequest) Unmarshal

func (m *QueryAllWhichIsRequest) Unmarshal(dAtA []byte) error

func (*QueryAllWhichIsRequest) XXX_DiscardUnknown

func (m *QueryAllWhichIsRequest) XXX_DiscardUnknown()

func (*QueryAllWhichIsRequest) XXX_Marshal

func (m *QueryAllWhichIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllWhichIsRequest) XXX_Merge

func (m *QueryAllWhichIsRequest) XXX_Merge(src proto.Message)

func (*QueryAllWhichIsRequest) XXX_Size

func (m *QueryAllWhichIsRequest) XXX_Size() int

func (*QueryAllWhichIsRequest) XXX_Unmarshal

func (m *QueryAllWhichIsRequest) XXX_Unmarshal(b []byte) error

type QueryAllWhichIsResponse

type QueryAllWhichIsResponse struct {
	WhichIs    []WhichIs           `protobuf:"bytes,1,rep,name=which_is,json=whichIs,proto3" json:"which_is"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllWhichIsResponse) Descriptor

func (*QueryAllWhichIsResponse) Descriptor() ([]byte, []int)

func (*QueryAllWhichIsResponse) GetPagination

func (m *QueryAllWhichIsResponse) GetPagination() *query.PageResponse

func (*QueryAllWhichIsResponse) GetWhichIs

func (m *QueryAllWhichIsResponse) GetWhichIs() []WhichIs

func (*QueryAllWhichIsResponse) Marshal

func (m *QueryAllWhichIsResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllWhichIsResponse) MarshalTo

func (m *QueryAllWhichIsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllWhichIsResponse) MarshalToSizedBuffer

func (m *QueryAllWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllWhichIsResponse) ProtoMessage

func (*QueryAllWhichIsResponse) ProtoMessage()

func (*QueryAllWhichIsResponse) Reset

func (m *QueryAllWhichIsResponse) Reset()

func (*QueryAllWhichIsResponse) Size

func (m *QueryAllWhichIsResponse) Size() (n int)

func (*QueryAllWhichIsResponse) String

func (m *QueryAllWhichIsResponse) String() string

func (*QueryAllWhichIsResponse) Unmarshal

func (m *QueryAllWhichIsResponse) Unmarshal(dAtA []byte) error

func (*QueryAllWhichIsResponse) XXX_DiscardUnknown

func (m *QueryAllWhichIsResponse) XXX_DiscardUnknown()

func (*QueryAllWhichIsResponse) XXX_Marshal

func (m *QueryAllWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllWhichIsResponse) XXX_Merge

func (m *QueryAllWhichIsResponse) XXX_Merge(src proto.Message)

func (*QueryAllWhichIsResponse) XXX_Size

func (m *QueryAllWhichIsResponse) XXX_Size() int

func (*QueryAllWhichIsResponse) XXX_Unmarshal

func (m *QueryAllWhichIsResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params
	//
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// WhichIs
	//
	// Queries a WhichIs by did.
	WhichIs(ctx context.Context, in *QueryWhichIsRequest, opts ...grpc.CallOption) (*QueryWhichIsResponse, error)
	// WhichIsAll
	//
	// Queries a list of WhichIs items.
	WhichIsAll(ctx context.Context, in *QueryAllWhichIsRequest, opts ...grpc.CallOption) (*QueryAllWhichIsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params
	//
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// WhichIs
	//
	// Queries a WhichIs by did.
	WhichIs(context.Context, *QueryWhichIsRequest) (*QueryWhichIsResponse, error)
	// WhichIsAll
	//
	// Queries a list of WhichIs items.
	WhichIsAll(context.Context, *QueryAllWhichIsRequest) (*QueryAllWhichIsResponse, error)
}

QueryServer is the server API for Query service.

type QueryWhichIsRequest added in v0.0.10

type QueryWhichIsRequest struct {
	Did     string         `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	Session *types.Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
}

func (*QueryWhichIsRequest) Descriptor added in v0.0.10

func (*QueryWhichIsRequest) Descriptor() ([]byte, []int)

func (*QueryWhichIsRequest) GetDid added in v0.0.10

func (m *QueryWhichIsRequest) GetDid() string

func (*QueryWhichIsRequest) GetSession added in v0.0.10

func (m *QueryWhichIsRequest) GetSession() *types.Session

func (*QueryWhichIsRequest) Marshal added in v0.0.10

func (m *QueryWhichIsRequest) Marshal() (dAtA []byte, err error)

func (*QueryWhichIsRequest) MarshalTo added in v0.0.10

func (m *QueryWhichIsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryWhichIsRequest) MarshalToSizedBuffer added in v0.0.10

func (m *QueryWhichIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryWhichIsRequest) ProtoMessage added in v0.0.10

func (*QueryWhichIsRequest) ProtoMessage()

func (*QueryWhichIsRequest) Reset added in v0.0.10

func (m *QueryWhichIsRequest) Reset()

func (*QueryWhichIsRequest) Size added in v0.0.10

func (m *QueryWhichIsRequest) Size() (n int)

func (*QueryWhichIsRequest) String added in v0.0.10

func (m *QueryWhichIsRequest) String() string

func (*QueryWhichIsRequest) Unmarshal added in v0.0.10

func (m *QueryWhichIsRequest) Unmarshal(dAtA []byte) error

func (*QueryWhichIsRequest) XXX_DiscardUnknown added in v0.0.10

func (m *QueryWhichIsRequest) XXX_DiscardUnknown()

func (*QueryWhichIsRequest) XXX_Marshal added in v0.0.10

func (m *QueryWhichIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryWhichIsRequest) XXX_Merge added in v0.0.10

func (m *QueryWhichIsRequest) XXX_Merge(src proto.Message)

func (*QueryWhichIsRequest) XXX_Size added in v0.0.10

func (m *QueryWhichIsRequest) XXX_Size() int

func (*QueryWhichIsRequest) XXX_Unmarshal added in v0.0.10

func (m *QueryWhichIsRequest) XXX_Unmarshal(b []byte) error

type QueryWhichIsResponse added in v0.0.10

type QueryWhichIsResponse struct {
	WhichIs WhichIs `protobuf:"bytes,1,opt,name=which_is,json=whichIs,proto3" json:"which_is"`
}

func (*QueryWhichIsResponse) Descriptor added in v0.0.10

func (*QueryWhichIsResponse) Descriptor() ([]byte, []int)

func (*QueryWhichIsResponse) GetWhichIs added in v0.0.10

func (m *QueryWhichIsResponse) GetWhichIs() WhichIs

func (*QueryWhichIsResponse) Marshal added in v0.0.10

func (m *QueryWhichIsResponse) Marshal() (dAtA []byte, err error)

func (*QueryWhichIsResponse) MarshalTo added in v0.0.10

func (m *QueryWhichIsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryWhichIsResponse) MarshalToSizedBuffer added in v0.0.10

func (m *QueryWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryWhichIsResponse) ProtoMessage added in v0.0.10

func (*QueryWhichIsResponse) ProtoMessage()

func (*QueryWhichIsResponse) Reset added in v0.0.10

func (m *QueryWhichIsResponse) Reset()

func (*QueryWhichIsResponse) Size added in v0.0.10

func (m *QueryWhichIsResponse) Size() (n int)

func (*QueryWhichIsResponse) String added in v0.0.10

func (m *QueryWhichIsResponse) String() string

func (*QueryWhichIsResponse) Unmarshal added in v0.0.10

func (m *QueryWhichIsResponse) Unmarshal(dAtA []byte) error

func (*QueryWhichIsResponse) XXX_DiscardUnknown added in v0.0.10

func (m *QueryWhichIsResponse) XXX_DiscardUnknown()

func (*QueryWhichIsResponse) XXX_Marshal added in v0.0.10

func (m *QueryWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryWhichIsResponse) XXX_Merge added in v0.0.10

func (m *QueryWhichIsResponse) XXX_Merge(src proto.Message)

func (*QueryWhichIsResponse) XXX_Size added in v0.0.10

func (m *QueryWhichIsResponse) XXX_Size() int

func (*QueryWhichIsResponse) XXX_Unmarshal added in v0.0.10

func (m *QueryWhichIsResponse) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateBucket

func (*UnimplementedMsgServer) CreateWhichIs

func (*UnimplementedMsgServer) DeactivateBucket added in v0.0.9

func (*UnimplementedMsgServer) DeleteWhichIs

func (*UnimplementedMsgServer) UpdateBucket

func (*UnimplementedMsgServer) UpdateWhichIs

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) WhichIs

func (*UnimplementedQueryServer) WhichIsAll

type WhichIs

type WhichIs struct {
	// DID is the DID of the bucket.
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// Creator is the Account that created the bucket.
	Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
	// Bucket is the document of the bucket.
	Bucket *BucketDoc `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// Timestamp is the time of the last update of the DID Document
	Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// IsActive is the status of the DID Document
	IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
}

func NewWhichIsFromBuf added in v0.0.11

func NewWhichIsFromBuf(cd *bt.WhichIs) *WhichIs

func (*WhichIs) Descriptor

func (*WhichIs) Descriptor() ([]byte, []int)

func (*WhichIs) GetBucket added in v0.0.8

func (m *WhichIs) GetBucket() *BucketDoc

func (*WhichIs) GetCreator

func (m *WhichIs) GetCreator() string

func (*WhichIs) GetDid

func (m *WhichIs) GetDid() string

func (*WhichIs) GetIsActive added in v0.0.9

func (m *WhichIs) GetIsActive() bool

func (*WhichIs) GetTimestamp added in v0.0.9

func (m *WhichIs) GetTimestamp() int64

func (*WhichIs) Marshal

func (m *WhichIs) Marshal() (dAtA []byte, err error)

func (*WhichIs) MarshalTo

func (m *WhichIs) MarshalTo(dAtA []byte) (int, error)

func (*WhichIs) MarshalToSizedBuffer

func (m *WhichIs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WhichIs) ProtoMessage

func (*WhichIs) ProtoMessage()

func (*WhichIs) Reset

func (m *WhichIs) Reset()

func (*WhichIs) Size

func (m *WhichIs) Size() (n int)

func (*WhichIs) String

func (m *WhichIs) String() string

func (*WhichIs) Unmarshal

func (m *WhichIs) Unmarshal(dAtA []byte) error

func (*WhichIs) XXX_DiscardUnknown

func (m *WhichIs) XXX_DiscardUnknown()

func (*WhichIs) XXX_Marshal

func (m *WhichIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WhichIs) XXX_Merge

func (m *WhichIs) XXX_Merge(src proto.Message)

func (*WhichIs) XXX_Size

func (m *WhichIs) XXX_Size() int

func (*WhichIs) XXX_Unmarshal

func (m *WhichIs) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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