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: 4

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 = "object"

	// 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_object"
)
View Source
const (
	TypeMsgCreateWhatIs = "create_what_is"
	TypeMsgUpdateWhatIs = "update_what_is"
	TypeMsgDeleteWhatIs = "delete_what_is"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgCreateObject = "create_object"
View Source
const TypeMsgDeactivateObject = "delete_object"
View Source
const TypeMsgUpdateObject = "update_object"
View Source
const (
	// WhatIsKeyPrefix is the prefix to retrieve all WhatIs
	WhatIsKeyPrefix = "WhatIs/value/"
)

Variables

View Source
var (
	ErrSample         = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrInactiveObject = sdkerrors.Register(ModuleName, 1104, "Requested object has been deactivated")
)

x/object 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 (
	ErrInvalidLengthObject        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowObject          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupObject = 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 (
	ErrInvalidLengthWhatIs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWhatIs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWhatIs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWhatis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWhatis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWhatis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var TypeKind_name = map[int32]string{
	0:  "TypeKind_Invalid",
	1:  "TypeKind_Map",
	2:  "TypeKind_List",
	3:  "TypeKind_Unit",
	4:  "TypeKind_Bool",
	5:  "TypeKind_Int",
	6:  "TypeKind_Float",
	7:  "TypeKind_String",
	8:  "TypeKind_Bytes",
	9:  "TypeKind_Link",
	10: "TypeKind_Struct",
	11: "TypeKind_Union",
	12: "TypeKind_Enum",
	13: "TypeKind_Any",
}
View Source
var TypeKind_value = map[string]int32{
	"TypeKind_Invalid": 0,
	"TypeKind_Map":     1,
	"TypeKind_List":    2,
	"TypeKind_Unit":    3,
	"TypeKind_Bool":    4,
	"TypeKind_Int":     5,
	"TypeKind_Float":   6,
	"TypeKind_String":  7,
	"TypeKind_Bytes":   8,
	"TypeKind_Link":    9,
	"TypeKind_Struct":  10,
	"TypeKind_Union":   11,
	"TypeKind_Enum":    12,
	"TypeKind_Any":     13,
}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func NewObjectDocToBuf added in v0.0.11

func NewObjectDocToBuf(obj *ObjectDoc) *ot.ObjectDoc

func NewTypeFieldListToBuf added in v0.0.11

func NewTypeFieldListToBuf(tfl []*TypeField) []*ot.TypeField

func NewTypeFieldToBuf added in v0.0.11

func NewTypeFieldToBuf(tf *TypeField) *ot.TypeField

func NewWhatIsToBuf added in v0.0.11

func NewWhatIsToBuf(cd *WhatIs) *ot.WhatIs

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 WhatIsKey

func WhatIsKey(did string) []byte

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 CapabilityKeeper

type CapabilityKeeper interface {
}

type GenesisState

type GenesisState struct {
	Params     Params   `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	WhatIsList []WhatIs `protobuf:"bytes,2,rep,name=whatIsList,proto3" json:"whatIsList"`
}

GenesisState defines the object 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) GetWhatIsList

func (m *GenesisState) GetWhatIsList() []WhatIs

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 {
	// CreateObject
	//
	// CreateObject is the transaction that creates a new object.
	CreateObject(ctx context.Context, in *MsgCreateObject, opts ...grpc.CallOption) (*MsgCreateObjectResponse, error)
	// UpdateObject
	//
	// UpdateObject is the transaction that updates an existing object.
	UpdateObject(ctx context.Context, in *MsgUpdateObject, opts ...grpc.CallOption) (*MsgUpdateObjectResponse, error)
	// DeactivateObject
	//
	// DeactivateObject is the transaction that deactivates an existing object.
	DeactivateObject(ctx context.Context, in *MsgDeactivateObject, opts ...grpc.CallOption) (*MsgDeactivateObjectResponse, error)
	// CreateWhatIs
	//
	// CreateWhatIs is the method that creates a new what_is document in the Object module.
	CreateWhatIs(ctx context.Context, in *MsgCreateWhatIs, opts ...grpc.CallOption) (*MsgCreateWhatIsResponse, error)
	// UpdateWhatIs
	//
	// UpdateWhatIs is the method that updates an existing what_is document in the Object module.
	UpdateWhatIs(ctx context.Context, in *MsgUpdateWhatIs, opts ...grpc.CallOption) (*MsgUpdateWhatIsResponse, error)
	// DeleteWhatIs
	//
	// DeleteWhatIs is the method that deletes an existing what_is document in the Object module.
	DeleteWhatIs(ctx context.Context, in *MsgDeleteWhatIs, opts ...grpc.CallOption) (*MsgDeleteWhatIsResponse, 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 MsgCreateObject

type MsgCreateObject 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"`
	InitialFields []*TypeField   `protobuf:"bytes,4,rep,name=initial_fields,json=initialFields,proto3" json:"initial_fields,omitempty"`
	Session       *types.Session `protobuf:"bytes,5,opt,name=session,proto3" json:"session,omitempty"`
}

func NewMsgCreateObject

func NewMsgCreateObject(creator string, label string, description string) *MsgCreateObject

func NewMsgCreateObjectFromBuf added in v0.0.11

func NewMsgCreateObjectFromBuf(ot *ot.MsgCreateObject) *MsgCreateObject

func (*MsgCreateObject) Descriptor

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

func (*MsgCreateObject) GetCreator

func (m *MsgCreateObject) GetCreator() string

func (*MsgCreateObject) GetDescription

func (m *MsgCreateObject) GetDescription() string

func (*MsgCreateObject) GetInitialFields added in v0.0.8

func (m *MsgCreateObject) GetInitialFields() []*TypeField

func (*MsgCreateObject) GetLabel

func (m *MsgCreateObject) GetLabel() string

func (*MsgCreateObject) GetSession added in v0.0.8

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

func (*MsgCreateObject) GetSignBytes

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

func (*MsgCreateObject) GetSigners

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

func (*MsgCreateObject) Marshal

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

func (*MsgCreateObject) MarshalTo

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

func (*MsgCreateObject) MarshalToSizedBuffer

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

func (*MsgCreateObject) ProtoMessage

func (*MsgCreateObject) ProtoMessage()

func (*MsgCreateObject) Reset

func (m *MsgCreateObject) Reset()

func (*MsgCreateObject) Route

func (msg *MsgCreateObject) Route() string

func (*MsgCreateObject) Size

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

func (*MsgCreateObject) String

func (m *MsgCreateObject) String() string

func (*MsgCreateObject) Type

func (msg *MsgCreateObject) Type() string

func (*MsgCreateObject) Unmarshal

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

func (*MsgCreateObject) ValidateBasic

func (msg *MsgCreateObject) ValidateBasic() error

func (*MsgCreateObject) XXX_DiscardUnknown

func (m *MsgCreateObject) XXX_DiscardUnknown()

func (*MsgCreateObject) XXX_Marshal

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

func (*MsgCreateObject) XXX_Merge

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

func (*MsgCreateObject) XXX_Size

func (m *MsgCreateObject) XXX_Size() int

func (*MsgCreateObject) XXX_Unmarshal

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

type MsgCreateObjectResponse

type MsgCreateObjectResponse 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"`
	// WhatIs of the Channel
	WhatIs *WhatIs `protobuf:"bytes,3,opt,name=what_is,json=whatIs,proto3" json:"what_is,omitempty"`
}

func (*MsgCreateObjectResponse) Descriptor

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

func (*MsgCreateObjectResponse) GetCode added in v0.0.8

func (m *MsgCreateObjectResponse) GetCode() int32

func (*MsgCreateObjectResponse) GetMessage added in v0.0.8

func (m *MsgCreateObjectResponse) GetMessage() string

func (*MsgCreateObjectResponse) GetWhatIs added in v0.0.8

func (m *MsgCreateObjectResponse) GetWhatIs() *WhatIs

func (*MsgCreateObjectResponse) Marshal

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

func (*MsgCreateObjectResponse) MarshalTo

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

func (*MsgCreateObjectResponse) MarshalToSizedBuffer

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

func (*MsgCreateObjectResponse) ProtoMessage

func (*MsgCreateObjectResponse) ProtoMessage()

func (*MsgCreateObjectResponse) Reset

func (m *MsgCreateObjectResponse) Reset()

func (*MsgCreateObjectResponse) Size

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

func (*MsgCreateObjectResponse) String

func (m *MsgCreateObjectResponse) String() string

func (*MsgCreateObjectResponse) Unmarshal

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

func (*MsgCreateObjectResponse) XXX_DiscardUnknown

func (m *MsgCreateObjectResponse) XXX_DiscardUnknown()

func (*MsgCreateObjectResponse) XXX_Marshal

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

func (*MsgCreateObjectResponse) XXX_Merge

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

func (*MsgCreateObjectResponse) XXX_Size

func (m *MsgCreateObjectResponse) XXX_Size() int

func (*MsgCreateObjectResponse) XXX_Unmarshal

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

type MsgCreateWhatIs

type MsgCreateWhatIs 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"`
	ObjectDoc *ObjectDoc `protobuf:"bytes,3,opt,name=object_doc,json=objectDoc,proto3" json:"object_doc,omitempty"`
}

func NewMsgCreateWhatIs

func NewMsgCreateWhatIs(
	creator string,
	did string,
	obj *ObjectDoc,
) *MsgCreateWhatIs

func NewMsgCreateWhatIsFromBuf added in v0.0.11

func NewMsgCreateWhatIsFromBuf(msg *ot.MsgCreateWhatIs) *MsgCreateWhatIs

func (*MsgCreateWhatIs) Descriptor

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

func (*MsgCreateWhatIs) GetCreator

func (m *MsgCreateWhatIs) GetCreator() string

func (*MsgCreateWhatIs) GetDid

func (m *MsgCreateWhatIs) GetDid() string

func (*MsgCreateWhatIs) GetObjectDoc added in v0.0.8

func (m *MsgCreateWhatIs) GetObjectDoc() *ObjectDoc

func (*MsgCreateWhatIs) GetSignBytes

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

func (*MsgCreateWhatIs) GetSigners

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

func (*MsgCreateWhatIs) Marshal

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

func (*MsgCreateWhatIs) MarshalTo

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

func (*MsgCreateWhatIs) MarshalToSizedBuffer

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

func (*MsgCreateWhatIs) ProtoMessage

func (*MsgCreateWhatIs) ProtoMessage()

func (*MsgCreateWhatIs) Reset

func (m *MsgCreateWhatIs) Reset()

func (*MsgCreateWhatIs) Route

func (msg *MsgCreateWhatIs) Route() string

func (*MsgCreateWhatIs) Size

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

func (*MsgCreateWhatIs) String

func (m *MsgCreateWhatIs) String() string

func (*MsgCreateWhatIs) Type

func (msg *MsgCreateWhatIs) Type() string

func (*MsgCreateWhatIs) Unmarshal

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

func (*MsgCreateWhatIs) ValidateBasic

func (msg *MsgCreateWhatIs) ValidateBasic() error

func (*MsgCreateWhatIs) XXX_DiscardUnknown

func (m *MsgCreateWhatIs) XXX_DiscardUnknown()

func (*MsgCreateWhatIs) XXX_Marshal

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

func (*MsgCreateWhatIs) XXX_Merge

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

func (*MsgCreateWhatIs) XXX_Size

func (m *MsgCreateWhatIs) XXX_Size() int

func (*MsgCreateWhatIs) XXX_Unmarshal

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

type MsgCreateWhatIsResponse

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

func (*MsgCreateWhatIsResponse) Descriptor

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

func (*MsgCreateWhatIsResponse) GetDid added in v0.0.8

func (m *MsgCreateWhatIsResponse) GetDid() string

func (*MsgCreateWhatIsResponse) Marshal

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

func (*MsgCreateWhatIsResponse) MarshalTo

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

func (*MsgCreateWhatIsResponse) MarshalToSizedBuffer

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

func (*MsgCreateWhatIsResponse) ProtoMessage

func (*MsgCreateWhatIsResponse) ProtoMessage()

func (*MsgCreateWhatIsResponse) Reset

func (m *MsgCreateWhatIsResponse) Reset()

func (*MsgCreateWhatIsResponse) Size

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

func (*MsgCreateWhatIsResponse) String

func (m *MsgCreateWhatIsResponse) String() string

func (*MsgCreateWhatIsResponse) Unmarshal

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

func (*MsgCreateWhatIsResponse) XXX_DiscardUnknown

func (m *MsgCreateWhatIsResponse) XXX_DiscardUnknown()

func (*MsgCreateWhatIsResponse) XXX_Marshal

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

func (*MsgCreateWhatIsResponse) XXX_Merge

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

func (*MsgCreateWhatIsResponse) XXX_Size

func (m *MsgCreateWhatIsResponse) XXX_Size() int

func (*MsgCreateWhatIsResponse) XXX_Unmarshal

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

type MsgDeactivateObject added in v0.0.9

type MsgDeactivateObject 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 NewMsgDeactivateObject added in v0.0.9

func NewMsgDeactivateObject(creator string, did string, session *rtv1.Session) *MsgDeactivateObject

func NewMsgDeactivateObjectFromBuf added in v0.0.11

func NewMsgDeactivateObjectFromBuf(msg *ot.MsgDeactivateObject) *MsgDeactivateObject

func (*MsgDeactivateObject) Descriptor added in v0.0.9

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

func (*MsgDeactivateObject) GetCreator added in v0.0.9

func (m *MsgDeactivateObject) GetCreator() string

func (*MsgDeactivateObject) GetDid added in v0.0.9

func (m *MsgDeactivateObject) GetDid() string

func (*MsgDeactivateObject) GetSession added in v0.0.9

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

func (*MsgDeactivateObject) GetSignBytes added in v0.0.9

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

func (*MsgDeactivateObject) GetSigners added in v0.0.9

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

func (*MsgDeactivateObject) Marshal added in v0.0.9

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

func (*MsgDeactivateObject) MarshalTo added in v0.0.9

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

func (*MsgDeactivateObject) MarshalToSizedBuffer added in v0.0.9

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

func (*MsgDeactivateObject) ProtoMessage added in v0.0.9

func (*MsgDeactivateObject) ProtoMessage()

func (*MsgDeactivateObject) Reset added in v0.0.9

func (m *MsgDeactivateObject) Reset()

func (*MsgDeactivateObject) Route added in v0.0.9

func (msg *MsgDeactivateObject) Route() string

func (*MsgDeactivateObject) Size added in v0.0.9

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

func (*MsgDeactivateObject) String added in v0.0.9

func (m *MsgDeactivateObject) String() string

func (*MsgDeactivateObject) Type added in v0.0.9

func (msg *MsgDeactivateObject) Type() string

func (*MsgDeactivateObject) Unmarshal added in v0.0.9

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

func (*MsgDeactivateObject) ValidateBasic added in v0.0.9

func (msg *MsgDeactivateObject) ValidateBasic() error

func (*MsgDeactivateObject) XXX_DiscardUnknown added in v0.0.9

func (m *MsgDeactivateObject) XXX_DiscardUnknown()

func (*MsgDeactivateObject) XXX_Marshal added in v0.0.9

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

func (*MsgDeactivateObject) XXX_Merge added in v0.0.9

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

func (*MsgDeactivateObject) XXX_Size added in v0.0.9

func (m *MsgDeactivateObject) XXX_Size() int

func (*MsgDeactivateObject) XXX_Unmarshal added in v0.0.9

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

type MsgDeactivateObjectResponse added in v0.0.9

type MsgDeactivateObjectResponse 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 (*MsgDeactivateObjectResponse) Descriptor added in v0.0.9

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

func (*MsgDeactivateObjectResponse) GetCode added in v0.0.9

func (m *MsgDeactivateObjectResponse) GetCode() int32

func (*MsgDeactivateObjectResponse) GetMessage added in v0.0.9

func (m *MsgDeactivateObjectResponse) GetMessage() string

func (*MsgDeactivateObjectResponse) Marshal added in v0.0.9

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

func (*MsgDeactivateObjectResponse) MarshalTo added in v0.0.9

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

func (*MsgDeactivateObjectResponse) MarshalToSizedBuffer added in v0.0.9

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

func (*MsgDeactivateObjectResponse) ProtoMessage added in v0.0.9

func (*MsgDeactivateObjectResponse) ProtoMessage()

func (*MsgDeactivateObjectResponse) Reset added in v0.0.9

func (m *MsgDeactivateObjectResponse) Reset()

func (*MsgDeactivateObjectResponse) Size added in v0.0.9

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

func (*MsgDeactivateObjectResponse) String added in v0.0.9

func (m *MsgDeactivateObjectResponse) String() string

func (*MsgDeactivateObjectResponse) Unmarshal added in v0.0.9

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

func (*MsgDeactivateObjectResponse) XXX_DiscardUnknown added in v0.0.9

func (m *MsgDeactivateObjectResponse) XXX_DiscardUnknown()

func (*MsgDeactivateObjectResponse) XXX_Marshal added in v0.0.9

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

func (*MsgDeactivateObjectResponse) XXX_Merge added in v0.0.9

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

func (*MsgDeactivateObjectResponse) XXX_Size added in v0.0.9

func (m *MsgDeactivateObjectResponse) XXX_Size() int

func (*MsgDeactivateObjectResponse) XXX_Unmarshal added in v0.0.9

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

type MsgDeleteWhatIs

type MsgDeleteWhatIs 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 NewMsgDeleteWhatIs

func NewMsgDeleteWhatIs(
	creator string,
	did string,
) *MsgDeleteWhatIs

func (*MsgDeleteWhatIs) Descriptor

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

func (*MsgDeleteWhatIs) GetCreator

func (m *MsgDeleteWhatIs) GetCreator() string

func (*MsgDeleteWhatIs) GetDid added in v0.0.8

func (m *MsgDeleteWhatIs) GetDid() string

func (*MsgDeleteWhatIs) GetSignBytes

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

func (*MsgDeleteWhatIs) GetSigners

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

func (*MsgDeleteWhatIs) Marshal

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

func (*MsgDeleteWhatIs) MarshalTo

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

func (*MsgDeleteWhatIs) MarshalToSizedBuffer

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

func (*MsgDeleteWhatIs) ProtoMessage

func (*MsgDeleteWhatIs) ProtoMessage()

func (*MsgDeleteWhatIs) Reset

func (m *MsgDeleteWhatIs) Reset()

func (*MsgDeleteWhatIs) Route

func (msg *MsgDeleteWhatIs) Route() string

func (*MsgDeleteWhatIs) Size

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

func (*MsgDeleteWhatIs) String

func (m *MsgDeleteWhatIs) String() string

func (*MsgDeleteWhatIs) Type

func (msg *MsgDeleteWhatIs) Type() string

func (*MsgDeleteWhatIs) Unmarshal

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

func (*MsgDeleteWhatIs) ValidateBasic

func (msg *MsgDeleteWhatIs) ValidateBasic() error

func (*MsgDeleteWhatIs) XXX_DiscardUnknown

func (m *MsgDeleteWhatIs) XXX_DiscardUnknown()

func (*MsgDeleteWhatIs) XXX_Marshal

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

func (*MsgDeleteWhatIs) XXX_Merge

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

func (*MsgDeleteWhatIs) XXX_Size

func (m *MsgDeleteWhatIs) XXX_Size() int

func (*MsgDeleteWhatIs) XXX_Unmarshal

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

type MsgDeleteWhatIsResponse

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

func (*MsgDeleteWhatIsResponse) Descriptor

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

func (*MsgDeleteWhatIsResponse) GetDid added in v0.0.8

func (m *MsgDeleteWhatIsResponse) GetDid() string

func (*MsgDeleteWhatIsResponse) Marshal

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

func (*MsgDeleteWhatIsResponse) MarshalTo

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

func (*MsgDeleteWhatIsResponse) MarshalToSizedBuffer

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

func (*MsgDeleteWhatIsResponse) ProtoMessage

func (*MsgDeleteWhatIsResponse) ProtoMessage()

func (*MsgDeleteWhatIsResponse) Reset

func (m *MsgDeleteWhatIsResponse) Reset()

func (*MsgDeleteWhatIsResponse) Size

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

func (*MsgDeleteWhatIsResponse) String

func (m *MsgDeleteWhatIsResponse) String() string

func (*MsgDeleteWhatIsResponse) Unmarshal

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

func (*MsgDeleteWhatIsResponse) XXX_DiscardUnknown

func (m *MsgDeleteWhatIsResponse) XXX_DiscardUnknown()

func (*MsgDeleteWhatIsResponse) XXX_Marshal

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

func (*MsgDeleteWhatIsResponse) XXX_Merge

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

func (*MsgDeleteWhatIsResponse) XXX_Size

func (m *MsgDeleteWhatIsResponse) XXX_Size() int

func (*MsgDeleteWhatIsResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateObject
	//
	// CreateObject is the transaction that creates a new object.
	CreateObject(context.Context, *MsgCreateObject) (*MsgCreateObjectResponse, error)
	// UpdateObject
	//
	// UpdateObject is the transaction that updates an existing object.
	UpdateObject(context.Context, *MsgUpdateObject) (*MsgUpdateObjectResponse, error)
	// DeactivateObject
	//
	// DeactivateObject is the transaction that deactivates an existing object.
	DeactivateObject(context.Context, *MsgDeactivateObject) (*MsgDeactivateObjectResponse, error)
	// CreateWhatIs
	//
	// CreateWhatIs is the method that creates a new what_is document in the Object module.
	CreateWhatIs(context.Context, *MsgCreateWhatIs) (*MsgCreateWhatIsResponse, error)
	// UpdateWhatIs
	//
	// UpdateWhatIs is the method that updates an existing what_is document in the Object module.
	UpdateWhatIs(context.Context, *MsgUpdateWhatIs) (*MsgUpdateWhatIsResponse, error)
	// DeleteWhatIs
	//
	// DeleteWhatIs is the method that deletes an existing what_is document in the Object module.
	DeleteWhatIs(context.Context, *MsgDeleteWhatIs) (*MsgDeleteWhatIsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateObject

type MsgUpdateObject struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// Label of the Object
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// Authenticated session data
	Session *types.Session `protobuf:"bytes,3,opt,name=session,proto3" json:"session,omitempty"`
	// Added fields to the object
	AddedFields []*TypeField `protobuf:"bytes,4,rep,name=added_fields,json=addedFields,proto3" json:"added_fields,omitempty"`
	// Removed fields from the object
	RemovedFields []*TypeField `protobuf:"bytes,5,rep,name=removed_fields,json=removedFields,proto3" json:"removed_fields,omitempty"`
	// Contend Identifier of the object
	Cid string `protobuf:"bytes,6,opt,name=cid,proto3" json:"cid,omitempty"`
}

func NewMsgUpdateObject

func NewMsgUpdateObject(creator string, did string) *MsgUpdateObject

TODO: Add validation for fields

func NewMsgUpdateObjectFromBuf added in v0.0.11

func NewMsgUpdateObjectFromBuf(ot *ot.MsgUpdateObject) *MsgUpdateObject

func (*MsgUpdateObject) Descriptor

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

func (*MsgUpdateObject) GetAddedFields added in v0.0.8

func (m *MsgUpdateObject) GetAddedFields() []*TypeField

func (*MsgUpdateObject) GetCid added in v0.0.11

func (m *MsgUpdateObject) GetCid() string

func (*MsgUpdateObject) GetCreator

func (m *MsgUpdateObject) GetCreator() string

func (*MsgUpdateObject) GetLabel added in v0.0.8

func (m *MsgUpdateObject) GetLabel() string

func (*MsgUpdateObject) GetRemovedFields added in v0.0.8

func (m *MsgUpdateObject) GetRemovedFields() []*TypeField

func (*MsgUpdateObject) GetSession added in v0.0.8

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

func (*MsgUpdateObject) GetSignBytes

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

func (*MsgUpdateObject) GetSigners

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

func (*MsgUpdateObject) Marshal

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

func (*MsgUpdateObject) MarshalTo

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

func (*MsgUpdateObject) MarshalToSizedBuffer

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

func (*MsgUpdateObject) ProtoMessage

func (*MsgUpdateObject) ProtoMessage()

func (*MsgUpdateObject) Reset

func (m *MsgUpdateObject) Reset()

func (*MsgUpdateObject) Route

func (msg *MsgUpdateObject) Route() string

func (*MsgUpdateObject) Size

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

func (*MsgUpdateObject) String

func (m *MsgUpdateObject) String() string

func (*MsgUpdateObject) Type

func (msg *MsgUpdateObject) Type() string

func (*MsgUpdateObject) Unmarshal

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

func (*MsgUpdateObject) ValidateBasic

func (msg *MsgUpdateObject) ValidateBasic() error

func (*MsgUpdateObject) XXX_DiscardUnknown

func (m *MsgUpdateObject) XXX_DiscardUnknown()

func (*MsgUpdateObject) XXX_Marshal

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

func (*MsgUpdateObject) XXX_Merge

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

func (*MsgUpdateObject) XXX_Size

func (m *MsgUpdateObject) XXX_Size() int

func (*MsgUpdateObject) XXX_Unmarshal

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

type MsgUpdateObjectResponse

type MsgUpdateObjectResponse 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"`
	// WhatIs of the Channel
	WhatIs *WhatIs `protobuf:"bytes,3,opt,name=what_is,json=whatIs,proto3" json:"what_is,omitempty"`
}

func (*MsgUpdateObjectResponse) Descriptor

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

func (*MsgUpdateObjectResponse) GetCode added in v0.0.8

func (m *MsgUpdateObjectResponse) GetCode() int32

func (*MsgUpdateObjectResponse) GetMessage added in v0.0.8

func (m *MsgUpdateObjectResponse) GetMessage() string

func (*MsgUpdateObjectResponse) GetWhatIs added in v0.0.8

func (m *MsgUpdateObjectResponse) GetWhatIs() *WhatIs

func (*MsgUpdateObjectResponse) Marshal

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

func (*MsgUpdateObjectResponse) MarshalTo

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

func (*MsgUpdateObjectResponse) MarshalToSizedBuffer

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

func (*MsgUpdateObjectResponse) ProtoMessage

func (*MsgUpdateObjectResponse) ProtoMessage()

func (*MsgUpdateObjectResponse) Reset

func (m *MsgUpdateObjectResponse) Reset()

func (*MsgUpdateObjectResponse) Size

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

func (*MsgUpdateObjectResponse) String

func (m *MsgUpdateObjectResponse) String() string

func (*MsgUpdateObjectResponse) Unmarshal

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

func (*MsgUpdateObjectResponse) XXX_DiscardUnknown

func (m *MsgUpdateObjectResponse) XXX_DiscardUnknown()

func (*MsgUpdateObjectResponse) XXX_Marshal

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

func (*MsgUpdateObjectResponse) XXX_Merge

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

func (*MsgUpdateObjectResponse) XXX_Size

func (m *MsgUpdateObjectResponse) XXX_Size() int

func (*MsgUpdateObjectResponse) XXX_Unmarshal

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

type MsgUpdateWhatIs

type MsgUpdateWhatIs 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"`
	ObjectDoc *ObjectDoc `protobuf:"bytes,3,opt,name=object_doc,json=objectDoc,proto3" json:"object_doc,omitempty"`
}

