types

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 33 Imported by: 12

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName   = "node"
	QuerierRoute = ModuleName
)
View Source
const (
	DefaultInactiveDuration = 5 * time.Minute
)

Variables

View Source
var (
	ErrorInvalidField     = errors.Register(ModuleName, 101, "invalid field")
	ErrorInvalidFrom      = errors.Register(ModuleName, 102, "invalid from")
	ErrorInvalidProvider  = errors.Register(ModuleName, 103, "invalid provider")
	ErrorInvalidPrice     = errors.Register(ModuleName, 104, "invalid price")
	ErrorInvalidRemoteURL = errors.Register(ModuleName, 105, "invalid remote_url")
	ErrorInvalidStatus    = errors.Register(ModuleName, 106, "invalid status")
)
View Source
var (
	ErrorProviderDoesNotExist = errors.Register(ModuleName, 201, "provider does not exist")
	ErrorDuplicateNode        = errors.Register(ModuleName, 202, "duplicate node")
	ErrorNodeDoesNotExist     = errors.Register(ModuleName, 203, "node does not exist")
	ErrorInvalidPlanCount     = errors.Register(ModuleName, 204, "invalid plan count")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = 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 (
	ParamsSubspace = ModuleName
	RouterKey      = ModuleName
	StoreKey       = ModuleName
)
View Source
var (
	TypeMsgRegisterRequest  = ModuleName + ":register"
	TypeMsgUpdateRequest    = ModuleName + ":update"
	TypeMsgSetStatusRequest = ModuleName + ":set_status"
)
View Source
var (
	NodeKeyPrefix                    = []byte{0x10}
	ActiveNodeKeyPrefix              = []byte{0x20}
	InactiveNodeKeyPrefix            = []byte{0x21}
	ActiveNodeForProviderKeyPrefix   = []byte{0x30}
	InactiveNodeForProviderKeyPrefix = []byte{0x31}
	InactiveNodeAtKeyPrefix          = []byte{0x41}
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNode        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNode          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNode = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyDeposit          = []byte("Deposit")
	KeyInactiveDuration = []byte("InactiveDuration")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuerier        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuerier          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultDeposit = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(1000))
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func ActiveNodeForProviderKey added in v0.4.0

func ActiveNodeForProviderKey(provider hubtypes.ProvAddress, address hubtypes.NodeAddress) []byte

func ActiveNodeKey added in v0.4.0

func ActiveNodeKey(address hubtypes.NodeAddress) []byte

func AddressFromStatusNodeAtKey added in v0.4.0

func AddressFromStatusNodeAtKey(key []byte) hubtypes.NodeAddress

func AddressFromStatusNodeForProviderKey added in v0.4.0

func AddressFromStatusNodeForProviderKey(key []byte) hubtypes.NodeAddress

func AddressFromStatusNodeKey added in v0.4.0

func AddressFromStatusNodeKey(key []byte) hubtypes.NodeAddress

func GetActiveNodeForProviderKeyPrefix added in v0.4.0

func GetActiveNodeForProviderKeyPrefix(address hubtypes.ProvAddress) []byte

func GetInactiveNodeAtKeyPrefix added in v0.4.0

func GetInactiveNodeAtKeyPrefix(at time.Time) []byte

func GetInactiveNodeForProviderKeyPrefix added in v0.4.0

func GetInactiveNodeForProviderKeyPrefix(address hubtypes.ProvAddress) []byte

func InactiveNodeAtKey added in v0.4.0

func InactiveNodeAtKey(at time.Time, address hubtypes.NodeAddress) []byte

func InactiveNodeForProviderKey added in v0.4.0

func InactiveNodeForProviderKey(provider hubtypes.ProvAddress, address hubtypes.NodeAddress) []byte

func InactiveNodeKey added in v0.4.0

func InactiveNodeKey(address hubtypes.NodeAddress) []byte

func NodeKey

func NodeKey(address hubtypes.NodeAddress) []byte

func ParamsKeyTable

func ParamsKeyTable() params.KeyTable

func RegisterInterfaces added in v0.6.0

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v0.6.0

func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)

func RegisterMsgServiceServer added in v0.6.0

func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)

func RegisterQueryServiceHandler added in v0.6.0

func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryServiceHandlerClient added in v0.6.0

func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error

RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.

func RegisterQueryServiceHandlerFromEndpoint added in v0.6.0

func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryServiceHandlerServer added in v0.6.0

func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error

RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer 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 RegisterQueryServiceHandlerFromEndpoint instead.

func RegisterQueryServiceServer added in v0.6.0

func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)

func ValidateGenesis added in v0.6.0

