types

package
v0.0.0-...-df6cd37 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 27 Imported by: 0

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

	// 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_xdvnode"
)
View Source
const (
	DocumentsKey      = "Documents-value-"
	DocumentsCountKey = "Documents-count-"
)
View Source
const (
	FileIPLDKey  = "File-IPLD-"
	FileKey      = "File-value-"
	FileCountKey = "File-count-"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrInvalidLengthDocuments        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDocuments          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDocuments = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthFile        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFile          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFile = fmt.Errorf("proto: unexpected end of group")
)
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 (
	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 (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/xdvnode module sentinel errors

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

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)

Types

type Documents

type Documents struct {
	Creator      string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Id           uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Name         string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Hash         string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	LastModified uint64 `protobuf:"varint,5,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
	Signature    string `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
	Did          string `protobuf:"bytes,7,opt,name=did,proto3" json:"did,omitempty"`
	MetadataURI  string `protobuf:"bytes,8,opt,name=metadataURI,proto3" json:"metadataURI,omitempty"`
}

func (*Documents) Descriptor

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

func (*Documents) GetCreator

func (m *Documents) GetCreator() string

func (*Documents) GetDid

func (m *Documents) GetDid() string

func (*Documents) GetHash

func (m *Documents) GetHash() string

func (*Documents) GetId

func (m *Documents) GetId() uint64

func (*Documents) GetLastModified

func (m *Documents) GetLastModified() uint64

func (*Documents) GetMetadataURI

func (m *Documents) GetMetadataURI() string

func (*Documents) GetName

func (m *Documents) GetName() string

func (*Documents) GetSignature

func (m *Documents) GetSignature() string

func (*Documents) Marshal

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

func (*Documents) MarshalTo

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

func (*Documents) MarshalToSizedBuffer

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

func (*Documents) ProtoMessage

func (*Documents) ProtoMessage()

func (*Documents) Reset

func (m *Documents) Reset()

func (*Documents) Size

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

func (*Documents) String

func (m *Documents) String() string

func (*Documents) Unmarshal

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

func (*Documents) XXX_DiscardUnknown

func (m *Documents) XXX_DiscardUnknown()

func (*Documents) XXX_Marshal

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

func (*Documents) XXX_Merge

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

func (*Documents) XXX_Size

func (m *Documents) XXX_Size() int

func (*Documents) XXX_Unmarshal

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

type File

type File struct {
	Creator            string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Id                 uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Data               []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	ContentType        string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	StorageNetworkType string `protobuf:"bytes,5,opt,name=storage_network_type,json=storageNetworkType,proto3" json:"storage_network_type,omitempty"`
	Cid                string `protobuf:"bytes,6,opt,name=cid,proto3" json:"cid,omitempty"`
}

func (*File) Descriptor

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

func (*File) GetCid

func (m *File) GetCid() string

func (*File) GetContentType

func (m *File) GetContentType() string

func (*File) GetCreator

func (m *File) GetCreator() string

func (*File) GetData

func (m *File) GetData() []byte

func (*File) GetId

func (m *File) GetId() uint64

func (*File) GetStorageNetworkType

func (m *File) GetStorageNetworkType() string

func (*File) Marshal

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

func (*File) MarshalTo

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

func (*File) MarshalToSizedBuffer

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

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) Size

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

func (*File) String

func (m *File) String() string

func (*File) Unmarshal

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

func (*File) XXX_DiscardUnknown

func (m *File) XXX_DiscardUnknown()

func (*File) XXX_Marshal

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

func (*File) XXX_Merge

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

func (*File) XXX_Size

func (m *File) XXX_Size() int

func (*File) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// this line is used by starport scaffolding # genesis/proto/state
	FileList       []*File      `protobuf:"bytes,3,rep,name=fileList,proto3" json:"fileList,omitempty"`
	FileCount      uint64       `protobuf:"varint,4,opt,name=fileCount,proto3" json:"fileCount,omitempty"`
	DocumentsList  []*Documents `protobuf:"bytes,1,rep,name=documentsList,proto3" json:"documentsList,omitempty"`
	DocumentsCount uint64       `protobuf:"varint,2,opt,name=documentsCount,proto3" json:"documentsCount,omitempty"`
}

GenesisState defines the xdvnode 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) GetDocumentsCount

func (m *GenesisState) GetDocumentsCount() uint64

func (*GenesisState) GetDocumentsList

func (m *GenesisState) GetDocumentsList() []*Documents

func (*GenesisState) GetFileCount

func (m *GenesisState) GetFileCount() uint64

func (*GenesisState) GetFileList

func (m *GenesisState) GetFileList() []*File

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 MsgClient

