Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Content
- func (*Content) Descriptor() ([]byte, []int)deprecated
- func (x *Content) GetDigest() string
- func (x *Content) GetDigestAlgo() string
- func (x *Content) GetMeta() string
- func (x *Content) GetUri() string
- func (*Content) ProtoMessage()
- func (x *Content) ProtoReflect() protoreflect.Message
- func (x *Content) Reset()
- func (x *Content) String() string
- type GenesisState
- type MsgClient
- type MsgCreateRecord
- func (*MsgCreateRecord) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateRecord) GetContents() []*Content
- func (x *MsgCreateRecord) GetCreator() string
- func (*MsgCreateRecord) ProtoMessage()
- func (x *MsgCreateRecord) ProtoReflect() protoreflect.Message
- func (x *MsgCreateRecord) Reset()
- func (x *MsgCreateRecord) String() string
- type MsgCreateRecordResponse
- func (*MsgCreateRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateRecordResponse) GetId() string
- func (*MsgCreateRecordResponse) ProtoMessage()
- func (x *MsgCreateRecordResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateRecordResponse) Reset()
- func (x *MsgCreateRecordResponse) String() string
- type MsgServer
- type QueryClient
- type QueryRecordRequest
- func (*QueryRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRecordRequest) GetRecordId() string
- func (*QueryRecordRequest) ProtoMessage()
- func (x *QueryRecordRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRecordRequest) Reset()
- func (x *QueryRecordRequest) String() string
- type QueryRecordResponse
- func (*QueryRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRecordResponse) GetRecord() *Record
- func (*QueryRecordResponse) ProtoMessage()
- func (x *QueryRecordResponse) ProtoReflect() protoreflect.Message
- func (x *QueryRecordResponse) Reset()
- func (x *QueryRecordResponse) String() string
- type QueryServer
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetContents() []*Content
- func (x *Record) GetCreator() string
- func (x *Record) GetTxHash() string
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const (
Msg_CreateRecord_FullMethodName = "/irismod.record.Msg/CreateRecord"
)
const (
Query_Record_FullMethodName = "/irismod.record.Query/Record"
)
Variables ¶
var File_irismod_record_genesis_proto protoreflect.FileDescriptor
var File_irismod_record_query_proto protoreflect.FileDescriptor
var File_irismod_record_record_proto protoreflect.FileDescriptor
var File_irismod_record_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "irismod.record.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRecord", Handler: _Msg_CreateRecord_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "irismod/record/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "irismod.record.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Record", Handler: _Query_Record_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "irismod/record/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type Content ¶
type Content struct { Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` DigestAlgo string `protobuf:"bytes,2,opt,name=digest_algo,json=digestAlgo,proto3" json:"digest_algo,omitempty"` Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
Content defines the detailed information for a record
func (*Content) ProtoReflect ¶
func (x *Content) ProtoReflect() protoreflect.Message
type GenesisState ¶
type GenesisState struct { Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
GenesisState defines the record module's genesis state
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetRecords ¶
func (x *GenesisState) GetRecords() []*Record
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgClient ¶
type MsgClient interface { // CreateRecord defines a method for creating a new record CreateRecord(ctx context.Context, in *MsgCreateRecord, opts ...grpc.CallOption) (*MsgCreateRecordResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgCreateRecord ¶
type MsgCreateRecord struct { Contents []*Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // contains filtered or unexported fields }
MsgCreateRecord defines an SDK message for creating a new record
func (*MsgCreateRecord) Descriptor
deprecated
func (*MsgCreateRecord) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateRecord.ProtoReflect.Descriptor instead.
func (*MsgCreateRecord) GetContents ¶
func (x *MsgCreateRecord) GetContents() []*Content
func (*MsgCreateRecord) GetCreator ¶
func (x *MsgCreateRecord) GetCreator() string
func (*MsgCreateRecord) ProtoMessage ¶
func (*MsgCreateRecord) ProtoMessage()
func (*MsgCreateRecord) ProtoReflect ¶
func (x *MsgCreateRecord) ProtoReflect() protoreflect.Message
func (*MsgCreateRecord) Reset ¶
func (x *MsgCreateRecord) Reset()
func (*MsgCreateRecord) String ¶
func (x *MsgCreateRecord) String() string
type MsgCreateRecordResponse ¶
type MsgCreateRecordResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
MsgCreateRecordResponse defines the Msg/CreateRecord response type
func (*MsgCreateRecordResponse) Descriptor
deprecated
func (*MsgCreateRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateRecordResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateRecordResponse) GetId ¶
func (x *MsgCreateRecordResponse) GetId() string
func (*MsgCreateRecordResponse) ProtoMessage ¶
func (*MsgCreateRecordResponse) ProtoMessage()
func (*MsgCreateRecordResponse) ProtoReflect ¶
func (x *MsgCreateRecordResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateRecordResponse) Reset ¶
func (x *MsgCreateRecordResponse) Reset()
func (*MsgCreateRecordResponse) String ¶
func (x *MsgCreateRecordResponse) String() string
type MsgServer ¶
type MsgServer interface { // CreateRecord defines a method for creating a new record CreateRecord(context.Context, *MsgCreateRecord) (*MsgCreateRecordResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type QueryClient ¶
type QueryClient interface { // Record queries the record by the given record ID Record(ctx context.Context, in *QueryRecordRequest, opts ...grpc.CallOption) (*QueryRecordResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryRecordRequest ¶
type QueryRecordRequest struct { RecordId string `protobuf:"bytes,1,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"` // contains filtered or unexported fields }
QueryRecordRequest is the request type for the Query/Record RPC method
func (*QueryRecordRequest) Descriptor
deprecated
func (*QueryRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRecordRequest.ProtoReflect.Descriptor instead.
func (*QueryRecordRequest) GetRecordId ¶
func (x *QueryRecordRequest) GetRecordId() string
func (*QueryRecordRequest) ProtoMessage ¶
func (*QueryRecordRequest) ProtoMessage()
func (*QueryRecordRequest) ProtoReflect ¶
func (x *QueryRecordRequest) ProtoReflect() protoreflect.Message
func (*QueryRecordRequest) Reset ¶
func (x *QueryRecordRequest) Reset()
func (*QueryRecordRequest) String ¶
func (x *QueryRecordRequest) String() string
type QueryRecordResponse ¶
type QueryRecordResponse struct { Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` // contains filtered or unexported fields }
QueryRecordResponse is the response type for the Query/Record RPC method
func (*QueryRecordResponse) Descriptor
deprecated
func (*QueryRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryRecordResponse.ProtoReflect.Descriptor instead.
func (*QueryRecordResponse) GetRecord ¶
func (x *QueryRecordResponse) GetRecord() *Record
func (*QueryRecordResponse) ProtoMessage ¶
func (*QueryRecordResponse) ProtoMessage()
func (*QueryRecordResponse) ProtoReflect ¶
func (x *QueryRecordResponse) ProtoReflect() protoreflect.Message
func (*QueryRecordResponse) Reset ¶
func (x *QueryRecordResponse) Reset()
func (*QueryRecordResponse) String ¶
func (x *QueryRecordResponse) String() string
type QueryServer ¶
type QueryServer interface { // Record queries the record by the given record ID Record(context.Context, *QueryRecordRequest) (*QueryRecordResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type Record ¶
type Record struct { TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` Contents []*Content `protobuf:"bytes,2,rep,name=contents,proto3" json:"contents,omitempty"` Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` // contains filtered or unexported fields }
Record defines the record standard
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) CreateRecord ¶
func (UnimplementedMsgServer) CreateRecord(context.Context, *MsgCreateRecord) (*MsgCreateRecordResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Record ¶
func (UnimplementedQueryServer) Record(context.Context, *QueryRecordRequest) (*QueryRecordResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.