func ValidateGenesis(state *GenesisState) error

Types

type EventRegister added in v0.8.0

type EventRegister struct {
	Address  string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty" yaml:"provider"`
}

func (*EventRegister) Descriptor added in v0.8.0

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

func (*EventRegister) Marshal added in v0.8.0

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

func (*EventRegister) MarshalTo added in v0.8.0

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

func (*EventRegister) MarshalToSizedBuffer added in v0.8.0

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

func (*EventRegister) ProtoMessage added in v0.8.0

func (*EventRegister) ProtoMessage()

func (*EventRegister) Reset added in v0.8.0

func (m *EventRegister) Reset()

func (*EventRegister) Size added in v0.8.0

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

func (*EventRegister) String added in v0.8.0

func (m *EventRegister) String() string

func (*EventRegister) Unmarshal added in v0.8.0

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

func (*EventRegister) XXX_DiscardUnknown added in v0.8.0

func (m *EventRegister) XXX_DiscardUnknown()

func (*EventRegister) XXX_Marshal added in v0.8.0

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

func (*EventRegister) XXX_Merge added in v0.8.0

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

func (*EventRegister) XXX_Size added in v0.8.0

func (m *EventRegister) XXX_Size() int

func (*EventRegister) XXX_Unmarshal added in v0.8.0

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

type EventSetStatus added in v0.8.0

type EventSetStatus struct {
	Address string       `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	Status  types.Status `protobuf:"varint,2,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty" yaml:"status"`
}

func (*EventSetStatus) Descriptor added in v0.8.0

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

func (*EventSetStatus) Marshal added in v0.8.0

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

func (*EventSetStatus) MarshalTo added in v0.8.0

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

func (*EventSetStatus) MarshalToSizedBuffer added in v0.8.0

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

func (*EventSetStatus) ProtoMessage added in v0.8.0

func (*EventSetStatus) ProtoMessage()

func (*EventSetStatus) Reset added in v0.8.0

func (m *EventSetStatus) Reset()

func (*EventSetStatus) Size added in v0.8.0

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

func (*EventSetStatus) String added in v0.8.0

func (m *EventSetStatus) String() string

func (*EventSetStatus) Unmarshal added in v0.8.0

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

func (*EventSetStatus) XXX_DiscardUnknown added in v0.8.0

func (m *EventSetStatus) XXX_DiscardUnknown()

func (*EventSetStatus) XXX_Marshal added in v0.8.0

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

func (*EventSetStatus) XXX_Merge added in v0.8.0

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

func (*EventSetStatus) XXX_Size added in v0.8.0

func (m *EventSetStatus) XXX_Size() int

func (*EventSetStatus) XXX_Unmarshal added in v0.8.0

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

type EventUpdate added in v0.8.0

type EventUpdate struct {
	Address  string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty" yaml:"provider"`
}

func (*EventUpdate) Descriptor added in v0.8.0

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

func (*EventUpdate) Marshal added in v0.8.0

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

func (*EventUpdate) MarshalTo added in v0.8.0

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

func (*EventUpdate) MarshalToSizedBuffer added in v0.8.0

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

func (*EventUpdate) ProtoMessage added in v0.8.0

func (*EventUpdate) ProtoMessage()

func (*EventUpdate) Reset added in v0.8.0

func (m *EventUpdate) Reset()

func (*EventUpdate) Size added in v0.8.0

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

func (*EventUpdate) String added in v0.8.0

func (m *EventUpdate) String() string

func (*EventUpdate) Unmarshal added in v0.8.0

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

func (*EventUpdate) XXX_DiscardUnknown added in v0.8.0

func (m *EventUpdate) XXX_DiscardUnknown()

func (*EventUpdate) XXX_Marshal added in v0.8.0

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

func (*EventUpdate) XXX_Merge added in v0.8.0

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

func (*EventUpdate) XXX_Size added in v0.8.0

func (m *EventUpdate) XXX_Size() int

func (*EventUpdate) XXX_Unmarshal added in v0.8.0

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

type GenesisState

type GenesisState struct {
	Nodes  []Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"_,omitempty"`
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState(nodes Nodes, params Params) *GenesisState

func (*GenesisState) Descriptor added in v0.6.0

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

func (*GenesisState) Marshal added in v0.6.0

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

func (*GenesisState) MarshalTo added in v0.6.0

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

func (*GenesisState) MarshalToSizedBuffer added in v0.6.0

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

func (*GenesisState) ProtoMessage added in v0.6.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.6.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.6.0

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

func (*GenesisState) String added in v0.6.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.6.0

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

func (*GenesisState) XXX_DiscardUnknown added in v0.6.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.6.0

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

func (*GenesisState) XXX_Merge added in v0.6.0

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

func (*GenesisState) XXX_Size added in v0.6.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.6.0

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

type MsgRegisterRequest added in v0.6.0

type MsgRegisterRequest struct {
	From      string                                   `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Provider  string                                   `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	Price     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=price,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"price"`
	RemoteURL string                                   `protobuf:"bytes,4,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"`
}