func NewMsgUpdateWhatIs

func NewMsgUpdateWhatIs(
	creator string,
	did string,
	obj *ObjectDoc,
) *MsgUpdateWhatIs

func (*MsgUpdateWhatIs) Descriptor

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

func (*MsgUpdateWhatIs) GetCreator

func (m *MsgUpdateWhatIs) GetCreator() string

func (*MsgUpdateWhatIs) GetDid

func (m *MsgUpdateWhatIs) GetDid() string

func (*MsgUpdateWhatIs) GetObjectDoc added in v0.0.8

func (m *MsgUpdateWhatIs) GetObjectDoc() *ObjectDoc

func (*MsgUpdateWhatIs) GetSignBytes

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

func (*MsgUpdateWhatIs) GetSigners

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

func (*MsgUpdateWhatIs) Marshal

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

func (*MsgUpdateWhatIs) MarshalTo

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

func (*MsgUpdateWhatIs) MarshalToSizedBuffer

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

func (*MsgUpdateWhatIs) ProtoMessage

func (*MsgUpdateWhatIs) ProtoMessage()

func (*MsgUpdateWhatIs) Reset

func (m *MsgUpdateWhatIs) Reset()

func (*MsgUpdateWhatIs) Route

func (msg *MsgUpdateWhatIs) Route() string

