Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetWhoisCount() uint64
- func (m *GenesisState) GetWhoisList() []*Whois
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateWhois
- func (*MsgCreateWhois) Descriptor() ([]byte, []int)
- func (m *MsgCreateWhois) GetCreator() string
- func (m *MsgCreateWhois) GetPrice() string
- func (msg *MsgCreateWhois) GetSignBytes() []byte
- func (msg *MsgCreateWhois) GetSigners() []sdk.AccAddress
- func (m *MsgCreateWhois) GetUniqueId() string
- func (m *MsgCreateWhois) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateWhois) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateWhois) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateWhois) ProtoMessage()
- func (m *MsgCreateWhois) Reset()
- func (msg *MsgCreateWhois) Route() string
- func (m *MsgCreateWhois) Size() (n int)
- func (m *MsgCreateWhois) String() string
- func (msg *MsgCreateWhois) Type() string
- func (m *MsgCreateWhois) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateWhois) ValidateBasic() error
- func (m *MsgCreateWhois) XXX_DiscardUnknown()
- func (m *MsgCreateWhois) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateWhois) XXX_Merge(src proto.Message)
- func (m *MsgCreateWhois) XXX_Size() int
- func (m *MsgCreateWhois) XXX_Unmarshal(b []byte) error
- type MsgCreateWhoisResponse
- func (*MsgCreateWhoisResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateWhoisResponse) GetId() uint64
- func (m *MsgCreateWhoisResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateWhoisResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateWhoisResponse) ProtoMessage()
- func (m *MsgCreateWhoisResponse) Reset()
- func (m *MsgCreateWhoisResponse) Size() (n int)
- func (m *MsgCreateWhoisResponse) String() string
- func (m *MsgCreateWhoisResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateWhoisResponse) XXX_DiscardUnknown()
- func (m *MsgCreateWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateWhoisResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateWhoisResponse) XXX_Size() int
- func (m *MsgCreateWhoisResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteWhois
- func (*MsgDeleteWhois) Descriptor() ([]byte, []int)
- func (m *MsgDeleteWhois) GetCreator() string
- func (m *MsgDeleteWhois) GetId() uint64
- func (msg *MsgDeleteWhois) GetSignBytes() []byte
- func (msg *MsgDeleteWhois) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteWhois) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteWhois) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteWhois) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteWhois) ProtoMessage()
- func (m *MsgDeleteWhois) Reset()
- func (msg *MsgDeleteWhois) Route() string
- func (m *MsgDeleteWhois) Size() (n int)
- func (m *MsgDeleteWhois) String() string
- func (msg *MsgDeleteWhois) Type() string
- func (m *MsgDeleteWhois) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteWhois) ValidateBasic() error
- func (m *MsgDeleteWhois) XXX_DiscardUnknown()
- func (m *MsgDeleteWhois) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteWhois) XXX_Merge(src proto.Message)
- func (m *MsgDeleteWhois) XXX_Size() int
- func (m *MsgDeleteWhois) XXX_Unmarshal(b []byte) error
- type MsgDeleteWhoisResponse
- func (*MsgDeleteWhoisResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteWhoisResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteWhoisResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteWhoisResponse) ProtoMessage()
- func (m *MsgDeleteWhoisResponse) Reset()
- func (m *MsgDeleteWhoisResponse) Size() (n int)
- func (m *MsgDeleteWhoisResponse) String() string
- func (m *MsgDeleteWhoisResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteWhoisResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteWhoisResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteWhoisResponse) XXX_Size() int
- func (m *MsgDeleteWhoisResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateWhois
- func (*MsgUpdateWhois) Descriptor() ([]byte, []int)
- func (m *MsgUpdateWhois) GetCreator() string
- func (m *MsgUpdateWhois) GetId() uint64
- func (m *MsgUpdateWhois) GetPrice() string
- func (msg *MsgUpdateWhois) GetSignBytes() []byte
- func (msg *MsgUpdateWhois) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateWhois) GetUniqueId() string
- func (m *MsgUpdateWhois) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateWhois) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateWhois) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateWhois) ProtoMessage()
- func (m *MsgUpdateWhois) Reset()
- func (msg *MsgUpdateWhois) Route() string
- func (m *MsgUpdateWhois) Size() (n int)
- func (m *MsgUpdateWhois) String() string
- func (msg *MsgUpdateWhois) Type() string
- func (m *MsgUpdateWhois) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateWhois) ValidateBasic() error
- func (m *MsgUpdateWhois) XXX_DiscardUnknown()
- func (m *MsgUpdateWhois) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateWhois) XXX_Merge(src proto.Message)
- func (m *MsgUpdateWhois) XXX_Size() int
- func (m *MsgUpdateWhois) XXX_Unmarshal(b []byte) error
- type MsgUpdateWhoisResponse
- func (*MsgUpdateWhoisResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateWhoisResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateWhoisResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateWhoisResponse) ProtoMessage()
- func (m *MsgUpdateWhoisResponse) Reset()
- func (m *MsgUpdateWhoisResponse) Size() (n int)
- func (m *MsgUpdateWhoisResponse) String() string
- func (m *MsgUpdateWhoisResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateWhoisResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateWhoisResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateWhoisResponse) XXX_Size() int
- func (m *MsgUpdateWhoisResponse) XXX_Unmarshal(b []byte) error
- type QueryAllWhoisRequest
- func (*QueryAllWhoisRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllWhoisRequest) GetPagination() *query.PageRequest
- func (m *QueryAllWhoisRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllWhoisRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllWhoisRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllWhoisRequest) ProtoMessage()
- func (m *QueryAllWhoisRequest) Reset()
- func (m *QueryAllWhoisRequest) Size() (n int)
- func (m *QueryAllWhoisRequest) String() string
- func (m *QueryAllWhoisRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllWhoisRequest) XXX_DiscardUnknown()
- func (m *QueryAllWhoisRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllWhoisRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllWhoisRequest) XXX_Size() int
- func (m *QueryAllWhoisRequest) XXX_Unmarshal(b []byte) error
- type QueryAllWhoisResponse
- func (*QueryAllWhoisResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllWhoisResponse) GetPagination() *query.PageResponse
- func (m *QueryAllWhoisResponse) GetWhois() []*Whois
- func (m *QueryAllWhoisResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllWhoisResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllWhoisResponse) ProtoMessage()
- func (m *QueryAllWhoisResponse) Reset()
- func (m *QueryAllWhoisResponse) Size() (n int)
- func (m *QueryAllWhoisResponse) String() string
- func (m *QueryAllWhoisResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllWhoisResponse) XXX_DiscardUnknown()
- func (m *QueryAllWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllWhoisResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllWhoisResponse) XXX_Size() int
- func (m *QueryAllWhoisResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetWhoisRequest
- func (*QueryGetWhoisRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetWhoisRequest) GetId() uint64
- func (m *QueryGetWhoisRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetWhoisRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetWhoisRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetWhoisRequest) ProtoMessage()
- func (m *QueryGetWhoisRequest) Reset()
- func (m *QueryGetWhoisRequest) Size() (n int)
- func (m *QueryGetWhoisRequest) String() string
- func (m *QueryGetWhoisRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetWhoisRequest) XXX_DiscardUnknown()
- func (m *QueryGetWhoisRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetWhoisRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetWhoisRequest) XXX_Size() int
- func (m *QueryGetWhoisRequest) XXX_Unmarshal(b []byte) error
- type QueryGetWhoisResponse
- func (*QueryGetWhoisResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetWhoisResponse) GetWhois() *Whois
- func (m *QueryGetWhoisResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetWhoisResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetWhoisResponse) ProtoMessage()
- func (m *QueryGetWhoisResponse) Reset()
- func (m *QueryGetWhoisResponse) Size() (n int)
- func (m *QueryGetWhoisResponse) String() string
- func (m *QueryGetWhoisResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetWhoisResponse) XXX_DiscardUnknown()
- func (m *QueryGetWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetWhoisResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetWhoisResponse) XXX_Size() int
- func (m *QueryGetWhoisResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateWhois(ctx context.Context, req *MsgCreateWhois) (*MsgCreateWhoisResponse, error)
- func (*UnimplementedMsgServer) DeleteWhois(ctx context.Context, req *MsgDeleteWhois) (*MsgDeleteWhoisResponse, error)
- func (*UnimplementedMsgServer) UpdateWhois(ctx context.Context, req *MsgUpdateWhois) (*MsgUpdateWhoisResponse, error)
- type UnimplementedQueryServer
- type Whois
- func (*Whois) Descriptor() ([]byte, []int)
- func (m *Whois) GetCreator() string
- func (m *Whois) GetId() uint64
- func (m *Whois) GetPrice() string
- func (m *Whois) GetUniqueId() string
- func (m *Whois) Marshal() (dAtA []byte, err error)
- func (m *Whois) MarshalTo(dAtA []byte) (int, error)
- func (m *Whois) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Whois) ProtoMessage()
- func (m *Whois) Reset()
- func (m *Whois) Size() (n int)
- func (m *Whois) String() string
- func (m *Whois) Unmarshal(dAtA []byte) error
- func (m *Whois) XXX_DiscardUnknown()
- func (m *Whois) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Whois) XXX_Merge(src proto.Message)
- func (m *Whois) XXX_Size() int
- func (m *Whois) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "nameservice" // 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_nameservice" )
const ( WhoisKey = "Whois-value-" WhoisCountKey = "Whois-count-" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthWhois = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowWhois = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupWhois = fmt.Errorf("proto: unexpected end of group") )
var (
ErrNameDoesNotExist = sdkerrors.Register(ModuleName, 1, "name does not exist")
)
var (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/nameservice module sentinel errors
var (
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { }
type GenesisState ¶
type GenesisState struct { // this line is used by starport scaffolding # genesis/proto/state WhoisList []*Whois `protobuf:"bytes,1,rep,name=whoisList,proto3" json:"whoisList,omitempty"` WhoisCount uint64 `protobuf:"varint,2,opt,name=whoisCount,proto3" json:"whoisCount,omitempty"` }
GenesisState defines the nameservice 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) GetWhoisCount ¶
func (m *GenesisState) GetWhoisCount() uint64
func (*GenesisState) GetWhoisList ¶
func (m *GenesisState) GetWhoisList() []*Whois
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // this line is used by starport scaffolding # proto/tx/rpc CreateWhois(ctx context.Context, in *MsgCreateWhois, opts ...grpc.CallOption) (*MsgCreateWhoisResponse, error) UpdateWhois(ctx context.Context, in *MsgUpdateWhois, opts ...grpc.CallOption) (*MsgUpdateWhoisResponse, error) DeleteWhois(ctx context.Context, in *MsgDeleteWhois, opts ...grpc.CallOption) (*MsgDeleteWhoisResponse, 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 MsgCreateWhois ¶
type MsgCreateWhois struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` UniqueId string `protobuf:"bytes,2,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"` Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` }
this line is used by starport scaffolding # proto/tx/message
func NewMsgCreateWhois ¶
func NewMsgCreateWhois(creator string, uniqueId string, price string) *MsgCreateWhois
func (*MsgCreateWhois) Descriptor ¶
func (*MsgCreateWhois) Descriptor() ([]byte, []int)
func (*MsgCreateWhois) GetCreator ¶
func (m *MsgCreateWhois) GetCreator() string
func (*MsgCreateWhois) GetPrice ¶
func (m *MsgCreateWhois) GetPrice() string
func (*MsgCreateWhois) GetSignBytes ¶
func (msg *MsgCreateWhois) GetSignBytes() []byte
func (*MsgCreateWhois) GetSigners ¶
func (msg *MsgCreateWhois) GetSigners() []sdk.AccAddress
func (*MsgCreateWhois) GetUniqueId ¶
func (m *MsgCreateWhois) GetUniqueId() string
func (*MsgCreateWhois) Marshal ¶
func (m *MsgCreateWhois) Marshal() (dAtA []byte, err error)
func (*MsgCreateWhois) MarshalToSizedBuffer ¶
func (m *MsgCreateWhois) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateWhois) ProtoMessage ¶
func (*MsgCreateWhois) ProtoMessage()
func (*MsgCreateWhois) Reset ¶
func (m *MsgCreateWhois) Reset()
func (*MsgCreateWhois) Route ¶
func (msg *MsgCreateWhois) Route() string
func (*MsgCreateWhois) Size ¶
func (m *MsgCreateWhois) Size() (n int)
func (*MsgCreateWhois) String ¶
func (m *MsgCreateWhois) String() string
func (*MsgCreateWhois) Type ¶
func (msg *MsgCreateWhois) Type() string
func (*MsgCreateWhois) Unmarshal ¶
func (m *MsgCreateWhois) Unmarshal(dAtA []byte) error
func (*MsgCreateWhois) ValidateBasic ¶
func (msg *MsgCreateWhois) ValidateBasic() error
func (*MsgCreateWhois) XXX_DiscardUnknown ¶
func (m *MsgCreateWhois) XXX_DiscardUnknown()
func (*MsgCreateWhois) XXX_Marshal ¶
func (m *MsgCreateWhois) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateWhois) XXX_Merge ¶
func (m *MsgCreateWhois) XXX_Merge(src proto.Message)
func (*MsgCreateWhois) XXX_Size ¶
func (m *MsgCreateWhois) XXX_Size() int
func (*MsgCreateWhois) XXX_Unmarshal ¶
func (m *MsgCreateWhois) XXX_Unmarshal(b []byte) error
type MsgCreateWhoisResponse ¶
type MsgCreateWhoisResponse struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*MsgCreateWhoisResponse) Descriptor ¶
func (*MsgCreateWhoisResponse) Descriptor() ([]byte, []int)
func (*MsgCreateWhoisResponse) GetId ¶
func (m *MsgCreateWhoisResponse) GetId() uint64
func (*MsgCreateWhoisResponse) Marshal ¶
func (m *MsgCreateWhoisResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateWhoisResponse) MarshalTo ¶
func (m *MsgCreateWhoisResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateWhoisResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateWhoisResponse) ProtoMessage ¶
func (*MsgCreateWhoisResponse) ProtoMessage()
func (*MsgCreateWhoisResponse) Reset ¶
func (m *MsgCreateWhoisResponse) Reset()
func (*MsgCreateWhoisResponse) Size ¶
func (m *MsgCreateWhoisResponse) Size() (n int)
func (*MsgCreateWhoisResponse) String ¶
func (m *MsgCreateWhoisResponse) String() string
func (*MsgCreateWhoisResponse) Unmarshal ¶
func (m *MsgCreateWhoisResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateWhoisResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateWhoisResponse) XXX_DiscardUnknown()
func (*MsgCreateWhoisResponse) XXX_Marshal ¶
func (m *MsgCreateWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateWhoisResponse) XXX_Merge ¶
func (m *MsgCreateWhoisResponse) XXX_Merge(src proto.Message)
func (*MsgCreateWhoisResponse) XXX_Size ¶
func (m *MsgCreateWhoisResponse) XXX_Size() int
func (*MsgCreateWhoisResponse) XXX_Unmarshal ¶
func (m *MsgCreateWhoisResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteWhois ¶
type MsgDeleteWhois 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 NewMsgDeleteWhois ¶
func NewMsgDeleteWhois(creator string, id uint64) *MsgDeleteWhois
func (*MsgDeleteWhois) Descriptor ¶
func (*MsgDeleteWhois) Descriptor() ([]byte, []int)
func (*MsgDeleteWhois) GetCreator ¶
func (m *MsgDeleteWhois) GetCreator() string
func (*MsgDeleteWhois) GetId ¶
func (m *MsgDeleteWhois) GetId() uint64
func (*MsgDeleteWhois) GetSignBytes ¶
func (msg *MsgDeleteWhois) GetSignBytes() []byte
func (*MsgDeleteWhois) GetSigners ¶
func (msg *MsgDeleteWhois) GetSigners() []sdk.AccAddress
func (*MsgDeleteWhois) Marshal ¶
func (m *MsgDeleteWhois) Marshal() (dAtA []byte, err error)
func (*MsgDeleteWhois) MarshalToSizedBuffer ¶
func (m *MsgDeleteWhois) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteWhois) ProtoMessage ¶
func (*MsgDeleteWhois) ProtoMessage()
func (*MsgDeleteWhois) Reset ¶
func (m *MsgDeleteWhois) Reset()
func (*MsgDeleteWhois) Route ¶
func (msg *MsgDeleteWhois) Route() string
func (*MsgDeleteWhois) Size ¶
func (m *MsgDeleteWhois) Size() (n int)
func (*MsgDeleteWhois) String ¶
func (m *MsgDeleteWhois) String() string
func (*MsgDeleteWhois) Type ¶
func (msg *MsgDeleteWhois) Type() string
func (*MsgDeleteWhois) Unmarshal ¶
func (m *MsgDeleteWhois) Unmarshal(dAtA []byte) error
func (*MsgDeleteWhois) ValidateBasic ¶
func (msg *MsgDeleteWhois) ValidateBasic() error
func (*MsgDeleteWhois) XXX_DiscardUnknown ¶
func (m *MsgDeleteWhois) XXX_DiscardUnknown()
func (*MsgDeleteWhois) XXX_Marshal ¶
func (m *MsgDeleteWhois) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteWhois) XXX_Merge ¶
func (m *MsgDeleteWhois) XXX_Merge(src proto.Message)
func (*MsgDeleteWhois) XXX_Size ¶
func (m *MsgDeleteWhois) XXX_Size() int
func (*MsgDeleteWhois) XXX_Unmarshal ¶
func (m *MsgDeleteWhois) XXX_Unmarshal(b []byte) error
type MsgDeleteWhoisResponse ¶
type MsgDeleteWhoisResponse struct { }
func (*MsgDeleteWhoisResponse) Descriptor ¶
func (*MsgDeleteWhoisResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteWhoisResponse) Marshal ¶
func (m *MsgDeleteWhoisResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteWhoisResponse) MarshalTo ¶
func (m *MsgDeleteWhoisResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteWhoisResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteWhoisResponse) ProtoMessage ¶
func (*MsgDeleteWhoisResponse) ProtoMessage()
func (*MsgDeleteWhoisResponse) Reset ¶
func (m *MsgDeleteWhoisResponse) Reset()
func (*MsgDeleteWhoisResponse) Size ¶
func (m *MsgDeleteWhoisResponse) Size() (n int)
func (*MsgDeleteWhoisResponse) String ¶
func (m *MsgDeleteWhoisResponse) String() string
func (*MsgDeleteWhoisResponse) Unmarshal ¶
func (m *MsgDeleteWhoisResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteWhoisResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteWhoisResponse) XXX_DiscardUnknown()
func (*MsgDeleteWhoisResponse) XXX_Marshal ¶
func (m *MsgDeleteWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteWhoisResponse) XXX_Merge ¶
func (m *MsgDeleteWhoisResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteWhoisResponse) XXX_Size ¶
func (m *MsgDeleteWhoisResponse) XXX_Size() int
func (*MsgDeleteWhoisResponse) XXX_Unmarshal ¶
func (m *MsgDeleteWhoisResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // this line is used by starport scaffolding # proto/tx/rpc CreateWhois(context.Context, *MsgCreateWhois) (*MsgCreateWhoisResponse, error) UpdateWhois(context.Context, *MsgUpdateWhois) (*MsgUpdateWhoisResponse, error) DeleteWhois(context.Context, *MsgDeleteWhois) (*MsgDeleteWhoisResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateWhois ¶
type MsgUpdateWhois 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"` UniqueId string `protobuf:"bytes,3,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"` Price string `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"` }
func NewMsgUpdateWhois ¶
func NewMsgUpdateWhois(creator string, id uint64, uniqueId string, price string) *MsgUpdateWhois
func (*MsgUpdateWhois) Descriptor ¶
func (*MsgUpdateWhois) Descriptor() ([]byte, []int)
func (*MsgUpdateWhois) GetCreator ¶
func (m *MsgUpdateWhois) GetCreator() string
func (*MsgUpdateWhois) GetId ¶
func (m *MsgUpdateWhois) GetId() uint64
func (*MsgUpdateWhois) GetPrice ¶
func (m *MsgUpdateWhois) GetPrice() string
func (*MsgUpdateWhois) GetSignBytes ¶
func (msg *MsgUpdateWhois) GetSignBytes() []byte
func (*MsgUpdateWhois) GetSigners ¶
func (msg *MsgUpdateWhois) GetSigners() []sdk.AccAddress
func (*MsgUpdateWhois) GetUniqueId ¶
func (m *MsgUpdateWhois) GetUniqueId() string
func (*MsgUpdateWhois) Marshal ¶
func (m *MsgUpdateWhois) Marshal() (dAtA []byte, err error)
func (*MsgUpdateWhois) MarshalToSizedBuffer ¶
func (m *MsgUpdateWhois) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateWhois) ProtoMessage ¶
func (*MsgUpdateWhois) ProtoMessage()
func (*MsgUpdateWhois) Reset ¶
func (m *MsgUpdateWhois) Reset()
func (*MsgUpdateWhois) Route ¶
func (msg *MsgUpdateWhois) Route() string
func (*MsgUpdateWhois) Size ¶
func (m *MsgUpdateWhois) Size() (n int)
func (*MsgUpdateWhois) String ¶
func (m *MsgUpdateWhois) String() string
func (*MsgUpdateWhois) Type ¶
func (msg *MsgUpdateWhois) Type() string
func (*MsgUpdateWhois) Unmarshal ¶
func (m *MsgUpdateWhois) Unmarshal(dAtA []byte) error
func (*MsgUpdateWhois) ValidateBasic ¶
func (msg *MsgUpdateWhois) ValidateBasic() error
func (*MsgUpdateWhois) XXX_DiscardUnknown ¶
func (m *MsgUpdateWhois) XXX_DiscardUnknown()
func (*MsgUpdateWhois) XXX_Marshal ¶
func (m *MsgUpdateWhois) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateWhois) XXX_Merge ¶
func (m *MsgUpdateWhois) XXX_Merge(src proto.Message)
func (*MsgUpdateWhois) XXX_Size ¶
func (m *MsgUpdateWhois) XXX_Size() int
func (*MsgUpdateWhois) XXX_Unmarshal ¶
func (m *MsgUpdateWhois) XXX_Unmarshal(b []byte) error
type MsgUpdateWhoisResponse ¶
type MsgUpdateWhoisResponse struct { }
func (*MsgUpdateWhoisResponse) Descriptor ¶
func (*MsgUpdateWhoisResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateWhoisResponse) Marshal ¶
func (m *MsgUpdateWhoisResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateWhoisResponse) MarshalTo ¶
func (m *MsgUpdateWhoisResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateWhoisResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateWhoisResponse) ProtoMessage ¶
func (*MsgUpdateWhoisResponse) ProtoMessage()
func (*MsgUpdateWhoisResponse) Reset ¶
func (m *MsgUpdateWhoisResponse) Reset()
func (*MsgUpdateWhoisResponse) Size ¶
func (m *MsgUpdateWhoisResponse) Size() (n int)
func (*MsgUpdateWhoisResponse) String ¶
func (m *MsgUpdateWhoisResponse) String() string
func (*MsgUpdateWhoisResponse) Unmarshal ¶
func (m *MsgUpdateWhoisResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateWhoisResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateWhoisResponse) XXX_DiscardUnknown()
func (*MsgUpdateWhoisResponse) XXX_Marshal ¶
func (m *MsgUpdateWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateWhoisResponse) XXX_Merge ¶
func (m *MsgUpdateWhoisResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateWhoisResponse) XXX_Size ¶
func (m *MsgUpdateWhoisResponse) XXX_Size() int
func (*MsgUpdateWhoisResponse) XXX_Unmarshal ¶
func (m *MsgUpdateWhoisResponse) XXX_Unmarshal(b []byte) error
type QueryAllWhoisRequest ¶
type QueryAllWhoisRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllWhoisRequest) Descriptor ¶
func (*QueryAllWhoisRequest) Descriptor() ([]byte, []int)
func (*QueryAllWhoisRequest) GetPagination ¶
func (m *QueryAllWhoisRequest) GetPagination() *query.PageRequest
func (*QueryAllWhoisRequest) Marshal ¶
func (m *QueryAllWhoisRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllWhoisRequest) MarshalTo ¶
func (m *QueryAllWhoisRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllWhoisRequest) MarshalToSizedBuffer ¶
func (m *QueryAllWhoisRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllWhoisRequest) ProtoMessage ¶
func (*QueryAllWhoisRequest) ProtoMessage()
func (*QueryAllWhoisRequest) Reset ¶
func (m *QueryAllWhoisRequest) Reset()
func (*QueryAllWhoisRequest) Size ¶
func (m *QueryAllWhoisRequest) Size() (n int)
func (*QueryAllWhoisRequest) String ¶
func (m *QueryAllWhoisRequest) String() string
func (*QueryAllWhoisRequest) Unmarshal ¶
func (m *QueryAllWhoisRequest) Unmarshal(dAtA []byte) error
func (*QueryAllWhoisRequest) XXX_DiscardUnknown ¶
func (m *QueryAllWhoisRequest) XXX_DiscardUnknown()
func (*QueryAllWhoisRequest) XXX_Marshal ¶
func (m *QueryAllWhoisRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllWhoisRequest) XXX_Merge ¶
func (m *QueryAllWhoisRequest) XXX_Merge(src proto.Message)
func (*QueryAllWhoisRequest) XXX_Size ¶
func (m *QueryAllWhoisRequest) XXX_Size() int
func (*QueryAllWhoisRequest) XXX_Unmarshal ¶
func (m *QueryAllWhoisRequest) XXX_Unmarshal(b []byte) error
type QueryAllWhoisResponse ¶
type QueryAllWhoisResponse struct { Whois []*Whois `protobuf:"bytes,1,rep,name=Whois,proto3" json:"Whois,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllWhoisResponse) Descriptor ¶
func (*QueryAllWhoisResponse) Descriptor() ([]byte, []int)
func (*QueryAllWhoisResponse) GetPagination ¶
func (m *QueryAllWhoisResponse) GetPagination() *query.PageResponse
func (*QueryAllWhoisResponse) GetWhois ¶
func (m *QueryAllWhoisResponse) GetWhois() []*Whois
func (*QueryAllWhoisResponse) Marshal ¶
func (m *QueryAllWhoisResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllWhoisResponse) MarshalTo ¶
func (m *QueryAllWhoisResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllWhoisResponse) MarshalToSizedBuffer ¶
func (m *QueryAllWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllWhoisResponse) ProtoMessage ¶
func (*QueryAllWhoisResponse) ProtoMessage()
func (*QueryAllWhoisResponse) Reset ¶
func (m *QueryAllWhoisResponse) Reset()
func (*QueryAllWhoisResponse) Size ¶
func (m *QueryAllWhoisResponse) Size() (n int)
func (*QueryAllWhoisResponse) String ¶
func (m *QueryAllWhoisResponse) String() string
func (*QueryAllWhoisResponse) Unmarshal ¶
func (m *QueryAllWhoisResponse) Unmarshal(dAtA []byte) error
func (*QueryAllWhoisResponse) XXX_DiscardUnknown ¶
func (m *QueryAllWhoisResponse) XXX_DiscardUnknown()
func (*QueryAllWhoisResponse) XXX_Marshal ¶
func (m *QueryAllWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllWhoisResponse) XXX_Merge ¶
func (m *QueryAllWhoisResponse) XXX_Merge(src proto.Message)
func (*QueryAllWhoisResponse) XXX_Size ¶
func (m *QueryAllWhoisResponse) XXX_Size() int
func (*QueryAllWhoisResponse) XXX_Unmarshal ¶
func (m *QueryAllWhoisResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Queries a whois by id. Whois(ctx context.Context, in *QueryGetWhoisRequest, opts ...grpc.CallOption) (*QueryGetWhoisResponse, error) // Queries a list of whois items. WhoisAll(ctx context.Context, in *QueryAllWhoisRequest, opts ...grpc.CallOption) (*QueryAllWhoisResponse, 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 QueryGetWhoisRequest ¶
type QueryGetWhoisRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
this line is used by starport scaffolding # 3
func (*QueryGetWhoisRequest) Descriptor ¶
func (*QueryGetWhoisRequest) Descriptor() ([]byte, []int)
func (*QueryGetWhoisRequest) GetId ¶
func (m *QueryGetWhoisRequest) GetId() uint64
func (*QueryGetWhoisRequest) Marshal ¶
func (m *QueryGetWhoisRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetWhoisRequest) MarshalTo ¶
func (m *QueryGetWhoisRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetWhoisRequest) MarshalToSizedBuffer ¶
func (m *QueryGetWhoisRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetWhoisRequest) ProtoMessage ¶
func (*QueryGetWhoisRequest) ProtoMessage()
func (*QueryGetWhoisRequest) Reset ¶
func (m *QueryGetWhoisRequest) Reset()
func (*QueryGetWhoisRequest) Size ¶
func (m *QueryGetWhoisRequest) Size() (n int)
func (*QueryGetWhoisRequest) String ¶
func (m *QueryGetWhoisRequest) String() string
func (*QueryGetWhoisRequest) Unmarshal ¶
func (m *QueryGetWhoisRequest) Unmarshal(dAtA []byte) error
func (*QueryGetWhoisRequest) XXX_DiscardUnknown ¶
func (m *QueryGetWhoisRequest) XXX_DiscardUnknown()
func (*QueryGetWhoisRequest) XXX_Marshal ¶
func (m *QueryGetWhoisRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetWhoisRequest) XXX_Merge ¶
func (m *QueryGetWhoisRequest) XXX_Merge(src proto.Message)
func (*QueryGetWhoisRequest) XXX_Size ¶
func (m *QueryGetWhoisRequest) XXX_Size() int
func (*QueryGetWhoisRequest) XXX_Unmarshal ¶
func (m *QueryGetWhoisRequest) XXX_Unmarshal(b []byte) error
type QueryGetWhoisResponse ¶
type QueryGetWhoisResponse struct {
Whois *Whois `protobuf:"bytes,1,opt,name=Whois,proto3" json:"Whois,omitempty"`
}
func (*QueryGetWhoisResponse) Descriptor ¶
func (*QueryGetWhoisResponse) Descriptor() ([]byte, []int)
func (*QueryGetWhoisResponse) GetWhois ¶
func (m *QueryGetWhoisResponse) GetWhois() *Whois
func (*QueryGetWhoisResponse) Marshal ¶
func (m *QueryGetWhoisResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetWhoisResponse) MarshalTo ¶
func (m *QueryGetWhoisResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetWhoisResponse) MarshalToSizedBuffer ¶
func (m *QueryGetWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetWhoisResponse) ProtoMessage ¶
func (*QueryGetWhoisResponse) ProtoMessage()
func (*QueryGetWhoisResponse) Reset ¶
func (m *QueryGetWhoisResponse) Reset()
func (*QueryGetWhoisResponse) Size ¶
func (m *QueryGetWhoisResponse) Size() (n int)
func (*QueryGetWhoisResponse) String ¶
func (m *QueryGetWhoisResponse) String() string
func (*QueryGetWhoisResponse) Unmarshal ¶
func (m *QueryGetWhoisResponse) Unmarshal(dAtA []byte) error
func (*QueryGetWhoisResponse) XXX_DiscardUnknown ¶
func (m *QueryGetWhoisResponse) XXX_DiscardUnknown()
func (*QueryGetWhoisResponse) XXX_Marshal ¶
func (m *QueryGetWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetWhoisResponse) XXX_Merge ¶
func (m *QueryGetWhoisResponse) XXX_Merge(src proto.Message)
func (*QueryGetWhoisResponse) XXX_Size ¶
func (m *QueryGetWhoisResponse) XXX_Size() int
func (*QueryGetWhoisResponse) XXX_Unmarshal ¶
func (m *QueryGetWhoisResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Queries a whois by id. Whois(context.Context, *QueryGetWhoisRequest) (*QueryGetWhoisResponse, error) // Queries a list of whois items. WhoisAll(context.Context, *QueryAllWhoisRequest) (*QueryAllWhoisResponse, 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) CreateWhois ¶
func (*UnimplementedMsgServer) CreateWhois(ctx context.Context, req *MsgCreateWhois) (*MsgCreateWhoisResponse, error)
func (*UnimplementedMsgServer) DeleteWhois ¶
func (*UnimplementedMsgServer) DeleteWhois(ctx context.Context, req *MsgDeleteWhois) (*MsgDeleteWhoisResponse, error)
func (*UnimplementedMsgServer) UpdateWhois ¶
func (*UnimplementedMsgServer) UpdateWhois(ctx context.Context, req *MsgUpdateWhois) (*MsgUpdateWhoisResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Whois ¶
func (*UnimplementedQueryServer) Whois(ctx context.Context, req *QueryGetWhoisRequest) (*QueryGetWhoisResponse, error)
func (*UnimplementedQueryServer) WhoisAll ¶
func (*UnimplementedQueryServer) WhoisAll(ctx context.Context, req *QueryAllWhoisRequest) (*QueryAllWhoisResponse, error)
type Whois ¶
type Whois 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"` UniqueId string `protobuf:"bytes,3,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"` Price string `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"` }
func (*Whois) Descriptor ¶
func (*Whois) GetCreator ¶
func (*Whois) GetUniqueId ¶
func (*Whois) ProtoMessage ¶
func (*Whois) ProtoMessage()
func (*Whois) XXX_DiscardUnknown ¶
func (m *Whois) XXX_DiscardUnknown()