type MsgClient interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	PutBlock(ctx context.Context, in *MsgPutBlock, opts ...grpc.CallOption) (*MsgPutBlockResponse, error)
	CreateFile(ctx context.Context, in *MsgCreateFile, opts ...grpc.CallOption) (*MsgCreateFileResponse, error)
	CreateDocuments(ctx context.Context, in *MsgCreateDocuments, opts ...grpc.CallOption) (*MsgCreateDocumentsResponse, error)
	UpdateDocuments(ctx context.Context, in *MsgUpdateDocuments, opts ...grpc.CallOption) (*MsgUpdateDocumentsResponse, error)
	DeleteDocuments(ctx context.Context, in *MsgDeleteDocuments, opts ...grpc.CallOption) (*MsgDeleteDocumentsResponse, 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 MsgCreateDocuments

type MsgCreateDocuments struct {
	Creator      string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Hash         string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	LastModified uint64 `protobuf:"varint,5,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
	ContentType  string `protobuf:"bytes,6,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	Signature    string `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	Network      string `protobuf:"bytes,8,opt,name=network,proto3" json:"network,omitempty"`
	Did          string `protobuf:"bytes,9,opt,name=did,proto3" json:"did,omitempty"`
	Alg          string `protobuf:"bytes,10,opt,name=alg,proto3" json:"alg,omitempty"`
	Pinned       bool   `protobuf:"varint,11,opt,name=pinned,proto3" json:"pinned,omitempty"`
	Tokenized    bool   `protobuf:"varint,12,opt,name=tokenized,proto3" json:"tokenized,omitempty"`
	MetadataURI  string `protobuf:"bytes,13,opt,name=metadataURI,proto3" json:"metadataURI,omitempty"`
}

func NewMsgCreateDocuments

func NewMsgCreateDocuments(creator string, name string, hash string,
	lastModified uint64, contentType string,
	signature string, network string, did string,
	alg string, pinned bool, tokenized bool) *MsgCreateDocuments

func (*MsgCreateDocuments) Descriptor

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

func (*MsgCreateDocuments) GetAlg

func (m *MsgCreateDocuments) GetAlg() string

func (*MsgCreateDocuments) GetContentType

func (m *MsgCreateDocuments) GetContentType() string

func (*MsgCreateDocuments) GetCreator

func (m *MsgCreateDocuments) GetCreator() string

func (*MsgCreateDocuments) GetDid

func (m *MsgCreateDocuments) GetDid() string

func (*MsgCreateDocuments) GetHash

func (m *MsgCreateDocuments) GetHash() string

func (*MsgCreateDocuments) GetLastModified

func (m *MsgCreateDocuments) GetLastModified() uint64

func (*MsgCreateDocuments) GetMetadataURI

func (m *MsgCreateDocuments) GetMetadataURI() string

func (*MsgCreateDocuments) GetName

func (m *MsgCreateDocuments) GetName() string

func (*MsgCreateDocuments) GetNetwork

func (m *MsgCreateDocuments) GetNetwork() string

func (*MsgCreateDocuments) GetPinned

func (m *MsgCreateDocuments) GetPinned() bool

func (*MsgCreateDocuments) GetSignBytes

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

func (*MsgCreateDocuments) GetSignature

func (m *MsgCreateDocuments) GetSignature() string

func (*MsgCreateDocuments) GetSigners

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

func (*MsgCreateDocuments) GetTokenized

func (m *MsgCreateDocuments) GetTokenized() bool

func (*MsgCreateDocuments) Marshal

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

func (*MsgCreateDocuments) MarshalTo

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

func (*MsgCreateDocuments) MarshalToSizedBuffer

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

func (*MsgCreateDocuments) ProtoMessage

func (*MsgCreateDocuments) ProtoMessage()

func (*MsgCreateDocuments) Reset

func (m *MsgCreateDocuments) Reset()

func (*MsgCreateDocuments) Route

func (msg *MsgCreateDocuments) Route() string

func (*MsgCreateDocuments) Size

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

func (*MsgCreateDocuments) String

func (m *MsgCreateDocuments) String() string

func (*MsgCreateDocuments) Type

func (msg *MsgCreateDocuments) Type() string

func (*MsgCreateDocuments) Unmarshal

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

func (*MsgCreateDocuments) ValidateBasic

func (msg *MsgCreateDocuments) ValidateBasic() error

func (*MsgCreateDocuments) XXX_DiscardUnknown

func (m *MsgCreateDocuments) XXX_DiscardUnknown()

func (*MsgCreateDocuments) XXX_Marshal

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

func (*MsgCreateDocuments) XXX_Merge

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

func (*MsgCreateDocuments) XXX_Size

func (m *MsgCreateDocuments) XXX_Size() int

func (*MsgCreateDocuments) XXX_Unmarshal

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

type MsgCreateDocumentsResponse

type MsgCreateDocumentsResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgCreateDocumentsResponse) Descriptor

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