func (*MsgUpdateWhatIs) Size

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

func (*MsgUpdateWhatIs) String

func (m *MsgUpdateWhatIs) String() string

func (*MsgUpdateWhatIs) Type

func (msg *MsgUpdateWhatIs) Type() string

func (*MsgUpdateWhatIs) Unmarshal

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

func (*MsgUpdateWhatIs) ValidateBasic

func (msg *MsgUpdateWhatIs) ValidateBasic() error

func (*MsgUpdateWhatIs) XXX_DiscardUnknown

func (m *MsgUpdateWhatIs) XXX_DiscardUnknown()

func (*MsgUpdateWhatIs) XXX_Marshal

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

func (*MsgUpdateWhatIs) XXX_Merge

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

func (*MsgUpdateWhatIs) XXX_Size

func (m *MsgUpdateWhatIs) XXX_Size() int

func (*MsgUpdateWhatIs) XXX_Unmarshal

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

type MsgUpdateWhatIsResponse

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

func (*MsgUpdateWhatIsResponse) Descriptor

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

func (*MsgUpdateWhatIsResponse) GetDid added in v0.0.8

func (m *MsgUpdateWhatIsResponse) GetDid() string

func (*MsgUpdateWhatIsResponse) Marshal

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

func (*MsgUpdateWhatIsResponse) MarshalTo

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