MsgRegisterRequest defines the SDK message for registering a node

func NewMsgRegisterRequest added in v0.6.0

func NewMsgRegisterRequest(from sdk.AccAddress, provider hubtypes.ProvAddress, price sdk.Coins, remoteURL string) *MsgRegisterRequest

func (*MsgRegisterRequest) Descriptor added in v0.6.0

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

func (*MsgRegisterRequest) GetSignBytes added in v0.6.0

func (m *MsgRegisterRequest) GetSignBytes() []byte

func (*MsgRegisterRequest) GetSigners added in v0.6.0

func (m *MsgRegisterRequest) GetSigners() []sdk.AccAddress

func (*MsgRegisterRequest) Marshal added in v0.6.0

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

func (*MsgRegisterRequest) MarshalTo added in v0.6.0

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

func (*MsgRegisterRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*MsgRegisterRequest) ProtoMessage added in v0.6.0

func (*MsgRegisterRequest) ProtoMessage()

func (*MsgRegisterRequest) Reset added in v0.6.0

func (m *MsgRegisterRequest) Reset()

func (*MsgRegisterRequest) Route added in v0.6.0

func (m *MsgRegisterRequest) Route() string

func (*MsgRegisterRequest) Size added in v0.6.0

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

func (*MsgRegisterRequest) String added in v0.6.0

func (m *MsgRegisterRequest) String() string

func (*MsgRegisterRequest) Type added in v0.6.0

func (m *MsgRegisterRequest) Type() string

func (*MsgRegisterRequest) Unmarshal added in v0.6.0

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

func (*MsgRegisterRequest) ValidateBasic added in v0.6.0

func (m *MsgRegisterRequest) ValidateBasic() error

func (*MsgRegisterRequest) XXX_DiscardUnknown added in v0.6.0

func (m *MsgRegisterRequest) XXX_DiscardUnknown()

func (*MsgRegisterRequest) XXX_Marshal added in v0.6.0

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

func (*MsgRegisterRequest) XXX_Merge added in v0.6.0

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

func (*MsgRegisterRequest) XXX_Size added in v0.6.0

func (m *MsgRegisterRequest) XXX_Size() int

func (*MsgRegisterRequest) XXX_Unmarshal added in v0.6.0

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

type MsgRegisterResponse added in v0.6.0

type MsgRegisterResponse struct {
}

MsgRegisterResponse defines the response of message MsgRegisterRequest

func (*MsgRegisterResponse) Descriptor added in v0.6.0

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

func (*MsgRegisterResponse) Marshal added in v0.6.0

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

func (*MsgRegisterResponse) MarshalTo added in v0.6.0

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

func (*MsgRegisterResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*MsgRegisterResponse) ProtoMessage added in v0.6.0

func (*MsgRegisterResponse) ProtoMessage()

func (*MsgRegisterResponse) Reset added in v0.6.0

func (m *MsgRegisterResponse) Reset()

func (*MsgRegisterResponse) Size added in v0.6.0

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

func (*MsgRegisterResponse) String added in v0.6.0

func (m *MsgRegisterResponse) String() string

func (*MsgRegisterResponse) Unmarshal added in v0.6.0

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

func (*MsgRegisterResponse) XXX_DiscardUnknown added in v0.6.0

func (m *MsgRegisterResponse) XXX_DiscardUnknown()

func (*MsgRegisterResponse) XXX_Marshal added in v0.6.0

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

func (*MsgRegisterResponse) XXX_Merge added in v0.6.0

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

func (*MsgRegisterResponse) XXX_Size added in v0.6.0

func (m *MsgRegisterResponse) XXX_Size() int

func (*MsgRegisterResponse) XXX_Unmarshal added in v0.6.0

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

type MsgServiceClient added in v0.6.0

type MsgServiceClient interface {
	MsgRegister(ctx context.Context, in *MsgRegisterRequest, opts ...grpc.CallOption) (*MsgRegisterResponse, error)
	MsgUpdate(ctx context.Context, in *MsgUpdateRequest, opts ...grpc.CallOption) (*MsgUpdateResponse, error)
	MsgSetStatus(ctx context.Context, in *MsgSetStatusRequest, opts ...grpc.CallOption) (*MsgSetStatusResponse, error)
}