func (*MsgCreateDocumentsResponse) GetId

func (*MsgCreateDocumentsResponse) Marshal

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

func (*MsgCreateDocumentsResponse) MarshalTo

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

func (*MsgCreateDocumentsResponse) MarshalToSizedBuffer

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

func (*MsgCreateDocumentsResponse) ProtoMessage

func (*MsgCreateDocumentsResponse) ProtoMessage()

func (*MsgCreateDocumentsResponse) Reset

func (m *MsgCreateDocumentsResponse) Reset()

func (*MsgCreateDocumentsResponse) Size

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

func (*MsgCreateDocumentsResponse) String

func (m *MsgCreateDocumentsResponse) String() string

func (*MsgCreateDocumentsResponse) Unmarshal

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

func (*MsgCreateDocumentsResponse) XXX_DiscardUnknown

func (m *MsgCreateDocumentsResponse) XXX_DiscardUnknown()

func (*MsgCreateDocumentsResponse) XXX_Marshal

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

func (*MsgCreateDocumentsResponse) XXX_Merge

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

func (*MsgCreateDocumentsResponse) XXX_Size

func (m *MsgCreateDocumentsResponse) XXX_Size() int

func (*MsgCreateDocumentsResponse) XXX_Unmarshal

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

type MsgCreateFile

type MsgCreateFile struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Data        []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
}

this line is used by starport scaffolding # proto/tx/message

func NewMsgCreateFile

func NewMsgCreateFile(creator string, data []byte, contentType string) *MsgCreateFile

func (*MsgCreateFile) Descriptor

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

func (*MsgCreateFile) GetContentType

func (m *MsgCreateFile) GetContentType() string

func (*MsgCreateFile) GetCreator

func (m *MsgCreateFile) GetCreator() string

func (*MsgCreateFile) GetData

func (m *MsgCreateFile) GetData() []byte

func (*MsgCreateFile) GetSignBytes

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

func (*MsgCreateFile) GetSigners

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

func (*MsgCreateFile) Marshal

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

func (*MsgCreateFile) MarshalTo

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

func (*MsgCreateFile) MarshalToSizedBuffer

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

func (*MsgCreateFile) ProtoMessage

func (*MsgCreateFile) ProtoMessage()

func (*MsgCreateFile) Reset

func (m *MsgCreateFile) Reset()

func (*MsgCreateFile) Route

func (msg *MsgCreateFile) Route() string

func (*MsgCreateFile) Size

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

func (*MsgCreateFile) String

func (m *MsgCreateFile) String() string

func (*MsgCreateFile) Type

func (msg *MsgCreateFile) Type() string

func (*MsgCreateFile) Unmarshal

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

func (*MsgCreateFile) ValidateBasic

func (msg *MsgCreateFile) ValidateBasic() error

func (*MsgCreateFile) XXX_DiscardUnknown

func (m *MsgCreateFile) XXX_DiscardUnknown()

func (*MsgCreateFile) XXX_Marshal

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

func (*MsgCreateFile) XXX_Merge

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

func (*MsgCreateFile) XXX_Size

func (m *MsgCreateFile) XXX_Size() int

func (*MsgCreateFile) XXX_Unmarshal

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

type MsgCreateFileResponse

type MsgCreateFileResponse struct {
	Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
}

func (*MsgCreateFileResponse) Descriptor

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

func (*MsgCreateFileResponse) GetCid

func (m *MsgCreateFileResponse) GetCid() string

func (*MsgCreateFileResponse) Marshal

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

func (*MsgCreateFileResponse) MarshalTo

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

func (*MsgCreateFileResponse) MarshalToSizedBuffer

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

func (*MsgCreateFileResponse) ProtoMessage

func (*MsgCreateFileResponse) ProtoMessage()

func (*MsgCreateFileResponse) Reset

func (m *MsgCreateFileResponse) Reset()

func (*MsgCreateFileResponse) Size

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

func (*MsgCreateFileResponse) String

func (m *MsgCreateFileResponse) String() string

func (*MsgCreateFileResponse) Unmarshal

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

func (*MsgCreateFileResponse) XXX_DiscardUnknown

func (m *MsgCreateFileResponse) XXX_DiscardUnknown()

func (*MsgCreateFileResponse) XXX_Marshal

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