func (*MsgUpdateWhatIsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateWhatIsResponse) ProtoMessage

func (*MsgUpdateWhatIsResponse) ProtoMessage()

func (*MsgUpdateWhatIsResponse) Reset

func (m *MsgUpdateWhatIsResponse) Reset()

func (*MsgUpdateWhatIsResponse) Size

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

func (*MsgUpdateWhatIsResponse) String

func (m *MsgUpdateWhatIsResponse) String() string

func (*MsgUpdateWhatIsResponse) Unmarshal

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

func (*MsgUpdateWhatIsResponse) XXX_DiscardUnknown

func (m *MsgUpdateWhatIsResponse) XXX_DiscardUnknown()

func (*MsgUpdateWhatIsResponse) XXX_Marshal

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

func (*MsgUpdateWhatIsResponse) XXX_Merge

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

func (*MsgUpdateWhatIsResponse) XXX_Size

func (m *MsgUpdateWhatIsResponse) XXX_Size() int

func (*MsgUpdateWhatIsResponse) XXX_Unmarshal

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

type ObjectDoc

type ObjectDoc 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"`
	// Did is the identifier of the object.
	Did string `protobuf:"bytes,3,opt,name=did,proto3" json:"did,omitempty"`
	// Bucket is the did of the bucket that contains this object.
	BucketDid string `protobuf:"bytes,4,opt,name=bucket_did,json=bucketDid,proto3" json:"bucket_did,omitempty"`
	// Fields are the fields associated with the object.
	Fields []*TypeField `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty"`
}