MsgServiceClient is the client API for MsgService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgServiceClient added in v0.6.0

func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient

type MsgServiceServer added in v0.6.0

MsgServiceServer is the server API for MsgService service.

type MsgSetStatusRequest added in v0.6.0

type MsgSetStatusRequest struct {
	From   string        `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Status types1.Status `protobuf:"varint,2,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"`
}

MsgSetStatusRequest defines the SDK message for modifying the status of a node

func NewMsgSetStatusRequest added in v0.6.0

func NewMsgSetStatusRequest(from hubtypes.NodeAddress, status hubtypes.Status) *MsgSetStatusRequest

func (*MsgSetStatusRequest) Descriptor added in v0.6.0

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

func (*MsgSetStatusRequest) GetSignBytes added in v0.6.0

func (m *MsgSetStatusRequest) GetSignBytes() []byte

func (*MsgSetStatusRequest) GetSigners added in v0.6.0

func (m *MsgSetStatusRequest) GetSigners() []sdk.AccAddress

func (*MsgSetStatusRequest) Marshal added in v0.6.0

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

func (*MsgSetStatusRequest) MarshalTo added in v0.6.0

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

func (*MsgSetStatusRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*MsgSetStatusRequest) ProtoMessage added in v0.6.0

func (*MsgSetStatusRequest) ProtoMessage()

func (*MsgSetStatusRequest) Reset added in v0.6.0

func (m *MsgSetStatusRequest) Reset()

func (*MsgSetStatusRequest) Route added in v0.6.0

func (m *MsgSetStatusRequest) Route() string

func (*MsgSetStatusRequest) Size added in v0.6.0

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

func (*MsgSetStatusRequest) String added in v0.6.0

func (m *MsgSetStatusRequest) String() string

func (*MsgSetStatusRequest) Type added in v0.6.0

func (m *MsgSetStatusRequest) Type() string

func (*MsgSetStatusRequest) Unmarshal added in v0.6.0

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

func (*MsgSetStatusRequest) ValidateBasic added in v0.6.0

func (m *MsgSetStatusRequest) ValidateBasic() error

func (*MsgSetStatusRequest) XXX_DiscardUnknown added in v0.6.0

func (m *MsgSetStatusRequest) XXX_DiscardUnknown()

func (*MsgSetStatusRequest) XXX_Marshal added in v0.6.0

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

func (*MsgSetStatusRequest) XXX_Merge added in v0.6.0

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

func (*MsgSetStatusRequest) XXX_Size added in v0.6.0

func (m *MsgSetStatusRequest) XXX_Size() int

func (*MsgSetStatusRequest) XXX_Unmarshal added in v0.6.0

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

type MsgSetStatusResponse added in v0.6.0

type MsgSetStatusResponse struct {
}

MsgSetStatusResponse defines the response of message MsgSetStatusRequest

func (*MsgSetStatusResponse) Descriptor added in v0.6.0

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

func (*MsgSetStatusResponse) Marshal added in v0.6.0

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

func (*MsgSetStatusResponse) MarshalTo added in v0.6.0

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

func (*MsgSetStatusResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*MsgSetStatusResponse) ProtoMessage added in v0.6.0

func (*MsgSetStatusResponse) ProtoMessage()

func (*MsgSetStatusResponse) Reset added in v0.6.0

func (m *MsgSetStatusResponse) Reset()

func (*MsgSetStatusResponse) Size added in v0.6.0

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

func (*MsgSetStatusResponse) String added in v0.6.0

func (m *MsgSetStatusResponse) String() string

func (*MsgSetStatusResponse) Unmarshal added in v0.6.0

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

func (*MsgSetStatusResponse) XXX_DiscardUnknown added in v0.6.0

func (m *MsgSetStatusResponse) XXX_DiscardUnknown()

func (*MsgSetStatusResponse) XXX_Marshal added in v0.6.0

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

func (*MsgSetStatusResponse) XXX_Merge added in v0.6.0

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

func (*MsgSetStatusResponse) XXX_Size added in v0.6.0

func (m *MsgSetStatusResponse) XXX_Size() int

func (*MsgSetStatusResponse) XXX_Unmarshal added in v0.6.0

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

type MsgUpdateRequest added in v0.6.0

type MsgUpdateRequest struct {
	From      string                                   `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Provider  string                                   `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	Price     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=price,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"price"`
	RemoteURL string                                   `protobuf:"bytes,4,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"`
}

MsgUpdateRequest defines the SDK message for updating a node