func (*MsgCreateFileResponse) XXX_Merge

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

func (*MsgCreateFileResponse) XXX_Size

func (m *MsgCreateFileResponse) XXX_Size() int

func (*MsgCreateFileResponse) XXX_Unmarshal

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

type MsgDeleteDocuments

type MsgDeleteDocuments struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Id      uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}

func NewMsgDeleteDocuments

func NewMsgDeleteDocuments(creator string, id uint64) *MsgDeleteDocuments

func (*MsgDeleteDocuments) Descriptor

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

func (*MsgDeleteDocuments) GetCreator

func (m *MsgDeleteDocuments) GetCreator() string

func (*MsgDeleteDocuments) GetId

func (m *MsgDeleteDocuments) GetId() uint64

func (*MsgDeleteDocuments) GetSignBytes

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

func (*MsgDeleteDocuments) GetSigners

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

func (*MsgDeleteDocuments) Marshal

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

func (*MsgDeleteDocuments) MarshalTo

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

func (*MsgDeleteDocuments) MarshalToSizedBuffer

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

func (*MsgDeleteDocuments) ProtoMessage

func (*MsgDeleteDocuments) ProtoMessage()

func (*MsgDeleteDocuments) Reset

func (m *MsgDeleteDocuments) Reset()

func (*MsgDeleteDocuments) Route

func (msg *MsgDeleteDocuments) Route() string

func (*MsgDeleteDocuments) Size

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

func (*MsgDeleteDocuments) String

func (m *MsgDeleteDocuments) String() string

func (*MsgDeleteDocuments) Type

func (msg *MsgDeleteDocuments) Type() string

func (*MsgDeleteDocuments) Unmarshal

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

func (*MsgDeleteDocuments) ValidateBasic

func (msg *MsgDeleteDocuments) ValidateBasic() error

func (*MsgDeleteDocuments) XXX_DiscardUnknown

func (m *MsgDeleteDocuments) XXX_DiscardUnknown()

func (*MsgDeleteDocuments) XXX_Marshal

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

func (*MsgDeleteDocuments) XXX_Merge

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

func (*MsgDeleteDocuments) XXX_Size

func (m *MsgDeleteDocuments) XXX_Size() int

func (*MsgDeleteDocuments) XXX_Unmarshal

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

type MsgDeleteDocumentsResponse

type MsgDeleteDocumentsResponse struct {
}

func (*MsgDeleteDocumentsResponse) Descriptor

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

func (*MsgDeleteDocumentsResponse) Marshal

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

func (*MsgDeleteDocumentsResponse) MarshalTo

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

func (*MsgDeleteDocumentsResponse) MarshalToSizedBuffer

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

func (*MsgDeleteDocumentsResponse) ProtoMessage

func (*MsgDeleteDocumentsResponse) ProtoMessage()

func (*MsgDeleteDocumentsResponse) Reset

func (m *MsgDeleteDocumentsResponse) Reset()

func (*MsgDeleteDocumentsResponse) Size

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

func (*MsgDeleteDocumentsResponse) String

func (m *MsgDeleteDocumentsResponse) String() string

func (*MsgDeleteDocumentsResponse) Unmarshal

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

func (*MsgDeleteDocumentsResponse) XXX_DiscardUnknown

func (m *MsgDeleteDocumentsResponse) XXX_DiscardUnknown()

func (*MsgDeleteDocumentsResponse) XXX_Marshal

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

func (*MsgDeleteDocumentsResponse) XXX_Merge

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

func (*MsgDeleteDocumentsResponse) XXX_Size

func (m *MsgDeleteDocumentsResponse) XXX_Size() int

func (*MsgDeleteDocumentsResponse) XXX_Unmarshal

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

type MsgPutBlock

type MsgPutBlock struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Data        []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
}

func NewMsgPutBlock

func NewMsgPutBlock(creator string, data []byte, contentType string) *MsgPutBlock

func (*MsgPutBlock) Descriptor

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

func (*MsgPutBlock) GetContentType

func (m *MsgPutBlock) GetContentType() string

func (*MsgPutBlock) GetCreator

func (m *MsgPutBlock) GetCreator() string

func (*MsgPutBlock) GetData

func (m *MsgPutBlock) GetData() []byte

func (*MsgPutBlock) GetSignBytes

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

func (*MsgPutBlock) GetSigners

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

func (*MsgPutBlock) Marshal

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

func (*MsgPutBlock) MarshalTo

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

func (*MsgPutBlock) MarshalToSizedBuffer

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

func (*MsgPutBlock) ProtoMessage

func (*MsgPutBlock) ProtoMessage()