ObjectDoc is a document for an Object stored in the graph.

func NewObjectDocFromBuf added in v0.0.11

func NewObjectDocFromBuf(obj *ot.ObjectDoc) *ObjectDoc

func (*ObjectDoc) AddFields added in v0.0.8

func (o *ObjectDoc) AddFields(l ...*TypeField)

AddFields takes a list of fields and adds it to ObjectDoc

func (*ObjectDoc) Descriptor

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

func (*ObjectDoc) GetBucketDid

func (m *ObjectDoc) GetBucketDid() string

func (*ObjectDoc) GetDescription

func (m *ObjectDoc) GetDescription() string

func (*ObjectDoc) GetDid

func (m *ObjectDoc) GetDid() string

func (*ObjectDoc) GetFields

func (m *ObjectDoc) GetFields() []*TypeField

func (*ObjectDoc) GetLabel

func (m *ObjectDoc) GetLabel() string

func (*ObjectDoc) Marshal

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

func (*ObjectDoc) MarshalTo

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

func (*ObjectDoc) MarshalToSizedBuffer

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

func (*ObjectDoc) ProtoMessage

func (*ObjectDoc) ProtoMessage()

func (*ObjectDoc) RemoveFields added in v0.0.8

func (o *ObjectDoc) RemoveFields(l ...*TypeField)

