Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func NewBucketDocToBuf(doc *BucketDoc) *bt.BucketDoc
- func NewWhichIsToBuf(cd *WhichIs) *bt.WhichIs
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func WhichIsKey(did string) []byte
- type AccountKeeper
- type BankKeeper
- type BucketDoc
- func (o *BucketDoc) AddObjects(l ...string)
- func (*BucketDoc) Descriptor() ([]byte, []int)
- func (m *BucketDoc) GetDescription() string
- func (m *BucketDoc) GetDid() string
- func (m *BucketDoc) GetLabel() string
- func (m *BucketDoc) GetObjectDids() []string
- func (m *BucketDoc) GetType() BucketType
- func (m *BucketDoc) Marshal() (dAtA []byte, err error)
- func (m *BucketDoc) MarshalTo(dAtA []byte) (int, error)
- func (m *BucketDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BucketDoc) ProtoMessage()
- func (o *BucketDoc) RemoveObjects(l ...string)
- func (m *BucketDoc) Reset()
- func (m *BucketDoc) Size() (n int)
- func (m *BucketDoc) String() string
- func (m *BucketDoc) Unmarshal(dAtA []byte) error
- func (m *BucketDoc) XXX_DiscardUnknown()
- func (m *BucketDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BucketDoc) XXX_Merge(src proto.Message)
- func (m *BucketDoc) XXX_Size() int
- func (m *BucketDoc) XXX_Unmarshal(b []byte) error
- type BucketEvent
- func (*BucketEvent) Descriptor() ([]byte, []int)
- func (m *BucketEvent) GetMetadata() map[string]string
- func (m *BucketEvent) GetObject() *types.ObjectDoc
- func (m *BucketEvent) GetPeerDid() string
- func (m *BucketEvent) GetType() BucketEventType
- func (m *BucketEvent) Marshal() (dAtA []byte, err error)
- func (m *BucketEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *BucketEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BucketEvent) ProtoMessage()
- func (m *BucketEvent) Reset()
- func (m *BucketEvent) Size() (n int)
- func (m *BucketEvent) String() string
- func (m *BucketEvent) Unmarshal(dAtA []byte) error
- func (m *BucketEvent) XXX_DiscardUnknown()
- func (m *BucketEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BucketEvent) XXX_Merge(src proto.Message)
- func (m *BucketEvent) XXX_Size() int
- func (m *BucketEvent) XXX_Unmarshal(b []byte) error
- type BucketEventType
- type BucketType
- type CapabilityKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetWhichIsList() []WhichIs
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MintKeeper
- type MsgClient
- type MsgCreateBucket
- func (*MsgCreateBucket) Descriptor() ([]byte, []int)
- func (m *MsgCreateBucket) GetCreator() string
- func (m *MsgCreateBucket) GetDescription() string
- func (m *MsgCreateBucket) GetInitialObjectDids() []string
- func (m *MsgCreateBucket) GetKind() string
- func (m *MsgCreateBucket) GetLabel() string
- func (m *MsgCreateBucket) GetSession() *types.Session
- func (msg *MsgCreateBucket) GetSignBytes() []byte
- func (msg *MsgCreateBucket) GetSigners() []sdk.AccAddress
- func (m *MsgCreateBucket) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBucket) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBucket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBucket) ProtoMessage()
- func (m *MsgCreateBucket) Reset()
- func (msg *MsgCreateBucket) Route() string
- func (m *MsgCreateBucket) Size() (n int)
- func (m *MsgCreateBucket) String() string
- func (msg *MsgCreateBucket) Type() string
- func (m *MsgCreateBucket) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateBucket) ValidateBasic() error
- func (m *MsgCreateBucket) XXX_DiscardUnknown()
- func (m *MsgCreateBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBucket) XXX_Merge(src proto.Message)
- func (m *MsgCreateBucket) XXX_Size() int
- func (m *MsgCreateBucket) XXX_Unmarshal(b []byte) error
- type MsgCreateBucketResponse
- func (*MsgCreateBucketResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateBucketResponse) GetCode() int32
- func (m *MsgCreateBucketResponse) GetMessage() string
- func (m *MsgCreateBucketResponse) GetWhichIs() *WhichIs
- func (m *MsgCreateBucketResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBucketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBucketResponse) ProtoMessage()
- func (m *MsgCreateBucketResponse) Reset()
- func (m *MsgCreateBucketResponse) Size() (n int)
- func (m *MsgCreateBucketResponse) String() string
- func (m *MsgCreateBucketResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateBucketResponse) XXX_DiscardUnknown()
- func (m *MsgCreateBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBucketResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateBucketResponse) XXX_Size() int
- func (m *MsgCreateBucketResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateWhichIs
- func (*MsgCreateWhichIs) Descriptor() ([]byte, []int)
- func (m *MsgCreateWhichIs) GetBucket() *BucketDoc
- func (m *MsgCreateWhichIs) GetCreator() string
- func (m *MsgCreateWhichIs) GetDid() string
- func (msg *MsgCreateWhichIs) GetSignBytes() []byte
- func (msg *MsgCreateWhichIs) GetSigners() []sdk.AccAddress
- func (m *MsgCreateWhichIs) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateWhichIs) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateWhichIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateWhichIs) ProtoMessage()
- func (m *MsgCreateWhichIs) Reset()
- func (msg *MsgCreateWhichIs) Route() string
- func (m *MsgCreateWhichIs) Size() (n int)
- func (m *MsgCreateWhichIs) String() string
- func (msg *MsgCreateWhichIs) Type() string
- func (m *MsgCreateWhichIs) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateWhichIs) ValidateBasic() error
- func (m *MsgCreateWhichIs) XXX_DiscardUnknown()
- func (m *MsgCreateWhichIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateWhichIs) XXX_Merge(src proto.Message)
- func (m *MsgCreateWhichIs) XXX_Size() int
- func (m *MsgCreateWhichIs) XXX_Unmarshal(b []byte) error
- type MsgCreateWhichIsResponse
- func (*MsgCreateWhichIsResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateWhichIsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateWhichIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateWhichIsResponse) ProtoMessage()
- func (m *MsgCreateWhichIsResponse) Reset()
- func (m *MsgCreateWhichIsResponse) Size() (n int)
- func (m *MsgCreateWhichIsResponse) String() string
- func (m *MsgCreateWhichIsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateWhichIsResponse) XXX_DiscardUnknown()
- func (m *MsgCreateWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateWhichIsResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateWhichIsResponse) XXX_Size() int
- func (m *MsgCreateWhichIsResponse) XXX_Unmarshal(b []byte) error
- type MsgDeactivateBucket
- func (*MsgDeactivateBucket) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateBucket) GetCreator() string
- func (m *MsgDeactivateBucket) GetDid() string
- func (m *MsgDeactivateBucket) GetSession() *types.Session
- func (msg *MsgDeactivateBucket) GetSignBytes() []byte
- func (msg *MsgDeactivateBucket) GetSigners() []sdk.AccAddress
- func (m *MsgDeactivateBucket) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateBucket) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateBucket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeactivateBucket) ProtoMessage()
- func (m *MsgDeactivateBucket) Reset()
- func (msg *MsgDeactivateBucket) Route() string
- func (m *MsgDeactivateBucket) Size() (n int)
- func (m *MsgDeactivateBucket) String() string
- func (msg *MsgDeactivateBucket) Type() string
- func (m *MsgDeactivateBucket) Unmarshal(dAtA []byte) error
- func (msg *MsgDeactivateBucket) ValidateBasic() error
- func (m *MsgDeactivateBucket) XXX_DiscardUnknown()
- func (m *MsgDeactivateBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateBucket) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateBucket) XXX_Size() int
- func (m *MsgDeactivateBucket) XXX_Unmarshal(b []byte) error
- type MsgDeactivateBucketResponse
- func (*MsgDeactivateBucketResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateBucketResponse) GetCode() int32
- func (m *MsgDeactivateBucketResponse) GetMessage() string
- func (m *MsgDeactivateBucketResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateBucketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeactivateBucketResponse) ProtoMessage()
- func (m *MsgDeactivateBucketResponse) Reset()
- func (m *MsgDeactivateBucketResponse) Size() (n int)
- func (m *MsgDeactivateBucketResponse) String() string
- func (m *MsgDeactivateBucketResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeactivateBucketResponse) XXX_DiscardUnknown()
- func (m *MsgDeactivateBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateBucketResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateBucketResponse) XXX_Size() int
- func (m *MsgDeactivateBucketResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteWhichIs
- func (*MsgDeleteWhichIs) Descriptor() ([]byte, []int)
- func (m *MsgDeleteWhichIs) GetCreator() string
- func (m *MsgDeleteWhichIs) GetDid() string
- func (msg *MsgDeleteWhichIs) GetSignBytes() []byte
- func (msg *MsgDeleteWhichIs) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteWhichIs) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteWhichIs) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteWhichIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteWhichIs) ProtoMessage()
- func (m *MsgDeleteWhichIs) Reset()
- func (msg *MsgDeleteWhichIs) Route() string
- func (m *MsgDeleteWhichIs) Size() (n int)
- func (m *MsgDeleteWhichIs) String() string
- func (msg *MsgDeleteWhichIs) Type() string
- func (m *MsgDeleteWhichIs) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteWhichIs) ValidateBasic() error
- func (m *MsgDeleteWhichIs) XXX_DiscardUnknown()
- func (m *MsgDeleteWhichIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteWhichIs) XXX_Merge(src proto.Message)
- func (m *MsgDeleteWhichIs) XXX_Size() int
- func (m *MsgDeleteWhichIs) XXX_Unmarshal(b []byte) error
- type MsgDeleteWhichIsResponse
- func (*MsgDeleteWhichIsResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteWhichIsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteWhichIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteWhichIsResponse) ProtoMessage()
- func (m *MsgDeleteWhichIsResponse) Reset()
- func (m *MsgDeleteWhichIsResponse) Size() (n int)
- func (m *MsgDeleteWhichIsResponse) String() string
- func (m *MsgDeleteWhichIsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteWhichIsResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteWhichIsResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteWhichIsResponse) XXX_Size() int
- func (m *MsgDeleteWhichIsResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateBucket
- func (*MsgUpdateBucket) Descriptor() ([]byte, []int)
- func (m *MsgUpdateBucket) GetAddedObjectDids() []string
- func (m *MsgUpdateBucket) GetCreator() string
- func (m *MsgUpdateBucket) GetDescription() string
- func (m *MsgUpdateBucket) GetLabel() string
- func (m *MsgUpdateBucket) GetRemovedObjectDids() []string
- func (m *MsgUpdateBucket) GetSession() *types.Session
- func (msg *MsgUpdateBucket) GetSignBytes() []byte
- func (msg *MsgUpdateBucket) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateBucket) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateBucket) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateBucket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateBucket) ProtoMessage()
- func (m *MsgUpdateBucket) Reset()
- func (msg *MsgUpdateBucket) Route() string
- func (m *MsgUpdateBucket) Size() (n int)
- func (m *MsgUpdateBucket) String() string
- func (msg *MsgUpdateBucket) Type() string
- func (m *MsgUpdateBucket) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateBucket) ValidateBasic() error
- func (m *MsgUpdateBucket) XXX_DiscardUnknown()
- func (m *MsgUpdateBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateBucket) XXX_Merge(src proto.Message)
- func (m *MsgUpdateBucket) XXX_Size() int
- func (m *MsgUpdateBucket) XXX_Unmarshal(b []byte) error
- type MsgUpdateBucketResponse
- func (*MsgUpdateBucketResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateBucketResponse) GetCode() int32
- func (m *MsgUpdateBucketResponse) GetMessage() string
- func (m *MsgUpdateBucketResponse) GetWhichIs() *WhichIs
- func (m *MsgUpdateBucketResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateBucketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateBucketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateBucketResponse) ProtoMessage()
- func (m *MsgUpdateBucketResponse) Reset()
- func (m *MsgUpdateBucketResponse) Size() (n int)
- func (m *MsgUpdateBucketResponse) String() string
- func (m *MsgUpdateBucketResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateBucketResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateBucketResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateBucketResponse) XXX_Size() int
- func (m *MsgUpdateBucketResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateWhichIs
- func (*MsgUpdateWhichIs) Descriptor() ([]byte, []int)
- func (m *MsgUpdateWhichIs) GetBucket() *BucketDoc
- func (m *MsgUpdateWhichIs) GetCreator() string
- func (m *MsgUpdateWhichIs) GetDid() string
- func (msg *MsgUpdateWhichIs) GetSignBytes() []byte
- func (msg *MsgUpdateWhichIs) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateWhichIs) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateWhichIs) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateWhichIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateWhichIs) ProtoMessage()
- func (m *MsgUpdateWhichIs) Reset()
- func (msg *MsgUpdateWhichIs) Route() string
- func (m *MsgUpdateWhichIs) Size() (n int)
- func (m *MsgUpdateWhichIs) String() string
- func (msg *MsgUpdateWhichIs) Type() string
- func (m *MsgUpdateWhichIs) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateWhichIs) ValidateBasic() error
- func (m *MsgUpdateWhichIs) XXX_DiscardUnknown()
- func (m *MsgUpdateWhichIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateWhichIs) XXX_Merge(src proto.Message)
- func (m *MsgUpdateWhichIs) XXX_Size() int
- func (m *MsgUpdateWhichIs) XXX_Unmarshal(b []byte) error
- type MsgUpdateWhichIsResponse
- func (*MsgUpdateWhichIsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateWhichIsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateWhichIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateWhichIsResponse) ProtoMessage()
- func (m *MsgUpdateWhichIsResponse) Reset()
- func (m *MsgUpdateWhichIsResponse) Size() (n int)
- func (m *MsgUpdateWhichIsResponse) String() string
- func (m *MsgUpdateWhichIsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateWhichIsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateWhichIsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateWhichIsResponse) XXX_Size() int
- func (m *MsgUpdateWhichIsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllWhichIsRequest
- func (*QueryAllWhichIsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllWhichIsRequest) GetPagination() *query.PageRequest
- func (m *QueryAllWhichIsRequest) GetSession() *types.Session
- func (m *QueryAllWhichIsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllWhichIsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllWhichIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllWhichIsRequest) ProtoMessage()
- func (m *QueryAllWhichIsRequest) Reset()
- func (m *QueryAllWhichIsRequest) Size() (n int)
- func (m *QueryAllWhichIsRequest) String() string
- func (m *QueryAllWhichIsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllWhichIsRequest) XXX_DiscardUnknown()
- func (m *QueryAllWhichIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllWhichIsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllWhichIsRequest) XXX_Size() int
- func (m *QueryAllWhichIsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllWhichIsResponse
- func (*QueryAllWhichIsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllWhichIsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllWhichIsResponse) GetWhichIs() []WhichIs
- func (m *QueryAllWhichIsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllWhichIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllWhichIsResponse) ProtoMessage()
- func (m *QueryAllWhichIsResponse) Reset()
- func (m *QueryAllWhichIsResponse) Size() (n int)
- func (m *QueryAllWhichIsResponse) String() string
- func (m *QueryAllWhichIsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllWhichIsResponse) XXX_DiscardUnknown()
- func (m *QueryAllWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllWhichIsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllWhichIsResponse) XXX_Size() int
- func (m *QueryAllWhichIsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryWhichIsRequest
- func (*QueryWhichIsRequest) Descriptor() ([]byte, []int)
- func (m *QueryWhichIsRequest) GetDid() string
- func (m *QueryWhichIsRequest) GetSession() *types.Session
- func (m *QueryWhichIsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryWhichIsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWhichIsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWhichIsRequest) ProtoMessage()
- func (m *QueryWhichIsRequest) Reset()
- func (m *QueryWhichIsRequest) Size() (n int)
- func (m *QueryWhichIsRequest) String() string
- func (m *QueryWhichIsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryWhichIsRequest) XXX_DiscardUnknown()
- func (m *QueryWhichIsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWhichIsRequest) XXX_Merge(src proto.Message)
- func (m *QueryWhichIsRequest) XXX_Size() int
- func (m *QueryWhichIsRequest) XXX_Unmarshal(b []byte) error
- type QueryWhichIsResponse
- func (*QueryWhichIsResponse) Descriptor() ([]byte, []int)
- func (m *QueryWhichIsResponse) GetWhichIs() WhichIs
- func (m *QueryWhichIsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryWhichIsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWhichIsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWhichIsResponse) ProtoMessage()
- func (m *QueryWhichIsResponse) Reset()
- func (m *QueryWhichIsResponse) Size() (n int)
- func (m *QueryWhichIsResponse) String() string
- func (m *QueryWhichIsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryWhichIsResponse) XXX_DiscardUnknown()
- func (m *QueryWhichIsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWhichIsResponse) XXX_Merge(src proto.Message)
- func (m *QueryWhichIsResponse) XXX_Size() int
- func (m *QueryWhichIsResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateBucket(ctx context.Context, req *MsgCreateBucket) (*MsgCreateBucketResponse, error)
- func (*UnimplementedMsgServer) CreateWhichIs(ctx context.Context, req *MsgCreateWhichIs) (*MsgCreateWhichIsResponse, error)
- func (*UnimplementedMsgServer) DeactivateBucket(ctx context.Context, req *MsgDeactivateBucket) (*MsgDeactivateBucketResponse, error)
- func (*UnimplementedMsgServer) DeleteWhichIs(ctx context.Context, req *MsgDeleteWhichIs) (*MsgDeleteWhichIsResponse, error)
- func (*UnimplementedMsgServer) UpdateBucket(ctx context.Context, req *MsgUpdateBucket) (*MsgUpdateBucketResponse, error)
- func (*UnimplementedMsgServer) UpdateWhichIs(ctx context.Context, req *MsgUpdateWhichIs) (*MsgUpdateWhichIsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) WhichIs(ctx context.Context, req *QueryWhichIsRequest) (*QueryWhichIsResponse, error)
- func (*UnimplementedQueryServer) WhichIsAll(ctx context.Context, req *QueryAllWhichIsRequest) (*QueryAllWhichIsResponse, error)
- type WhichIs
- func (*WhichIs) Descriptor() ([]byte, []int)
- func (m *WhichIs) GetBucket() *BucketDoc
- func (m *WhichIs) GetCreator() string
- func (m *WhichIs) GetDid() string
- func (m *WhichIs) GetIsActive() bool
- func (m *WhichIs) GetTimestamp() int64
- func (m *WhichIs) Marshal() (dAtA []byte, err error)
- func (m *WhichIs) MarshalTo(dAtA []byte) (int, error)
- func (m *WhichIs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhichIs) ProtoMessage()
- func (m *WhichIs) Reset()
- func (m *WhichIs) Size() (n int)
- func (m *WhichIs) String() string
- func (m *WhichIs) Unmarshal(dAtA []byte) error
- func (m *WhichIs) XXX_DiscardUnknown()
- func (m *WhichIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhichIs) XXX_Merge(src proto.Message)
- func (m *WhichIs) XXX_Size() int
- func (m *WhichIs) XXX_Unmarshal(b []byte) error
Constants ¶
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" )
const ( TypeMsgCreateWhichIs = "create_which_is" TypeMsgUpdateWhichIs = "update_which_is" TypeMsgDeleteWhichIs = "delete_which_is" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgCreateBucket = "create_bucket"
const TypeMsgDeactivateBucket = "delete_bucket"
const TypeMsgUpdateBucket = "update_bucket"
const (
// WhichIsKeyPrefix is the prefix to retrieve all WhichIs
WhichIsKeyPrefix = "WhichIs/value/"
)
Variables ¶
var ( ErrInvalidLengthBucket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBucket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBucket = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") ErrInactiveBucket = sdkerrors.Register(ModuleName, 1104, "Requested bucket has been deactivated") )
x/bucket module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthWhichIs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowWhichIs = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupWhichIs = fmt.Errorf("proto: unexpected end of group") )
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",
}
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,
}
var BucketType_name = map[int32]string{
0: "BUCKET_TYPE_UNSPECIFIED",
1: "BUCKET_TYPE_APP",
2: "BUCKET_TYPE_USER",
}
var BucketType_value = map[string]int32{
"BUCKET_TYPE_UNSPECIFIED": 0,
"BUCKET_TYPE_APP": 1,
"BUCKET_TYPE_USER": 2,
}
Functions ¶
func NewBucketDocToBuf ¶ added in v0.0.11
func NewWhichIsToBuf ¶ added in v0.0.11
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 RegisterQueryHandler ¶
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 ¶
WhichIsKey returns the store key to retrieve a WhichIs from the did field
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
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 (*BucketDoc) AddObjects ¶ added in v0.0.9
AddObjects takes a list of fields and adds it to BucketDoc
func (*BucketDoc) Descriptor ¶ added in v0.0.8
func (*BucketDoc) GetDescription ¶ added in v0.0.8
func (*BucketDoc) GetObjectDids ¶ added in v0.0.8
func (*BucketDoc) GetType ¶ added in v0.0.8
func (m *BucketDoc) GetType() BucketType
func (*BucketDoc) MarshalToSizedBuffer ¶ added in v0.0.8
func (*BucketDoc) ProtoMessage ¶ added in v0.0.8
func (*BucketDoc) ProtoMessage()
func (*BucketDoc) RemoveObjects ¶ added in v0.0.9
RemoveObjects takes a list of Object Dids and removes the matching label from the BucketDoc
func (*BucketDoc) XXX_DiscardUnknown ¶ added in v0.0.8
func (m *BucketDoc) XXX_DiscardUnknown()
func (*BucketDoc) XXX_Marshal ¶ added in v0.0.8
func (*BucketDoc) XXX_Unmarshal ¶ added in v0.0.8
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) 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) 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 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) 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) 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) 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 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) 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) 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 (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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) CreateBucket(ctx context.Context, req *MsgCreateBucket) (*MsgCreateBucketResponse, error)
func (*UnimplementedMsgServer) CreateWhichIs ¶
func (*UnimplementedMsgServer) CreateWhichIs(ctx context.Context, req *MsgCreateWhichIs) (*MsgCreateWhichIsResponse, error)
func (*UnimplementedMsgServer) DeactivateBucket ¶ added in v0.0.9
func (*UnimplementedMsgServer) DeactivateBucket(ctx context.Context, req *MsgDeactivateBucket) (*MsgDeactivateBucketResponse, error)
func (*UnimplementedMsgServer) DeleteWhichIs ¶
func (*UnimplementedMsgServer) DeleteWhichIs(ctx context.Context, req *MsgDeleteWhichIs) (*MsgDeleteWhichIsResponse, error)
func (*UnimplementedMsgServer) UpdateBucket ¶
func (*UnimplementedMsgServer) UpdateBucket(ctx context.Context, req *MsgUpdateBucket) (*MsgUpdateBucketResponse, error)
func (*UnimplementedMsgServer) UpdateWhichIs ¶
func (*UnimplementedMsgServer) UpdateWhichIs(ctx context.Context, req *MsgUpdateWhichIs) (*MsgUpdateWhichIsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) WhichIs ¶
func (*UnimplementedQueryServer) WhichIs(ctx context.Context, req *QueryWhichIsRequest) (*QueryWhichIsResponse, error)
func (*UnimplementedQueryServer) WhichIsAll ¶
func (*UnimplementedQueryServer) WhichIsAll(ctx context.Context, req *QueryAllWhichIsRequest) (*QueryAllWhichIsResponse, error)
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 (*WhichIs) Descriptor ¶
func (*WhichIs) GetCreator ¶
func (*WhichIs) GetIsActive ¶ added in v0.0.9
func (*WhichIs) GetTimestamp ¶ added in v0.0.9
func (*WhichIs) MarshalToSizedBuffer ¶
func (*WhichIs) ProtoMessage ¶
func (*WhichIs) ProtoMessage()
func (*WhichIs) XXX_DiscardUnknown ¶
func (m *WhichIs) XXX_DiscardUnknown()
func (*WhichIs) XXX_Marshal ¶
func (*WhichIs) XXX_Unmarshal ¶
Source Files ¶
- bucket.go
- bucket.pb.go
- codec.go
- errors.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- key_which_is.go
- keys.go
- message_create_bucket.go
- message_deactivate_bucket.go
- message_update_bucket.go
- messages_which_is.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- tx.pb.go
- types.go
- which_is.go
- which_is.pb.go