func NewMsgUpdateRequest added in v0.6.0

func NewMsgUpdateRequest(from hubtypes.NodeAddress, provider hubtypes.ProvAddress, price sdk.Coins, remoteURL string) *MsgUpdateRequest

func (*MsgUpdateRequest) Descriptor added in v0.6.0

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

func (*MsgUpdateRequest) GetSignBytes added in v0.6.0

func (m *MsgUpdateRequest) GetSignBytes() []byte

func (*MsgUpdateRequest) GetSigners added in v0.6.0

func (m *MsgUpdateRequest) GetSigners() []sdk.AccAddress

func (*MsgUpdateRequest) Marshal added in v0.6.0

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

func (*MsgUpdateRequest) MarshalTo added in v0.6.0

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

func (*MsgUpdateRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*MsgUpdateRequest) ProtoMessage added in v0.6.0

func (*MsgUpdateRequest) ProtoMessage()

func (*MsgUpdateRequest) Reset added in v0.6.0

func (m *MsgUpdateRequest) Reset()

func (*MsgUpdateRequest) Route added in v0.6.0

func (m *MsgUpdateRequest) Route() string

func (*MsgUpdateRequest) Size added in v0.6.0

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

func (*MsgUpdateRequest) String added in v0.6.0

func (m *MsgUpdateRequest) String() string

func (*MsgUpdateRequest) Type added in v0.6.0

func (m *MsgUpdateRequest) Type() string

func (*MsgUpdateRequest) Unmarshal added in v0.6.0

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

func (*MsgUpdateRequest) ValidateBasic added in v0.6.0

func (m *MsgUpdateRequest) ValidateBasic() error

func (*MsgUpdateRequest) XXX_DiscardUnknown added in v0.6.0

func (m *MsgUpdateRequest) XXX_DiscardUnknown()

func (*MsgUpdateRequest) XXX_Marshal added in v0.6.0

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

func (*MsgUpdateRequest) XXX_Merge added in v0.6.0

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

func (*MsgUpdateRequest) XXX_Size added in v0.6.0

func (m *MsgUpdateRequest) XXX_Size() int

func (*MsgUpdateRequest) XXX_Unmarshal added in v0.6.0

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

type MsgUpdateResponse added in v0.6.0

type MsgUpdateResponse struct {
}

MsgUpdateResponse defines the response of message MsgUpdateRequest

func (*MsgUpdateResponse) Descriptor added in v0.6.0

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

func (*MsgUpdateResponse) Marshal added in v0.6.0

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

func (*MsgUpdateResponse) MarshalTo added in v0.6.0

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

func (*MsgUpdateResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*MsgUpdateResponse) ProtoMessage added in v0.6.0

func (*MsgUpdateResponse) ProtoMessage()

func (*MsgUpdateResponse) Reset added in v0.6.0

func (m *MsgUpdateResponse) Reset()

func (*MsgUpdateResponse) Size added in v0.6.0

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

func (*MsgUpdateResponse) String added in v0.6.0

func (m *MsgUpdateResponse) String() string

func (*MsgUpdateResponse) Unmarshal added in v0.6.0

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

func (*MsgUpdateResponse) XXX_DiscardUnknown added in v0.6.0

func (m *MsgUpdateResponse) XXX_DiscardUnknown()

func (*MsgUpdateResponse) XXX_Marshal added in v0.6.0

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

func (*MsgUpdateResponse) XXX_Merge added in v0.6.0

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

func (*MsgUpdateResponse) XXX_Size added in v0.6.0

func (m *MsgUpdateResponse) XXX_Size() int

func (*MsgUpdateResponse) XXX_Unmarshal added in v0.6.0

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

type Node

type Node struct {
	Address   string                                   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Provider  string                                   `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	Price     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=price,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"price"`
	RemoteURL string                                   `protobuf:"bytes,4,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"`
	Status    types1.Status                            `protobuf:"varint,5,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"`
	StatusAt  time.Time                                `protobuf:"bytes,6,opt,name=status_at,json=statusAt,proto3,stdtime" json:"status_at"`
}

func (*Node) BytesForCoin added in v0.3.2

func (m *Node) BytesForCoin(coin sdk.Coin) (sdk.Int, error)

func (*Node) Descriptor added in v0.6.0

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

func (*Node) GetAddress added in v0.6.0

func (m *Node) GetAddress() hubtypes.NodeAddress

func (*Node) GetProvider added in v0.6.0

func (m *Node) GetProvider() hubtypes.ProvAddress

func (*Node) Marshal added in v0.6.0

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

func (*Node) MarshalTo added in v0.6.0

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