RemoveFields takes a list of ObjectFields and removes the matching label from the ObjectDoc

func (*ObjectDoc) Reset

func (m *ObjectDoc) Reset()

func (*ObjectDoc) Size

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

func (*ObjectDoc) String

func (m *ObjectDoc) String() string

func (*ObjectDoc) Unmarshal

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

func (*ObjectDoc) Validate

func (o *ObjectDoc) Validate(b *ObjectDoc) bool

func (*ObjectDoc) XXX_DiscardUnknown

func (m *ObjectDoc) XXX_DiscardUnknown()

func (*ObjectDoc) XXX_Marshal

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

func (*ObjectDoc) XXX_Merge

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

func (*ObjectDoc) XXX_Size

func (m *ObjectDoc) XXX_Size() int

func (*ObjectDoc) XXX_Unmarshal

func (m *ObjectDoc) 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 QueryAllWhatIsRequest

type QueryAllWhatIsRequest 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 (*QueryAllWhatIsRequest) Descriptor

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

func (*QueryAllWhatIsRequest) GetPagination

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

func (*QueryAllWhatIsRequest) GetSession added in v0.0.8

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

func (*QueryAllWhatIsRequest) Marshal

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

func (*QueryAllWhatIsRequest) MarshalTo

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

func (*QueryAllWhatIsRequest) MarshalToSizedBuffer

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

func (*QueryAllWhatIsRequest) ProtoMessage

func (*QueryAllWhatIsRequest) ProtoMessage()

func (*QueryAllWhatIsRequest) Reset

func (m *QueryAllWhatIsRequest) Reset()

func (*QueryAllWhatIsRequest) Size

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

func (*QueryAllWhatIsRequest) String

func (m *QueryAllWhatIsRequest) String() string

func (*QueryAllWhatIsRequest) Unmarshal

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

func (*QueryAllWhatIsRequest) XXX_DiscardUnknown

func (m *QueryAllWhatIsRequest) XXX_DiscardUnknown()

func (*QueryAllWhatIsRequest) XXX_Marshal

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

func (*QueryAllWhatIsRequest) XXX_Merge

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

func (*QueryAllWhatIsRequest) XXX_Size

func (m *QueryAllWhatIsRequest) XXX_Size() int

func (*QueryAllWhatIsRequest) XXX_Unmarshal

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

type QueryAllWhatIsResponse