func (*MsgPutBlock) Reset

func (m *MsgPutBlock) Reset()

func (*MsgPutBlock) Route

func (msg *MsgPutBlock) Route() string

func (*MsgPutBlock) Size

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

func (*MsgPutBlock) String

func (m *MsgPutBlock) String() string

func (*MsgPutBlock) Type

func (msg *MsgPutBlock) Type() string

func (*MsgPutBlock) Unmarshal

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

func (*MsgPutBlock) ValidateBasic

func (msg *MsgPutBlock) ValidateBasic() error

func (*MsgPutBlock) XXX_DiscardUnknown

func (m *MsgPutBlock) XXX_DiscardUnknown()

func (*MsgPutBlock) XXX_Marshal

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

func (*MsgPutBlock) XXX_Merge

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

func (*MsgPutBlock) XXX_Size

func (m *MsgPutBlock) XXX_Size() int

func (*MsgPutBlock) XXX_Unmarshal

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

type MsgPutBlockResponse

type MsgPutBlockResponse struct {
	Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
}

func (*MsgPutBlockResponse) Descriptor

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

func (*MsgPutBlockResponse) GetCid

func (m *MsgPutBlockResponse) GetCid() string

func (*MsgPutBlockResponse) Marshal

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

func (*MsgPutBlockResponse) MarshalTo

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

func (*MsgPutBlockResponse) MarshalToSizedBuffer

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

func (*MsgPutBlockResponse) ProtoMessage

func (*MsgPutBlockResponse) ProtoMessage()

func (*MsgPutBlockResponse) Reset

func (m *MsgPutBlockResponse) Reset()

func (*MsgPutBlockResponse) Size

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

func (*MsgPutBlockResponse) String

func (m *MsgPutBlockResponse) String() string

func (*MsgPutBlockResponse) Unmarshal

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

func (*MsgPutBlockResponse) XXX_DiscardUnknown

func (m *MsgPutBlockResponse) XXX_DiscardUnknown()

func (*MsgPutBlockResponse) XXX_Marshal

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

func (*MsgPutBlockResponse) XXX_Merge

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

func (*MsgPutBlockResponse) XXX_Size

func (m *MsgPutBlockResponse) XXX_Size() int

func (*MsgPutBlockResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	PutBlock(context.Context, *MsgPutBlock) (*MsgPutBlockResponse, error)
	CreateFile(context.Context, *MsgCreateFile) (*MsgCreateFileResponse, error)
	CreateDocuments(context.Context, *MsgCreateDocuments) (*MsgCreateDocumentsResponse, error)
	UpdateDocuments(context.Context, *MsgUpdateDocuments) (*MsgUpdateDocumentsResponse, error)
	DeleteDocuments(context.Context, *MsgDeleteDocuments) (*MsgDeleteDocumentsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateDocuments

type MsgUpdateDocuments struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Id      uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}

func NewMsgUpdateDocuments

func NewMsgUpdateDocuments(creator string, id uint64, name string) *MsgUpdateDocuments

func (*MsgUpdateDocuments) Descriptor

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

func (*MsgUpdateDocuments) GetCreator

func (m *MsgUpdateDocuments) GetCreator() string

func (*MsgUpdateDocuments) GetId

func (m *MsgUpdateDocuments) GetId() uint64

func (*MsgUpdateDocuments) GetName

func (m *MsgUpdateDocuments) GetName() string

func (*MsgUpdateDocuments) GetSignBytes

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

func (*MsgUpdateDocuments) GetSigners

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

func (*MsgUpdateDocuments) Marshal

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

func (*MsgUpdateDocuments) MarshalTo

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

func (*MsgUpdateDocuments) MarshalToSizedBuffer

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

func (*MsgUpdateDocuments) ProtoMessage

func (*MsgUpdateDocuments) ProtoMessage()

func (*MsgUpdateDocuments) Reset

func (m *MsgUpdateDocuments) Reset()

func (*MsgUpdateDocuments) Route

func (msg *MsgUpdateDocuments) Route() string

func (*MsgUpdateDocuments) Size

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

func (*MsgUpdateDocuments) String

func (m *MsgUpdateDocuments) String() string

func (*MsgUpdateDocuments) Type

func (msg *MsgUpdateDocuments) Type() string

func (*MsgUpdateDocuments) Unmarshal

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

func (*MsgUpdateDocuments) ValidateBasic

func (msg *MsgUpdateDocuments) ValidateBasic() error

func (*MsgUpdateDocuments) XXX_DiscardUnknown

func (m *MsgUpdateDocuments) XXX_DiscardUnknown()

func (*MsgUpdateDocuments) XXX_Marshal

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

func (*MsgUpdateDocuments) XXX_Merge

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

func (*MsgUpdateDocuments) XXX_Size

func (m *MsgUpdateDocuments) XXX_Size() int

func (*MsgUpdateDocuments) XXX_Unmarshal

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

type MsgUpdateDocumentsResponse

type MsgUpdateDocumentsResponse struct {
}

func (*MsgUpdateDocumentsResponse) Descriptor

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

func (*MsgUpdateDocumentsResponse) Marshal

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

func (*MsgUpdateDocumentsResponse) MarshalTo

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

func (*MsgUpdateDocumentsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateDocumentsResponse) ProtoMessage

func (*MsgUpdateDocumentsResponse) ProtoMessage()

func (*MsgUpdateDocumentsResponse) Reset

func (m *MsgUpdateDocumentsResponse) Reset()

func (*MsgUpdateDocumentsResponse) Size

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

func (*MsgUpdateDocumentsResponse) String

func (m *MsgUpdateDocumentsResponse) String() string

func (*MsgUpdateDocumentsResponse) Unmarshal

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

func (*MsgUpdateDocumentsResponse) XXX_DiscardUnknown

func (m *MsgUpdateDocumentsResponse) XXX_DiscardUnknown()

func (*MsgUpdateDocumentsResponse) XXX_Marshal

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

func (*MsgUpdateDocumentsResponse) XXX_Merge

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

func (*MsgUpdateDocumentsResponse) XXX_Size

func (m *MsgUpdateDocumentsResponse) XXX_Size() int

func (*MsgUpdateDocumentsResponse) XXX_Unmarshal

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

type QueryAllDocumentsRequest

type QueryAllDocumentsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllDocumentsRequest) Descriptor

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