func (*Node) MarshalToSizedBuffer added in v0.6.0

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

func (*Node) PriceForDenom

func (m *Node) PriceForDenom(s string) (sdk.Coin, bool)

func (*Node) ProtoMessage added in v0.6.0

func (*Node) ProtoMessage()

func (*Node) Reset added in v0.6.0

func (m *Node) Reset()

func (*Node) Size added in v0.6.0

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

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal added in v0.6.0

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

func (*Node) Validate

func (m *Node) Validate() error

func (*Node) XXX_DiscardUnknown added in v0.6.0

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal added in v0.6.0

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

func (*Node) XXX_Merge added in v0.6.0

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

func (*Node) XXX_Size added in v0.6.0

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal added in v0.6.0

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

type Nodes

type Nodes []Node

type Params

type Params struct {
	Deposit          types.Coin    `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit"`
	InactiveDuration time.Duration `protobuf:"bytes,2,opt,name=inactive_duration,json=inactiveDuration,proto3,stdduration" json:"inactive_duration"`
}

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(deposit sdk.Coin, inactiveDuration time.Duration) Params

func (*Params) Descriptor added in v0.6.0

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

func (*Params) Marshal added in v0.6.0

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

func (*Params) MarshalTo added in v0.6.0

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

func (*Params) MarshalToSizedBuffer added in v0.6.0

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

func (*Params) ParamSetPairs

func (m *Params) ParamSetPairs() params.ParamSetPairs

func (*Params) ProtoMessage added in v0.6.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.6.0

func (m *Params) Reset()

func (*Params) Size added in v0.6.0

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal added in v0.6.0

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

func (*Params) Validate

func (m *Params) Validate() error

func (*Params) XXX_DiscardUnknown added in v0.6.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.6.0

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

func (*Params) XXX_Merge added in v0.6.0

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

func (*Params) XXX_Size added in v0.6.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.6.0

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

type QueryNodeRequest added in v0.6.0

type QueryNodeRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func NewQueryNodeRequest added in v0.6.0

func NewQueryNodeRequest(address hubtypes.NodeAddress) *QueryNodeRequest

func (*QueryNodeRequest) Descriptor added in v0.6.0

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

func (*QueryNodeRequest) Marshal added in v0.6.0

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

func (*QueryNodeRequest) MarshalTo added in v0.6.0

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

func (*QueryNodeRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryNodeRequest) ProtoMessage added in v0.6.0

func (*QueryNodeRequest) ProtoMessage()

func (*QueryNodeRequest) Reset added in v0.6.0

func (m *QueryNodeRequest) Reset()

func (*QueryNodeRequest) Size added in v0.6.0

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

func (*QueryNodeRequest) String added in v0.6.0

func (m *QueryNodeRequest) String() string

func (*QueryNodeRequest) Unmarshal added in v0.6.0

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

func (*QueryNodeRequest) XXX_DiscardUnknown added in v0.6.0

func (m *QueryNodeRequest) XXX_DiscardUnknown()

func (*QueryNodeRequest) XXX_Marshal added in v0.6.0

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

func (*QueryNodeRequest) XXX_Merge added in v0.6.0

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

func (*QueryNodeRequest) XXX_Size added in v0.6.0

func (m *QueryNodeRequest) XXX_Size() int

func (*QueryNodeRequest) XXX_Unmarshal added in v0.6.0

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

type QueryNodeResponse added in v0.6.0

type QueryNodeResponse struct {
	Node Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node"`
}

func (*QueryNodeResponse) Descriptor added in v0.6.0

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

func (*QueryNodeResponse) Marshal added in v0.6.0

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

func (*QueryNodeResponse) MarshalTo added in v0.6.0

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

func (*QueryNodeResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryNodeResponse) ProtoMessage added in v0.6.0

func (*QueryNodeResponse) ProtoMessage()

func (*QueryNodeResponse) Reset added in v0.6.0

func (m *QueryNodeResponse) Reset()

func (*QueryNodeResponse) Size added in v0.6.0

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

func (*QueryNodeResponse) String added in v0.6.0

func (m *QueryNodeResponse) String() string

func (*QueryNodeResponse) Unmarshal added in v0.6.0

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

func (*QueryNodeResponse) XXX_DiscardUnknown added in v0.6.0

func (m *QueryNodeResponse) XXX_DiscardUnknown()

func (*QueryNodeResponse) XXX_Marshal added in v0.6.0

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

func (*QueryNodeResponse) XXX_Merge added in v0.6.0

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

func (*QueryNodeResponse) XXX_Size added in v0.6.0

func (m *QueryNodeResponse) XXX_Size() int

