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 Asset
- type EventCreate
- func (*EventCreate) Descriptor() ([]byte, []int)deprecated
- func (x *EventCreate) GetAsset() string
- func (x *EventCreate) GetCreator() string
- func (*EventCreate) ProtoMessage()
- func (x *EventCreate) ProtoReflect() protoreflect.Message
- func (x *EventCreate) Reset()
- func (x *EventCreate) String() string
- type EventSend
- func (*EventSend) Descriptor() ([]byte, []int)deprecated
- func (x *EventSend) GetAsset() string
- func (x *EventSend) GetRecipient() string
- func (x *EventSend) GetSender() string
- func (*EventSend) ProtoMessage()
- func (x *EventSend) ProtoReflect() protoreflect.Message
- func (x *EventSend) Reset()
- func (x *EventSend) String() string
- type MsgClient
- type MsgCreate
- type MsgCreateResponse
- type MsgSend
- func (*MsgSend) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSend) GetAsset() string
- func (x *MsgSend) GetRecipient() string
- func (x *MsgSend) GetSender() string
- func (*MsgSend) ProtoMessage()
- func (x *MsgSend) ProtoReflect() protoreflect.Message
- func (x *MsgSend) Reset()
- func (x *MsgSend) String() string
- type MsgSendResponse
- type MsgServer
- type QueryAssetRequest
- func (*QueryAssetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAssetRequest) GetAccount() string
- func (x *QueryAssetRequest) GetAsset() string
- func (*QueryAssetRequest) ProtoMessage()
- func (x *QueryAssetRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAssetRequest) Reset()
- func (x *QueryAssetRequest) String() string
- type QueryAssetResponse
- func (*QueryAssetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAssetResponse) GetAsset() *QueryAssetResponse_Asset
- func (*QueryAssetResponse) ProtoMessage()
- func (x *QueryAssetResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAssetResponse) Reset()
- func (x *QueryAssetResponse) String() string
- type QueryAssetResponse_Asset
- func (*QueryAssetResponse_Asset) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAssetResponse_Asset) GetName() string
- func (*QueryAssetResponse_Asset) ProtoMessage()
- func (x *QueryAssetResponse_Asset) ProtoReflect() protoreflect.Message
- func (x *QueryAssetResponse_Asset) Reset()
- func (x *QueryAssetResponse_Asset) String() string
- type QueryAssetsRequest
- func (*QueryAssetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAssetsRequest) GetAccount() string
- func (x *QueryAssetsRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryAssetsRequest) ProtoMessage()
- func (x *QueryAssetsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAssetsRequest) Reset()
- func (x *QueryAssetsRequest) String() string
- type QueryAssetsResponse
- func (*QueryAssetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAssetsResponse) GetAssets() []*QueryAssetsResponse_Asset
- func (x *QueryAssetsResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryAssetsResponse) ProtoMessage()
- func (x *QueryAssetsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAssetsResponse) Reset()
- func (x *QueryAssetsResponse) String() string
- type QueryAssetsResponse_Asset
- func (*QueryAssetsResponse_Asset) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAssetsResponse_Asset) GetName() string
- func (*QueryAssetsResponse_Asset) ProtoMessage()
- func (x *QueryAssetsResponse_Asset) ProtoReflect() protoreflect.Message
- func (x *QueryAssetsResponse_Asset) Reset()
- func (x *QueryAssetsResponse_Asset) String() string
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Asset_FullMethodName = "/andromeda.test.v1alpha1.Query/Asset" Query_Assets_FullMethodName = "/andromeda.test.v1alpha1.Query/Assets" )
const ( Msg_Create_FullMethodName = "/andromeda.test.v1alpha1.Msg/Create" Msg_Send_FullMethodName = "/andromeda.test.v1alpha1.Msg/Send" )
Variables ¶
var File_andromeda_test_v1alpha1_event_proto protoreflect.FileDescriptor
var File_andromeda_test_v1alpha1_query_proto protoreflect.FileDescriptor
var File_andromeda_test_v1alpha1_tx_proto protoreflect.FileDescriptor
var File_andromeda_test_v1alpha1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "andromeda.test.v1alpha1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Msg_Create_Handler, }, { MethodName: "Send", Handler: _Msg_Send_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "andromeda/test/v1alpha1/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: "andromeda.test.v1alpha1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Asset", Handler: _Query_Asset_Handler, }, { MethodName: "Assets", Handler: _Query_Assets_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "andromeda/test/v1alpha1/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 Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
Asset defines an asset identified by its name.
func (*Asset) Descriptor
deprecated
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶
func (x *Asset) ProtoReflect() protoreflect.Message
type EventCreate ¶
type EventCreate struct { // the address of the creator Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // the name of the asset created Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // contains filtered or unexported fields }
EventCreate is emitted on Msg/Create.
func (*EventCreate) Descriptor
deprecated
func (*EventCreate) Descriptor() ([]byte, []int)
Deprecated: Use EventCreate.ProtoReflect.Descriptor instead.
func (*EventCreate) GetAsset ¶
func (x *EventCreate) GetAsset() string
func (*EventCreate) GetCreator ¶
func (x *EventCreate) GetCreator() string
func (*EventCreate) ProtoMessage ¶
func (*EventCreate) ProtoMessage()
func (*EventCreate) ProtoReflect ¶
func (x *EventCreate) ProtoReflect() protoreflect.Message
func (*EventCreate) Reset ¶
func (x *EventCreate) Reset()
func (*EventCreate) String ¶
func (x *EventCreate) String() string
type EventSend ¶
type EventSend struct { // the address of the sender Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // the address of the recipient Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // the name of the asset sent Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` // contains filtered or unexported fields }
EventSend is emitted on Msg/Send.
func (*EventSend) Descriptor
deprecated
func (*EventSend) GetRecipient ¶
func (*EventSend) ProtoMessage ¶
func (*EventSend) ProtoMessage()
func (*EventSend) ProtoReflect ¶
func (x *EventSend) ProtoReflect() protoreflect.Message
type MsgClient ¶
type MsgClient interface { // Create creates an asset. Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) // Send sends an asset from an account to another. Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, 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 MsgCreate ¶
type MsgCreate struct { // the address of the creator Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // the name of the asset to create // Note: if creator already has the same asset, it will fail. Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // contains filtered or unexported fields }
MsgCreate is the Msg/Create request type.
func (*MsgCreate) Descriptor
deprecated
func (*MsgCreate) GetCreator ¶
func (*MsgCreate) ProtoMessage ¶
func (*MsgCreate) ProtoMessage()
func (*MsgCreate) ProtoReflect ¶
func (x *MsgCreate) ProtoReflect() protoreflect.Message
type MsgCreateResponse ¶
type MsgCreateResponse struct {
// contains filtered or unexported fields
}
MsgCreateResponse is the Msg/Create response type.
func (*MsgCreateResponse) Descriptor
deprecated
func (*MsgCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateResponse) ProtoMessage ¶
func (*MsgCreateResponse) ProtoMessage()
func (*MsgCreateResponse) ProtoReflect ¶
func (x *MsgCreateResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateResponse) Reset ¶
func (x *MsgCreateResponse) Reset()
func (*MsgCreateResponse) String ¶
func (x *MsgCreateResponse) String() string
type MsgSend ¶
type MsgSend struct { // the address of the sender Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // the address of the recipient // Note: if the recipient already has the same asset, it will fail. Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // the asset to send Asset string `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` // contains filtered or unexported fields }
MsgSend is the Msg/Send request type.
func (*MsgSend) Descriptor
deprecated
func (*MsgSend) GetRecipient ¶
func (*MsgSend) ProtoMessage ¶
func (*MsgSend) ProtoMessage()
func (*MsgSend) ProtoReflect ¶
func (x *MsgSend) ProtoReflect() protoreflect.Message
type MsgSendResponse ¶
type MsgSendResponse struct {
// contains filtered or unexported fields
}
MsgSendResponse is the Msg/Send response type.
func (*MsgSendResponse) Descriptor
deprecated
func (*MsgSendResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead.
func (*MsgSendResponse) ProtoMessage ¶
func (*MsgSendResponse) ProtoMessage()
func (*MsgSendResponse) ProtoReflect ¶
func (x *MsgSendResponse) ProtoReflect() protoreflect.Message
func (*MsgSendResponse) Reset ¶
func (x *MsgSendResponse) Reset()
func (*MsgSendResponse) String ¶
func (x *MsgSendResponse) String() string
type MsgServer ¶
type MsgServer interface { // Create creates an asset. Create(context.Context, *MsgCreate) (*MsgCreateResponse, error) // Send sends an asset from an account to another. Send(context.Context, *MsgSend) (*MsgSendResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type QueryAssetRequest ¶
type QueryAssetRequest struct { // the address of an account Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // the name of an asset Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"` // contains filtered or unexported fields }
QueryAssetRequest is the request type for the Query/Asset RPC method.
func (*QueryAssetRequest) Descriptor
deprecated
func (*QueryAssetRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAssetRequest.ProtoReflect.Descriptor instead.
func (*QueryAssetRequest) GetAccount ¶
func (x *QueryAssetRequest) GetAccount() string
func (*QueryAssetRequest) GetAsset ¶
func (x *QueryAssetRequest) GetAsset() string
func (*QueryAssetRequest) ProtoMessage ¶
func (*QueryAssetRequest) ProtoMessage()
func (*QueryAssetRequest) ProtoReflect ¶
func (x *QueryAssetRequest) ProtoReflect() protoreflect.Message
func (*QueryAssetRequest) Reset ¶
func (x *QueryAssetRequest) Reset()
func (*QueryAssetRequest) String ¶
func (x *QueryAssetRequest) String() string
type QueryAssetResponse ¶
type QueryAssetResponse struct { // the corresponding asset Asset *QueryAssetResponse_Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` // contains filtered or unexported fields }
QueryAssetResponse is the response type for the Query/Asset RPC method.
func (*QueryAssetResponse) Descriptor
deprecated
func (*QueryAssetResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAssetResponse.ProtoReflect.Descriptor instead.
func (*QueryAssetResponse) GetAsset ¶
func (x *QueryAssetResponse) GetAsset() *QueryAssetResponse_Asset
func (*QueryAssetResponse) ProtoMessage ¶
func (*QueryAssetResponse) ProtoMessage()
func (*QueryAssetResponse) ProtoReflect ¶
func (x *QueryAssetResponse) ProtoReflect() protoreflect.Message
func (*QueryAssetResponse) Reset ¶
func (x *QueryAssetResponse) Reset()
func (*QueryAssetResponse) String ¶
func (x *QueryAssetResponse) String() string
type QueryAssetResponse_Asset ¶
type QueryAssetResponse_Asset struct { // the name of the asset Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Asset defines an asset identified by its name.
func (*QueryAssetResponse_Asset) Descriptor
deprecated
func (*QueryAssetResponse_Asset) Descriptor() ([]byte, []int)
Deprecated: Use QueryAssetResponse_Asset.ProtoReflect.Descriptor instead.
func (*QueryAssetResponse_Asset) GetName ¶
func (x *QueryAssetResponse_Asset) GetName() string
func (*QueryAssetResponse_Asset) ProtoMessage ¶
func (*QueryAssetResponse_Asset) ProtoMessage()
func (*QueryAssetResponse_Asset) ProtoReflect ¶
func (x *QueryAssetResponse_Asset) ProtoReflect() protoreflect.Message
func (*QueryAssetResponse_Asset) Reset ¶
func (x *QueryAssetResponse_Asset) Reset()
func (*QueryAssetResponse_Asset) String ¶
func (x *QueryAssetResponse_Asset) String() string
type QueryAssetsRequest ¶
type QueryAssetsRequest struct { // the address of an account Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // optional pagination for the request Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryAssetsRequest is the request type for the Query/Assets RPC method.
func (*QueryAssetsRequest) Descriptor
deprecated
func (*QueryAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAssetsRequest.ProtoReflect.Descriptor instead.
func (*QueryAssetsRequest) GetAccount ¶
func (x *QueryAssetsRequest) GetAccount() string
func (*QueryAssetsRequest) GetPagination ¶
func (x *QueryAssetsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryAssetsRequest) ProtoMessage ¶
func (*QueryAssetsRequest) ProtoMessage()
func (*QueryAssetsRequest) ProtoReflect ¶
func (x *QueryAssetsRequest) ProtoReflect() protoreflect.Message
func (*QueryAssetsRequest) Reset ¶
func (x *QueryAssetsRequest) Reset()
func (*QueryAssetsRequest) String ¶
func (x *QueryAssetsRequest) String() string
type QueryAssetsResponse ¶
type QueryAssetsResponse struct { // all the assets owned by the account Assets []*QueryAssetsResponse_Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // pagination in the response Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryAssetsResponse is the response type for the Query/Assets RPC method.
func (*QueryAssetsResponse) Descriptor
deprecated
func (*QueryAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAssetsResponse.ProtoReflect.Descriptor instead.
func (*QueryAssetsResponse) GetAssets ¶
func (x *QueryAssetsResponse) GetAssets() []*QueryAssetsResponse_Asset
func (*QueryAssetsResponse) GetPagination ¶
func (x *QueryAssetsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryAssetsResponse) ProtoMessage ¶
func (*QueryAssetsResponse) ProtoMessage()
func (*QueryAssetsResponse) ProtoReflect ¶
func (x *QueryAssetsResponse) ProtoReflect() protoreflect.Message
func (*QueryAssetsResponse) Reset ¶
func (x *QueryAssetsResponse) Reset()
func (*QueryAssetsResponse) String ¶
func (x *QueryAssetsResponse) String() string
type QueryAssetsResponse_Asset ¶
type QueryAssetsResponse_Asset struct { // the name of the asset Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Asset defines an asset identified by its name.
func (*QueryAssetsResponse_Asset) Descriptor
deprecated
func (*QueryAssetsResponse_Asset) Descriptor() ([]byte, []int)
Deprecated: Use QueryAssetsResponse_Asset.ProtoReflect.Descriptor instead.
func (*QueryAssetsResponse_Asset) GetName ¶
func (x *QueryAssetsResponse_Asset) GetName() string
func (*QueryAssetsResponse_Asset) ProtoMessage ¶
func (*QueryAssetsResponse_Asset) ProtoMessage()
func (*QueryAssetsResponse_Asset) ProtoReflect ¶
func (x *QueryAssetsResponse_Asset) ProtoReflect() protoreflect.Message
func (*QueryAssetsResponse_Asset) Reset ¶
func (x *QueryAssetsResponse_Asset) Reset()
func (*QueryAssetsResponse_Asset) String ¶
func (x *QueryAssetsResponse_Asset) String() string
type QueryClient ¶
type QueryClient interface { // Asset queries an asset. Asset(ctx context.Context, in *QueryAssetRequest, opts ...grpc.CallOption) (*QueryAssetResponse, error) // Assets queries all the assets. Assets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, 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 QueryServer ¶
type QueryServer interface { // Asset queries an asset. Asset(context.Context, *QueryAssetRequest) (*QueryAssetResponse, error) // Assets queries all the assets. Assets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) Create ¶
func (UnimplementedMsgServer) Create(context.Context, *MsgCreate) (*MsgCreateResponse, error)
func (UnimplementedMsgServer) Send ¶
func (UnimplementedMsgServer) Send(context.Context, *MsgSend) (*MsgSendResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Asset ¶
func (UnimplementedQueryServer) Asset(context.Context, *QueryAssetRequest) (*QueryAssetResponse, error)
func (UnimplementedQueryServer) Assets ¶
func (UnimplementedQueryServer) Assets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, 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.