func (*QueryAllDocumentsRequest) GetPagination

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

func (*QueryAllDocumentsRequest) Marshal

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

func (*QueryAllDocumentsRequest) MarshalTo

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

func (*QueryAllDocumentsRequest) MarshalToSizedBuffer

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

func (*QueryAllDocumentsRequest) ProtoMessage

func (*QueryAllDocumentsRequest) ProtoMessage()

func (*QueryAllDocumentsRequest) Reset

func (m *QueryAllDocumentsRequest) Reset()

func (*QueryAllDocumentsRequest) Size

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

func (*QueryAllDocumentsRequest) String

func (m *QueryAllDocumentsRequest) String() string

func (*QueryAllDocumentsRequest) Unmarshal

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

func (*QueryAllDocumentsRequest) XXX_DiscardUnknown

func (m *QueryAllDocumentsRequest) XXX_DiscardUnknown()

func (*QueryAllDocumentsRequest) XXX_Marshal

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

func (*QueryAllDocumentsRequest) XXX_Merge

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

func (*QueryAllDocumentsRequest) XXX_Size

func (m *QueryAllDocumentsRequest) XXX_Size() int

func (*QueryAllDocumentsRequest) XXX_Unmarshal

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

type QueryAllDocumentsResponse

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

func (*QueryAllDocumentsResponse) Descriptor

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

func (*QueryAllDocumentsResponse) GetDocuments

func (m *QueryAllDocumentsResponse) GetDocuments() []*Documents

func (*QueryAllDocumentsResponse) GetPagination

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

func (*QueryAllDocumentsResponse) Marshal

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

func (*QueryAllDocumentsResponse) MarshalTo

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

func (*QueryAllDocumentsResponse) MarshalToSizedBuffer

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

func (*QueryAllDocumentsResponse) ProtoMessage

func (*QueryAllDocumentsResponse) ProtoMessage()

func (*QueryAllDocumentsResponse) Reset

func (m *QueryAllDocumentsResponse) Reset()

func (*QueryAllDocumentsResponse) Size

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

func (*QueryAllDocumentsResponse) String

func (m *QueryAllDocumentsResponse) String() string

func (*QueryAllDocumentsResponse) Unmarshal

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

func (*QueryAllDocumentsResponse) XXX_DiscardUnknown

func (m *QueryAllDocumentsResponse) XXX_DiscardUnknown()

func (*QueryAllDocumentsResponse) XXX_Marshal

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

func (*QueryAllDocumentsResponse) XXX_Merge

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

func (*QueryAllDocumentsResponse) XXX_Size

func (m *QueryAllDocumentsResponse) XXX_Size() int

func (*QueryAllDocumentsResponse) XXX_Unmarshal

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

type QueryAllFileRequest

type QueryAllFileRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllFileRequest) Descriptor

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

func (*QueryAllFileRequest) GetPagination

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