type QueryAllWhatIsResponse struct {
	WhatIs     []WhatIs            `protobuf:"bytes,1,rep,name=what_is,json=whatIs,proto3" json:"what_is"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllWhatIsResponse) Descriptor

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

func (*QueryAllWhatIsResponse) GetPagination

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

func (*QueryAllWhatIsResponse) GetWhatIs

func (m *QueryAllWhatIsResponse) GetWhatIs() []WhatIs

func (*QueryAllWhatIsResponse) Marshal

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

func (*QueryAllWhatIsResponse) MarshalTo

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

func (*QueryAllWhatIsResponse) MarshalToSizedBuffer

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

func (*QueryAllWhatIsResponse) ProtoMessage

func (*QueryAllWhatIsResponse) ProtoMessage()

func (*QueryAllWhatIsResponse) Reset

func (m *QueryAllWhatIsResponse) Reset()

func (*QueryAllWhatIsResponse) Size

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

func (*QueryAllWhatIsResponse) String

func (m *QueryAllWhatIsResponse) String() string

func (*QueryAllWhatIsResponse) Unmarshal

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

func (*QueryAllWhatIsResponse) XXX_DiscardUnknown

func (m *QueryAllWhatIsResponse) XXX_DiscardUnknown()

func (*QueryAllWhatIsResponse) XXX_Marshal

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

func (*QueryAllWhatIsResponse) XXX_Merge

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

func (*QueryAllWhatIsResponse) XXX_Size

func (m *QueryAllWhatIsResponse) XXX_Size() int

func (*QueryAllWhatIsResponse) XXX_Unmarshal

func (m *QueryAllWhatIsResponse) 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)
	// WhatIs
	//
	// Queries a WhatIs by DID.
	WhatIs(ctx context.Context, in *QueryWhatIsRequest, opts ...grpc.CallOption) (*QueryWhatIsResponse, error)
	// WhatIsAll
	//
	// Queries a list of WhatIs items.
	WhatIsAll(ctx context.Context, in *QueryAllWhatIsRequest, opts ...grpc.CallOption) (*QueryAllWhatIsResponse, 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)
	// WhatIs
	//
	// Queries a WhatIs by DID.
	WhatIs(context.Context, *QueryWhatIsRequest) (*QueryWhatIsResponse, error)
	// WhatIsAll
	//
	// Queries a list of WhatIs items.
	WhatIsAll(context.Context, *QueryAllWhatIsRequest) (*QueryAllWhatIsResponse, error)
}

QueryServer is the server API for Query service.

type QueryWhatIsRequest added in v0.0.10

type QueryWhatIsRequest 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 (*QueryWhatIsRequest) Descriptor added in v0.0.10

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

func (*QueryWhatIsRequest) GetDid added in v0.0.10

func (m *QueryWhatIsRequest) GetDid() string

func (*QueryWhatIsRequest) GetSession added in v0.0.10

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

func (*QueryWhatIsRequest) Marshal added in v0.0.10

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

func (*QueryWhatIsRequest) MarshalTo added in v0.0.10

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

func (*QueryWhatIsRequest) MarshalToSizedBuffer added in v0.0.10

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

func (*QueryWhatIsRequest) ProtoMessage added in v0.0.10

func (*QueryWhatIsRequest) ProtoMessage()

func (*QueryWhatIsRequest) Reset added in v0.0.10

func (m *QueryWhatIsRequest) Reset()

func (*QueryWhatIsRequest) Size added in v0.0.10

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

func (*QueryWhatIsRequest) String added in v0.0.10

func (m *QueryWhatIsRequest) String() string

func (*QueryWhatIsRequest) Unmarshal added in v0.0.10

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

func (*QueryWhatIsRequest) XXX_DiscardUnknown added in v0.0.10

func (m *QueryWhatIsRequest) XXX_DiscardUnknown()

func (*QueryWhatIsRequest) XXX_Marshal added in v0.0.10

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

func (*QueryWhatIsRequest) XXX_Merge added in v0.0.10

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

func (*QueryWhatIsRequest) XXX_Size added in v0.0.10

func (m *QueryWhatIsRequest) XXX_Size() int

func (*QueryWhatIsRequest) XXX_Unmarshal added in v0.0.10

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

type QueryWhatIsResponse added in v0.0.10

type QueryWhatIsResponse struct {
	WhatIs WhatIs `protobuf:"bytes,1,opt,name=what_is,json=whatIs,proto3" json:"what_is"`
}

func (*QueryWhatIsResponse) Descriptor added in v0.0.10

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

func (*QueryWhatIsResponse) GetWhatIs added in v0.0.10

func (m *QueryWhatIsResponse) GetWhatIs() WhatIs

func (*QueryWhatIsResponse) Marshal added in v0.0.10

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

func (*QueryWhatIsResponse) MarshalTo added in v0.0.10

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

func (*QueryWhatIsResponse) MarshalToSizedBuffer added in v0.0.10

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

func (*QueryWhatIsResponse) ProtoMessage added in v0.0.10

func (*QueryWhatIsResponse) ProtoMessage()

func (*QueryWhatIsResponse) Reset added in v0.0.10

func (m *QueryWhatIsResponse) Reset()

func (*QueryWhatIsResponse) Size added in v0.0.10

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

func (*QueryWhatIsResponse) String added in v0.0.10

func (m *QueryWhatIsResponse) String() string

func (*QueryWhatIsResponse) Unmarshal added in v0.0.10

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

func (*QueryWhatIsResponse) XXX_DiscardUnknown added in v0.0.10

func (m *QueryWhatIsResponse) XXX_DiscardUnknown()

func (*QueryWhatIsResponse) XXX_Marshal added in v0.0.10

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

func (*QueryWhatIsResponse) XXX_Merge added in v0.0.10

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

func (*QueryWhatIsResponse) XXX_Size added in v0.0.10

func (m *QueryWhatIsResponse) XXX_Size() int

func (*QueryWhatIsResponse) XXX_Unmarshal added in v0.0.10

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

type TypeField added in v0.0.11

type TypeField struct {
	// Name is the name of the field.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Type is the type of the field.
	Kind TypeKind `protobuf:"varint,2,opt,name=kind,proto3,enum=sonrio.sonr.object.TypeKind" json:"kind,omitempty"`
}

func NewTypeFieldFromBuf added in v0.0.11

func NewTypeFieldFromBuf(tf *ot.TypeField) *TypeField

func NewTypeFieldListFromBuf added in v0.0.11

func NewTypeFieldListFromBuf(tfl []*ot.TypeField) []*TypeField

func (*TypeField) Descriptor added in v0.0.11

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

func (*TypeField) GetKind added in v0.0.11

func (m *TypeField) GetKind() TypeKind

func (*TypeField) GetName added in v0.0.11

func (m *TypeField) GetName() string

func (*TypeField) Marshal added in v0.0.11

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

func (*TypeField) MarshalTo added in v0.0.11

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

func (*TypeField) MarshalToSizedBuffer added in v0.0.11

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

func (*TypeField) ProtoMessage added in v0.0.11

func (*TypeField) ProtoMessage()

func (*TypeField) Reset added in v0.0.11

func (m *TypeField) Reset()

func (*TypeField) Size added in v0.0.11

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

func (*TypeField) String added in v0.0.11

func (m *TypeField) String() string

func (*TypeField) Unmarshal added in v0.0.11

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

func (*TypeField) XXX_DiscardUnknown added in v0.0.11

func (m *TypeField) XXX_DiscardUnknown()

func (*TypeField) XXX_Marshal added in v0.0.11

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

func (*TypeField) XXX_Merge added in v0.0.11

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

func (*TypeField) XXX_Size added in v0.0.11

func (m *TypeField) XXX_Size() int

func (*TypeField) XXX_Unmarshal added in v0.0.11

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

type TypeKind added in v0.0.11

type TypeKind int32
const (
	TypeKind_TypeKind_Invalid TypeKind = 0
	TypeKind_TypeKind_Map     TypeKind = 1
	TypeKind_TypeKind_List    TypeKind = 2
	TypeKind_TypeKind_Unit    TypeKind = 3
	TypeKind_TypeKind_Bool    TypeKind = 4
	TypeKind_TypeKind_Int     TypeKind = 5
	TypeKind_TypeKind_Float   TypeKind = 6
	TypeKind_TypeKind_String  TypeKind = 7
	TypeKind_TypeKind_Bytes   TypeKind = 8
	TypeKind_TypeKind_Link    TypeKind = 9
	TypeKind_TypeKind_Struct  TypeKind = 10
	TypeKind_TypeKind_Union   TypeKind = 11
	TypeKind_TypeKind_Enum    TypeKind = 12
	TypeKind_TypeKind_Any     TypeKind = 13
)

func (TypeKind) EnumDescriptor added in v0.0.11

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

func (TypeKind) String added in v0.0.11

func (x TypeKind) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateObject

func (*UnimplementedMsgServer) CreateWhatIs

func (*UnimplementedMsgServer) DeactivateObject added in v0.0.9

func (*UnimplementedMsgServer) DeleteWhatIs

func (*UnimplementedMsgServer) UpdateObject

func (*UnimplementedMsgServer) UpdateWhatIs

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) WhatIs

func (*UnimplementedQueryServer) WhatIsAll

type WhatIs

type WhatIs struct {
	// DID is the DID of the object
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
	// Object_doc is the object document
	ObjectDoc *ObjectDoc `protobuf:"bytes,2,opt,name=object_doc,json=objectDoc,proto3" json:"object_doc,omitempty"`
	// Creator is the DID of the creator
	Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
	// Timestamp is the time of the last update of the DID Document
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// IsActive is the status of the DID Document
	IsActive bool `protobuf:"varint,5,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
}