func (*QueryNodeResponse) XXX_Unmarshal added in v0.6.0

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

type QueryNodesForProviderRequest added in v0.6.0

type QueryNodesForProviderRequest struct {
	Address    string             `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Status     types.Status       `protobuf:"varint,2,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func NewQueryNodesForProviderRequest added in v0.6.0

func NewQueryNodesForProviderRequest(address hubtypes.ProvAddress, status hubtypes.Status, pagination *query.PageRequest) *QueryNodesForProviderRequest

func (*QueryNodesForProviderRequest) Descriptor added in v0.6.0

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

func (*QueryNodesForProviderRequest) Marshal added in v0.6.0

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

func (*QueryNodesForProviderRequest) MarshalTo added in v0.6.0

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

func (*QueryNodesForProviderRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryNodesForProviderRequest) ProtoMessage added in v0.6.0

func (*QueryNodesForProviderRequest) ProtoMessage()

func (*QueryNodesForProviderRequest) Reset added in v0.6.0

func (m *QueryNodesForProviderRequest) Reset()

func (*QueryNodesForProviderRequest) Size added in v0.6.0

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

func (*QueryNodesForProviderRequest) String added in v0.6.0

func (*QueryNodesForProviderRequest) Unmarshal added in v0.6.0

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

func (*QueryNodesForProviderRequest) XXX_DiscardUnknown added in v0.6.0

func (m *QueryNodesForProviderRequest) XXX_DiscardUnknown()

func (*QueryNodesForProviderRequest) XXX_Marshal added in v0.6.0

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

func (*QueryNodesForProviderRequest) XXX_Merge added in v0.6.0

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

func (*QueryNodesForProviderRequest) XXX_Size added in v0.6.0

func (m *QueryNodesForProviderRequest) XXX_Size() int

func (*QueryNodesForProviderRequest) XXX_Unmarshal added in v0.6.0

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

type QueryNodesForProviderResponse added in v0.6.0

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

func (*QueryNodesForProviderResponse) Descriptor added in v0.6.0

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

func (*QueryNodesForProviderResponse) Marshal added in v0.6.0

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

func (*QueryNodesForProviderResponse) MarshalTo added in v0.6.0

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

func (*QueryNodesForProviderResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryNodesForProviderResponse) ProtoMessage added in v0.6.0

func (*QueryNodesForProviderResponse) ProtoMessage()

func (*QueryNodesForProviderResponse) Reset added in v0.6.0

func (m *QueryNodesForProviderResponse) Reset()

func (*QueryNodesForProviderResponse) Size added in v0.6.0

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

func (*QueryNodesForProviderResponse) String added in v0.6.0

func (*QueryNodesForProviderResponse) Unmarshal added in v0.6.0

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

func (*QueryNodesForProviderResponse) XXX_DiscardUnknown added in v0.6.0

func (m *QueryNodesForProviderResponse) XXX_DiscardUnknown()

func (*QueryNodesForProviderResponse) XXX_Marshal added in v0.6.0

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

func (*QueryNodesForProviderResponse) XXX_Merge added in v0.6.0

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

func (*QueryNodesForProviderResponse) XXX_Size added in v0.6.0

func (m *QueryNodesForProviderResponse) XXX_Size() int

func (*QueryNodesForProviderResponse) XXX_Unmarshal added in v0.6.0

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

type QueryNodesRequest added in v0.6.0

type QueryNodesRequest struct {
	Status     types.Status       `protobuf:"varint,1,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func NewQueryNodesRequest added in v0.6.0

func NewQueryNodesRequest(status hubtypes.Status, pagination *query.PageRequest) *QueryNodesRequest

func (*QueryNodesRequest) Descriptor added in v0.6.0

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

func (*QueryNodesRequest) Marshal added in v0.6.0

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

func (*QueryNodesRequest) MarshalTo added in v0.6.0

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

func (*QueryNodesRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryNodesRequest) ProtoMessage added in v0.6.0

func (*QueryNodesRequest) ProtoMessage()

func (*QueryNodesRequest) Reset added in v0.6.0

func (m *QueryNodesRequest) Reset()

func (*QueryNodesRequest) Size added in v0.6.0

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

func (*QueryNodesRequest) String added in v0.6.0

func (m *QueryNodesRequest) String() string

func (*QueryNodesRequest) Unmarshal added in v0.6.0

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

func (*QueryNodesRequest) XXX_DiscardUnknown added in v0.6.0

func (m *QueryNodesRequest) XXX_DiscardUnknown()

func (*QueryNodesRequest) XXX_Marshal added in v0.6.0

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

func (*QueryNodesRequest) XXX_Merge added in v0.6.0

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

func (*QueryNodesRequest) XXX_Size added in v0.6.0

func (m *QueryNodesRequest) XXX_Size() int

func (*QueryNodesRequest) XXX_Unmarshal added in v0.6.0

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

type QueryNodesResponse added in v0.6.0

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

func (*QueryNodesResponse) Descriptor added in v0.6.0

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

func (*QueryNodesResponse) Marshal added in v0.6.0

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

func (*QueryNodesResponse) MarshalTo added in v0.6.0

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

func (*QueryNodesResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryNodesResponse) ProtoMessage added in v0.6.0

func (*QueryNodesResponse) ProtoMessage()

func (*QueryNodesResponse) Reset added in v0.6.0

func (m *QueryNodesResponse) Reset()

func (*QueryNodesResponse) Size added in v0.6.0

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

func (*QueryNodesResponse) String added in v0.6.0

func (m *QueryNodesResponse) String() string

func (*QueryNodesResponse) Unmarshal added in v0.6.0

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

func (*QueryNodesResponse) XXX_DiscardUnknown added in v0.6.0

func (m *QueryNodesResponse) XXX_DiscardUnknown()

func (*QueryNodesResponse) XXX_Marshal added in v0.6.0

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

func (*QueryNodesResponse) XXX_Merge added in v0.6.0

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

func (*QueryNodesResponse) XXX_Size added in v0.6.0

func (m *QueryNodesResponse) XXX_Size() int

func (*QueryNodesResponse) XXX_Unmarshal added in v0.6.0

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

type QueryParamsRequest added in v0.6.1

type QueryParamsRequest struct {
}

func NewQueryParamsRequest added in v0.6.1

func NewQueryParamsRequest() *QueryParamsRequest

func (*QueryParamsRequest) Descriptor added in v0.6.1

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

func (*QueryParamsRequest) Marshal added in v0.6.1

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

func (*QueryParamsRequest) MarshalTo added in v0.6.1

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.6.1

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

func (*QueryParamsRequest) ProtoMessage added in v0.6.1

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.6.1

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.6.1

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

func (*QueryParamsRequest) String added in v0.6.1

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.6.1

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.6.1

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.6.1

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

func (*QueryParamsRequest) XXX_Merge added in v0.6.1

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

func (*QueryParamsRequest) XXX_Size added in v0.6.1

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.6.1

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

type QueryParamsResponse added in v0.6.1

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

func (*QueryParamsResponse) Descriptor added in v0.6.1

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

func (*QueryParamsResponse) Marshal added in v0.6.1

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

func (*QueryParamsResponse) MarshalTo added in v0.6.1

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.6.1

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

func (*QueryParamsResponse) ProtoMessage added in v0.6.1

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.6.1

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.6.1

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

func (*QueryParamsResponse) String added in v0.6.1

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.6.1

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.6.1

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.6.1

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

func (*QueryParamsResponse) XXX_Merge added in v0.6.1

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

func (*QueryParamsResponse) XXX_Size added in v0.6.1

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.6.1

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

type QueryServiceClient added in v0.6.0

type QueryServiceClient interface {
	QueryNodes(ctx context.Context, in *QueryNodesRequest, opts ...grpc.CallOption) (*QueryNodesResponse, error)
	QueryNodesForProvider(ctx context.Context, in *QueryNodesForProviderRequest, opts ...grpc.CallOption) (*QueryNodesForProviderResponse, error)
	QueryNode(ctx context.Context, in *QueryNodeRequest, opts ...grpc.CallOption) (*QueryNodeResponse, error)
	QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryServiceClient is the client API for QueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryServiceClient added in v0.6.0

func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient

type QueryServiceServer added in v0.6.0

QueryServiceServer is the server API for QueryService service.

type UnimplementedMsgServiceServer added in v0.6.0

type UnimplementedMsgServiceServer struct {
}

UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServiceServer) MsgRegister added in v0.6.0

func (*UnimplementedMsgServiceServer) MsgSetStatus added in v0.6.0

func (*UnimplementedMsgServiceServer) MsgUpdate added in v0.6.0

type UnimplementedQueryServiceServer added in v0.6.0

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) QueryNode added in v0.6.0

func (*UnimplementedQueryServiceServer) QueryNodes added in v0.6.0

func (*UnimplementedQueryServiceServer) QueryNodesForProvider added in v0.6.0

func (*UnimplementedQueryServiceServer) QueryParams added in v0.6.1

Directories

Path Synopsis
legacy

Jump to

Keyboard shortcuts

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