func (*QueryAllFileRequest) Marshal

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

func (*QueryAllFileRequest) MarshalTo

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

func (*QueryAllFileRequest) MarshalToSizedBuffer

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

func (*QueryAllFileRequest) ProtoMessage

func (*QueryAllFileRequest) ProtoMessage()

func (*QueryAllFileRequest) Reset

func (m *QueryAllFileRequest) Reset()

func (*QueryAllFileRequest) Size

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

func (*QueryAllFileRequest) String

func (m *QueryAllFileRequest) String() string

func (*QueryAllFileRequest) Unmarshal

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

func (*QueryAllFileRequest) XXX_DiscardUnknown

func (m *QueryAllFileRequest) XXX_DiscardUnknown()

func (*QueryAllFileRequest) XXX_Marshal

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

func (*QueryAllFileRequest) XXX_Merge

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

func (*QueryAllFileRequest) XXX_Size

func (m *QueryAllFileRequest) XXX_Size() int

func (*QueryAllFileRequest) XXX_Unmarshal

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

type QueryAllFileResponse

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

func (*QueryAllFileResponse) Descriptor

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

func (*QueryAllFileResponse) GetFile

func (m *QueryAllFileResponse) GetFile() []*File

func (*QueryAllFileResponse) GetPagination

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

func (*QueryAllFileResponse) Marshal

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

func (*QueryAllFileResponse) MarshalTo

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

func (*QueryAllFileResponse) MarshalToSizedBuffer

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

func (*QueryAllFileResponse) ProtoMessage

func (*QueryAllFileResponse) ProtoMessage()

func (*QueryAllFileResponse) Reset

func (m *QueryAllFileResponse) Reset()

func (*QueryAllFileResponse) Size

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

func (*QueryAllFileResponse) String

func (m *QueryAllFileResponse) String() string

func (*QueryAllFileResponse) Unmarshal

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

func (*QueryAllFileResponse) XXX_DiscardUnknown

func (m *QueryAllFileResponse) XXX_DiscardUnknown()

func (*QueryAllFileResponse) XXX_Marshal

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

func (*QueryAllFileResponse) XXX_Merge

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

func (*QueryAllFileResponse) XXX_Size

func (m *QueryAllFileResponse) XXX_Size() int