func NewWhatIsFromBuf added in v0.0.11

func NewWhatIsFromBuf(cd *ot.WhatIs) *WhatIs

func (*WhatIs) Descriptor

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

func (*WhatIs) GetCreator

func (m *WhatIs) GetCreator() string

func (*WhatIs) GetDid

func (m *WhatIs) GetDid() string

func (*WhatIs) GetIsActive added in v0.0.9

func (m *WhatIs) GetIsActive() bool

func (*WhatIs) GetObjectDoc added in v0.0.8

func (m *WhatIs) GetObjectDoc() *ObjectDoc

func (*WhatIs) GetTimestamp added in v0.0.9

func (m *WhatIs) GetTimestamp() int64

func (*WhatIs) Marshal

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

func (*WhatIs) MarshalTo

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

func (*WhatIs) MarshalToSizedBuffer

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

func (*WhatIs) ProtoMessage

func (*WhatIs) ProtoMessage()

func (*WhatIs) Reset

func (m *WhatIs) Reset()

func (*WhatIs) Size

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

func (*WhatIs) String

func (m *WhatIs) String() string

func (*WhatIs) Unmarshal

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

func (*WhatIs) XXX_DiscardUnknown

func (m *WhatIs) XXX_DiscardUnknown()

func (*WhatIs) XXX_Marshal

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

func (*WhatIs) XXX_Merge

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

func (*WhatIs) XXX_Size

func (m *WhatIs) XXX_Size() int

func (*WhatIs) XXX_Unmarshal

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

type Whatis

type Whatis struct {
	Index   string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Did     string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
	Value   string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
}

func (*Whatis) Descriptor

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

func (*Whatis) GetCreator

func (m *Whatis) GetCreator() string

func (*Whatis) GetDid

func (m *Whatis) GetDid() string

func (*Whatis) GetIndex

func (m *Whatis) GetIndex() string

func (*Whatis) GetValue

func (m *Whatis) GetValue() string

func (*Whatis) Marshal

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

func (*Whatis) MarshalTo

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

func (*Whatis) MarshalToSizedBuffer

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

func (*Whatis) ProtoMessage

func (*Whatis) ProtoMessage()

func (*Whatis) Reset

func (m *Whatis) Reset()

func (*Whatis) Size

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

func (*Whatis) String

func (m *Whatis) String() string

func (*Whatis) Unmarshal

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

func (*Whatis) XXX_DiscardUnknown

func (m *Whatis) XXX_DiscardUnknown()

func (*Whatis) XXX_Marshal

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

func (*Whatis) XXX_Merge

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

func (*Whatis) XXX_Size

func (m *Whatis) XXX_Size() int

func (*Whatis) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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