Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Variables
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type ParamChange
- func (*ParamChange) Descriptor() ([]byte, []int)deprecated
- func (x *ParamChange) GetKey() string
- func (x *ParamChange) GetSubspace() string
- func (x *ParamChange) GetValue() string
- func (*ParamChange) ProtoMessage()
- func (x *ParamChange) ProtoReflect() protoreflect.Message
- func (x *ParamChange) Reset()
- func (x *ParamChange) String() string
- type ParameterChangeProposal
- func (*ParameterChangeProposal) Descriptor() ([]byte, []int)deprecated
- func (x *ParameterChangeProposal) GetChanges() []*ParamChange
- func (x *ParameterChangeProposal) GetDescription() string
- func (x *ParameterChangeProposal) GetTitle() string
- func (*ParameterChangeProposal) ProtoMessage()
- func (x *ParameterChangeProposal) ProtoReflect() protoreflect.Message
- func (x *ParameterChangeProposal) Reset()
- func (x *ParameterChangeProposal) String() string
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsRequest) GetKey() string
- func (x *QueryParamsRequest) GetSubspace() string
- func (*QueryParamsRequest) ProtoMessage()
- func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryParamsRequest) Reset()
- func (x *QueryParamsRequest) String() string
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParam() *ParamChange
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type QuerySubspacesRequest
- type QuerySubspacesResponse
- func (*QuerySubspacesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySubspacesResponse) GetSubspaces() []*Subspace
- func (*QuerySubspacesResponse) ProtoMessage()
- func (x *QuerySubspacesResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySubspacesResponse) Reset()
- func (x *QuerySubspacesResponse) String() string
- type Subspace
- type UnimplementedQueryServer
- type UnsafeQueryServer
Constants ¶
This section is empty.
Variables ¶
var File_cosmos_params_v1beta1_params_proto protoreflect.FileDescriptor
var File_cosmos_params_v1beta1_query_proto protoreflect.FileDescriptor
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.params.v1beta1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "Subspaces", Handler: _Query_Subspaces_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/params/v1beta1/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 RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type ParamChange ¶
type ParamChange struct { Subspace string `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
ParamChange defines an individual parameter change, for use in ParameterChangeProposal.
func (*ParamChange) Descriptor
deprecated
func (*ParamChange) Descriptor() ([]byte, []int)
Deprecated: Use ParamChange.ProtoReflect.Descriptor instead.
func (*ParamChange) GetKey ¶
func (x *ParamChange) GetKey() string
func (*ParamChange) GetSubspace ¶
func (x *ParamChange) GetSubspace() string
func (*ParamChange) GetValue ¶
func (x *ParamChange) GetValue() string
func (*ParamChange) ProtoMessage ¶
func (*ParamChange) ProtoMessage()
func (*ParamChange) ProtoReflect ¶
func (x *ParamChange) ProtoReflect() protoreflect.Message
func (*ParamChange) Reset ¶
func (x *ParamChange) Reset()
func (*ParamChange) String ¶
func (x *ParamChange) String() string
type ParameterChangeProposal ¶
type ParameterChangeProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Changes []*ParamChange `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes,omitempty"` // contains filtered or unexported fields }
ParameterChangeProposal defines a proposal to change one or more parameters.
func (*ParameterChangeProposal) Descriptor
deprecated
func (*ParameterChangeProposal) Descriptor() ([]byte, []int)
Deprecated: Use ParameterChangeProposal.ProtoReflect.Descriptor instead.
func (*ParameterChangeProposal) GetChanges ¶
func (x *ParameterChangeProposal) GetChanges() []*ParamChange
func (*ParameterChangeProposal) GetDescription ¶
func (x *ParameterChangeProposal) GetDescription() string
func (*ParameterChangeProposal) GetTitle ¶
func (x *ParameterChangeProposal) GetTitle() string
func (*ParameterChangeProposal) ProtoMessage ¶
func (*ParameterChangeProposal) ProtoMessage()
func (*ParameterChangeProposal) ProtoReflect ¶
func (x *ParameterChangeProposal) ProtoReflect() protoreflect.Message
func (*ParameterChangeProposal) Reset ¶
func (x *ParameterChangeProposal) Reset()
func (*ParameterChangeProposal) String ¶
func (x *ParameterChangeProposal) String() string
type QueryClient ¶
type QueryClient interface { // Params queries a specific parameter of a module, given its subspace and // key. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Subspaces queries for all registered subspaces and all keys for a subspace. // // Since: cosmos-sdk 0.46 Subspaces(ctx context.Context, in *QuerySubspacesRequest, opts ...grpc.CallOption) (*QuerySubspacesResponse, 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 QueryParamsRequest ¶
type QueryParamsRequest struct { // subspace defines the module to query the parameter for. Subspace string `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace,omitempty"` // key defines the key of the parameter in the subspace. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) GetKey ¶
func (x *QueryParamsRequest) GetKey() string
func (*QueryParamsRequest) GetSubspace ¶
func (x *QueryParamsRequest) GetSubspace() string
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // param defines the queried parameter. Param *ParamChange `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParam ¶
func (x *QueryParamsResponse) GetParam() *ParamChange
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Params queries a specific parameter of a module, given its subspace and // key. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Subspaces queries for all registered subspaces and all keys for a subspace. // // Since: cosmos-sdk 0.46 Subspaces(context.Context, *QuerySubspacesRequest) (*QuerySubspacesResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QuerySubspacesRequest ¶
type QuerySubspacesRequest struct {
// contains filtered or unexported fields
}
QuerySubspacesRequest defines a request type for querying for all registered subspaces and all keys for a subspace.
Since: cosmos-sdk 0.46
func (*QuerySubspacesRequest) Descriptor
deprecated
func (*QuerySubspacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySubspacesRequest.ProtoReflect.Descriptor instead.
func (*QuerySubspacesRequest) ProtoMessage ¶
func (*QuerySubspacesRequest) ProtoMessage()
func (*QuerySubspacesRequest) ProtoReflect ¶
func (x *QuerySubspacesRequest) ProtoReflect() protoreflect.Message
func (*QuerySubspacesRequest) Reset ¶
func (x *QuerySubspacesRequest) Reset()
func (*QuerySubspacesRequest) String ¶
func (x *QuerySubspacesRequest) String() string
type QuerySubspacesResponse ¶
type QuerySubspacesResponse struct { Subspaces []*Subspace `protobuf:"bytes,1,rep,name=subspaces,proto3" json:"subspaces,omitempty"` // contains filtered or unexported fields }
QuerySubspacesResponse defines the response types for querying for all registered subspaces and all keys for a subspace.
Since: cosmos-sdk 0.46
func (*QuerySubspacesResponse) Descriptor
deprecated
func (*QuerySubspacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySubspacesResponse.ProtoReflect.Descriptor instead.
func (*QuerySubspacesResponse) GetSubspaces ¶
func (x *QuerySubspacesResponse) GetSubspaces() []*Subspace
func (*QuerySubspacesResponse) ProtoMessage ¶
func (*QuerySubspacesResponse) ProtoMessage()
func (*QuerySubspacesResponse) ProtoReflect ¶
func (x *QuerySubspacesResponse) ProtoReflect() protoreflect.Message
func (*QuerySubspacesResponse) Reset ¶
func (x *QuerySubspacesResponse) Reset()
func (*QuerySubspacesResponse) String ¶
func (x *QuerySubspacesResponse) String() string
type Subspace ¶
type Subspace struct { Subspace string `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace,omitempty"` Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
Subspace defines a parameter subspace name and all the keys that exist for the subspace.
Since: cosmos-sdk 0.46
func (*Subspace) ProtoReflect ¶
func (x *Subspace) ProtoReflect() protoreflect.Message
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Subspaces ¶
func (UnimplementedQueryServer) Subspaces(context.Context, *QuerySubspacesRequest) (*QuerySubspacesResponse, error)
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.