func (*QueryAllFileResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries a file by id.
	File(ctx context.Context, in *QueryGetFileRequest, opts ...grpc.CallOption) (*QueryGetFileResponse, error)
	// Queries a documents by id.
	Documents(ctx context.Context, in *QueryGetDocumentsRequest, opts ...grpc.CallOption) (*QueryGetDocumentsResponse, error)
	// Queries a list of documents items.
	DocumentsAll(ctx context.Context, in *QueryAllDocumentsRequest, opts ...grpc.CallOption) (*QueryAllDocumentsResponse, 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 QueryGetDocumentsRequest

type QueryGetDocumentsRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryGetDocumentsRequest) Descriptor

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

func (*QueryGetDocumentsRequest) GetId

func (m *QueryGetDocumentsRequest) GetId() uint64

func (*QueryGetDocumentsRequest) Marshal

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

func (*QueryGetDocumentsRequest) MarshalTo

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

func (*QueryGetDocumentsRequest) MarshalToSizedBuffer

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

func (*QueryGetDocumentsRequest) ProtoMessage

func (*QueryGetDocumentsRequest) ProtoMessage()

func (*QueryGetDocumentsRequest) Reset

func (m *QueryGetDocumentsRequest) Reset()

func (*QueryGetDocumentsRequest) Size

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

func (*QueryGetDocumentsRequest) String

func (m *QueryGetDocumentsRequest) String() string

func (*QueryGetDocumentsRequest) Unmarshal

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

func (*QueryGetDocumentsRequest) XXX_DiscardUnknown

func (m *QueryGetDocumentsRequest) XXX_DiscardUnknown()

func (*QueryGetDocumentsRequest) XXX_Marshal

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

func (*QueryGetDocumentsRequest) XXX_Merge

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

func (*QueryGetDocumentsRequest) XXX_Size

func (m *QueryGetDocumentsRequest) XXX_Size() int

func (*QueryGetDocumentsRequest) XXX_Unmarshal

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

type QueryGetDocumentsResponse

type QueryGetDocumentsResponse struct {
	Documents *Documents `protobuf:"bytes,1,opt,name=Documents,proto3" json:"Documents,omitempty"`
}

func (*QueryGetDocumentsResponse) Descriptor

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

func (*QueryGetDocumentsResponse) GetDocuments

func (m *QueryGetDocumentsResponse) GetDocuments() *Documents

func (*QueryGetDocumentsResponse) Marshal

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

func (*QueryGetDocumentsResponse) MarshalTo

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

func (*QueryGetDocumentsResponse) MarshalToSizedBuffer

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

func (*QueryGetDocumentsResponse) ProtoMessage

func (*QueryGetDocumentsResponse) ProtoMessage()

func (*QueryGetDocumentsResponse) Reset

func (m *QueryGetDocumentsResponse) Reset()

func (*QueryGetDocumentsResponse) Size

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

func (*QueryGetDocumentsResponse) String

func (m *QueryGetDocumentsResponse) String() string

func (*QueryGetDocumentsResponse) Unmarshal

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

func (*QueryGetDocumentsResponse) XXX_DiscardUnknown

func (m *QueryGetDocumentsResponse) XXX_DiscardUnknown()

func (*QueryGetDocumentsResponse) XXX_Marshal

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

func (*QueryGetDocumentsResponse) XXX_Merge

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

func (*QueryGetDocumentsResponse) XXX_Size

func (m *QueryGetDocumentsResponse) XXX_Size() int

func (*QueryGetDocumentsResponse) XXX_Unmarshal

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

type QueryGetFileRequest

type QueryGetFileRequest struct {
	Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
}

this line is used by starport scaffolding # 3

func (*QueryGetFileRequest) Descriptor

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

func (*QueryGetFileRequest) GetCid

func (m *QueryGetFileRequest) GetCid() string

func (*QueryGetFileRequest) Marshal

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

func (*QueryGetFileRequest) MarshalTo

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

func (*QueryGetFileRequest) MarshalToSizedBuffer

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

func (*QueryGetFileRequest) ProtoMessage

func (*QueryGetFileRequest) ProtoMessage()

func (*QueryGetFileRequest) Reset

func (m *QueryGetFileRequest) Reset()

func (*QueryGetFileRequest) Size

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

func (*QueryGetFileRequest) String

func (m *QueryGetFileRequest) String() string

func (*QueryGetFileRequest) Unmarshal

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

func (*QueryGetFileRequest) XXX_DiscardUnknown

func (m *QueryGetFileRequest) XXX_DiscardUnknown()

func (*QueryGetFileRequest) XXX_Marshal

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

func (*QueryGetFileRequest) XXX_Merge

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

func (*QueryGetFileRequest) XXX_Size

func (m *QueryGetFileRequest) XXX_Size() int

func (*QueryGetFileRequest) XXX_Unmarshal

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

type QueryGetFileResponse

type QueryGetFileResponse struct {
	File *File `protobuf:"bytes,1,opt,name=File,proto3" json:"File,omitempty"`
}

func (*QueryGetFileResponse) Descriptor

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

func (*QueryGetFileResponse) GetFile

func (m *QueryGetFileResponse) GetFile() *File

func (*QueryGetFileResponse) Marshal

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

func (*QueryGetFileResponse) MarshalTo

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

func (*QueryGetFileResponse) MarshalToSizedBuffer

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

func (*QueryGetFileResponse) ProtoMessage

func (*QueryGetFileResponse) ProtoMessage()

func (*QueryGetFileResponse) Reset

func (m *QueryGetFileResponse) Reset()

func (*QueryGetFileResponse) Size

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

func (*QueryGetFileResponse) String

func (m *QueryGetFileResponse) String() string

func (*QueryGetFileResponse) Unmarshal

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

func (*QueryGetFileResponse) XXX_DiscardUnknown

func (m *QueryGetFileResponse) XXX_DiscardUnknown()

func (*QueryGetFileResponse) XXX_Marshal

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

func (*QueryGetFileResponse) XXX_Merge

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

func (*QueryGetFileResponse) XXX_Size

func (m *QueryGetFileResponse) XXX_Size() int

func (*QueryGetFileResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Queries a file by id.
	File(context.Context, *QueryGetFileRequest) (*QueryGetFileResponse, error)
	// Queries a documents by id.
	Documents(context.Context, *QueryGetDocumentsRequest) (*QueryGetDocumentsResponse, error)
	// Queries a list of documents items.
	DocumentsAll(context.Context, *QueryAllDocumentsRequest) (*QueryAllDocumentsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateDocuments

func (*UnimplementedMsgServer) CreateFile

func (*UnimplementedMsgServer) DeleteDocuments

func (*UnimplementedMsgServer) PutBlock

func (*UnimplementedMsgServer) UpdateDocuments

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Documents

func (*UnimplementedQueryServer) DocumentsAll

func (*UnimplementedQueryServer) File

Jump to

Keyboard shortcuts

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