types

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 30 Imported by: 7

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName = "plan"
)

Variables

View Source
var (
	ErrorInvalidMessage = errors.Register(ModuleName, 101, "invalid message")

	ErrorNodeNotFound     = errors.Register(ModuleName, 201, "node not found")
	ErrorPlanNotFound     = errors.Register(ModuleName, 202, "plan not found")
	ErrorProviderNotFound = errors.Register(ModuleName, 203, "provider not found")
	ErrorUnauthorized     = errors.Register(ModuleName, 204, "unauthorised")
)
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 (
	CountKey = []byte{0x00}

	PlanKeyPrefix            = []byte{0x10}
	ActivePlanKeyPrefix      = append(PlanKeyPrefix, 0x01)
	InactivePlanKeyPrefix    = append(PlanKeyPrefix, 0x02)
	PlanForProviderKeyPrefix = []byte{0x11}
)
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 (
	ErrInvalidLengthPlan        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlan          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlan = 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")
)

Functions

func ActivePlanKey added in v0.4.0

func ActivePlanKey(id uint64) []byte

func GetPlanForProviderKeyPrefix

func GetPlanForProviderKeyPrefix(addr hubtypes.ProvAddress) []byte

func IDFromPlanForProviderKey added in v0.11.0

func IDFromPlanForProviderKey(key []byte) uint64

func InactivePlanKey added in v0.4.0

func InactivePlanKey(id uint64) []byte

func NewErrorNodeNotFound added in v0.11.0

func NewErrorNodeNotFound(addr interface{}) error

func NewErrorPlanNotFound added in v0.11.0

func NewErrorPlanNotFound(id uint64) error

func NewErrorProviderNotFound added in v0.11.0

func NewErrorProviderNotFound(addr interface{}) error

func NewErrorUnauthorized added in v0.11.0

func NewErrorUnauthorized(addr interface{}) error

func PlanForProviderKey

func PlanForProviderKey(addr hubtypes.ProvAddress, id uint64) []byte

func RegisterInterfaces added in v0.6.0

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

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 EventCreate added in v0.11.0

type EventCreate struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	ID      uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
}

func (*EventCreate) Descriptor added in v0.11.0

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

func (*EventCreate) Marshal added in v0.11.0

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

func (*EventCreate) MarshalTo added in v0.11.0

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

func (*EventCreate) MarshalToSizedBuffer added in v0.11.0

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

func (*EventCreate) ProtoMessage added in v0.11.0

func (*EventCreate) ProtoMessage()

func (*EventCreate) Reset added in v0.11.0

func (m *EventCreate) Reset()

func (*EventCreate) Size added in v0.11.0

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

func (*EventCreate) String added in v0.11.0

func (m *EventCreate) String() string

func (*EventCreate) Unmarshal added in v0.11.0

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

func (*EventCreate) XXX_DiscardUnknown added in v0.11.0

func (m *EventCreate) XXX_DiscardUnknown()

func (*EventCreate) XXX_Marshal added in v0.11.0

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

func (*EventCreate) XXX_Merge added in v0.11.0

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

func (*EventCreate) XXX_Size added in v0.11.0

func (m *EventCreate) XXX_Size() int

func (*EventCreate) XXX_Unmarshal added in v0.11.0

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

type EventCreateSubscription added in v0.11.0

type EventCreateSubscription struct {
	Address         string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	ProviderAddress string `` /* 130-byte string literal not displayed */
	ID              uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	PlanID          uint64 `protobuf:"varint,4,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty" yaml:"plan_id"`
}

func (*EventCreateSubscription) Descriptor added in v0.11.0

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

func (*EventCreateSubscription) Marshal added in v0.11.0

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

func (*EventCreateSubscription) MarshalTo added in v0.11.0

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

func (*EventCreateSubscription) MarshalToSizedBuffer added in v0.11.0

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

func (*EventCreateSubscription) ProtoMessage added in v0.11.0

func (*EventCreateSubscription) ProtoMessage()

func (*EventCreateSubscription) Reset added in v0.11.0

func (m *EventCreateSubscription) Reset()

func (*EventCreateSubscription) Size added in v0.11.0

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

func (*EventCreateSubscription) String added in v0.11.0

func (m *EventCreateSubscription) String() string

func (*EventCreateSubscription) Unmarshal added in v0.11.0

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

func (*EventCreateSubscription) XXX_DiscardUnknown added in v0.11.0

func (m *EventCreateSubscription) XXX_DiscardUnknown()

func (*EventCreateSubscription) XXX_Marshal added in v0.11.0

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

func (*EventCreateSubscription) XXX_Merge added in v0.11.0

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

func (*EventCreateSubscription) XXX_Size added in v0.11.0

func (m *EventCreateSubscription) XXX_Size() int

func (*EventCreateSubscription) XXX_Unmarshal added in v0.11.0

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

type EventLinkNode added in v0.11.0

type EventLinkNode struct {
	Address     string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty" yaml:"node_address"`
	ID          uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
}

func (*EventLinkNode) Descriptor added in v0.11.0

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

func (*EventLinkNode) Marshal added in v0.11.0

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

func (*EventLinkNode) MarshalTo added in v0.11.0

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

func (*EventLinkNode) MarshalToSizedBuffer added in v0.11.0

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

func (*EventLinkNode) ProtoMessage added in v0.11.0

func (*EventLinkNode) ProtoMessage()

func (*EventLinkNode) Reset added in v0.11.0

func (m *EventLinkNode) Reset()

func (*EventLinkNode) Size added in v0.11.0

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

func (*EventLinkNode) String added in v0.11.0

func (m *EventLinkNode) String() string

func (*EventLinkNode) Unmarshal added in v0.11.0

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

func (*EventLinkNode) XXX_DiscardUnknown added in v0.11.0

func (m *EventLinkNode) XXX_DiscardUnknown()

func (*EventLinkNode) XXX_Marshal added in v0.11.0

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

func (*EventLinkNode) XXX_Merge added in v0.11.0

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

func (*EventLinkNode) XXX_Size added in v0.11.0

func (m *EventLinkNode) XXX_Size() int

func (*EventLinkNode) XXX_Unmarshal added in v0.11.0

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

type EventUnlinkNode added in v0.11.0

type EventUnlinkNode struct {
	Address     string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty" yaml:"node_address"`
	ID          uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
}

func (*EventUnlinkNode) Descriptor added in v0.11.0

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

func (*EventUnlinkNode) Marshal added in v0.11.0

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

func (*EventUnlinkNode) MarshalTo added in v0.11.0

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

func (*EventUnlinkNode) MarshalToSizedBuffer added in v0.11.0

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

func (*EventUnlinkNode) ProtoMessage added in v0.11.0

func (*EventUnlinkNode) ProtoMessage()

func (*EventUnlinkNode) Reset added in v0.11.0

func (m *EventUnlinkNode) Reset()

func (*EventUnlinkNode) Size added in v0.11.0

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

func (*EventUnlinkNode) String added in v0.11.0

func (m *EventUnlinkNode) String() string

func (*EventUnlinkNode) Unmarshal added in v0.11.0

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

func (*EventUnlinkNode) XXX_DiscardUnknown added in v0.11.0

func (m *EventUnlinkNode) XXX_DiscardUnknown()

func (*EventUnlinkNode) XXX_Marshal added in v0.11.0

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

func (*EventUnlinkNode) XXX_Merge added in v0.11.0

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

func (*EventUnlinkNode) XXX_Size added in v0.11.0

func (m *EventUnlinkNode) XXX_Size() int

func (*EventUnlinkNode) XXX_Unmarshal added in v0.11.0

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

type EventUpdateStatus added in v0.11.0

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

func (*EventUpdateStatus) Descriptor added in v0.11.0

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

func (*EventUpdateStatus) Marshal added in v0.11.0

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

func (*EventUpdateStatus) MarshalTo added in v0.11.0

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

func (*EventUpdateStatus) MarshalToSizedBuffer added in v0.11.0

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

func (*EventUpdateStatus) ProtoMessage added in v0.11.0

func (*EventUpdateStatus) ProtoMessage()

func (*EventUpdateStatus) Reset added in v0.11.0

func (m *EventUpdateStatus) Reset()

func (*EventUpdateStatus) Size added in v0.11.0

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

func (*EventUpdateStatus) String added in v0.11.0

func (m *EventUpdateStatus) String() string

func (*EventUpdateStatus) Unmarshal added in v0.11.0

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

func (*EventUpdateStatus) XXX_DiscardUnknown added in v0.11.0

func (m *EventUpdateStatus) XXX_DiscardUnknown()

func (*EventUpdateStatus) XXX_Marshal added in v0.11.0

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

func (*EventUpdateStatus) XXX_Merge added in v0.11.0

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

func (*EventUpdateStatus) XXX_Size added in v0.11.0

func (m *EventUpdateStatus) XXX_Size() int

func (*EventUpdateStatus) XXX_Unmarshal added in v0.11.0

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

type GenesisPlan

type GenesisPlan struct {
	Plan  Plan     `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan"`
	Nodes []string `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
}

func (*GenesisPlan) Descriptor added in v0.6.0

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

func (*GenesisPlan) Marshal added in v0.6.0

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

func (*GenesisPlan) MarshalTo added in v0.6.0

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

func (*GenesisPlan) MarshalToSizedBuffer added in v0.6.0

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

func (*GenesisPlan) ProtoMessage added in v0.6.0

func (*GenesisPlan) ProtoMessage()

func (*GenesisPlan) Reset added in v0.6.0

func (m *GenesisPlan) Reset()

func (*GenesisPlan) Size added in v0.6.0

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

func (*GenesisPlan) String added in v0.6.0

func (m *GenesisPlan) String() string

func (*GenesisPlan) Unmarshal added in v0.6.0

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

func (*GenesisPlan) XXX_DiscardUnknown added in v0.6.0

func (m *GenesisPlan) XXX_DiscardUnknown()

func (*GenesisPlan) XXX_Marshal added in v0.6.0

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

func (*GenesisPlan) XXX_Merge added in v0.6.0

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

func (*GenesisPlan) XXX_Size added in v0.6.0

func (m *GenesisPlan) XXX_Size() int

func (*GenesisPlan) XXX_Unmarshal added in v0.6.0

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

type GenesisPlans

type GenesisPlans []GenesisPlan

type GenesisState

type GenesisState GenesisPlans

func DefaultGenesisState

func DefaultGenesisState() GenesisState

func NewGenesisState

func NewGenesisState(plans GenesisPlans) GenesisState

type MsgCreateRequest added in v0.11.0

type MsgCreateRequest struct {
	From      string                                   `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Duration  time.Duration                            `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration"`
	Gigabytes int64                                    `protobuf:"varint,3,opt,name=gigabytes,proto3" json:"gigabytes,omitempty"`
	Prices    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=prices,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"prices"`
}

MsgCreateRequest defines the SDK message for creating a subscription plan

func NewMsgCreateRequest added in v0.11.0

func NewMsgCreateRequest(from hubtypes.ProvAddress, duration time.Duration, gigabytes int64, prices sdk.Coins) *MsgCreateRequest

NewMsgCreateRequest creates a new MsgCreateRequest instance with the given parameters.

func (*MsgCreateRequest) Descriptor added in v0.11.0

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

func (*MsgCreateRequest) GetSigners added in v0.11.0

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

GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgCreateRequest.

func (*MsgCreateRequest) Marshal added in v0.11.0

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

func (*MsgCreateRequest) MarshalTo added in v0.11.0

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

func (*MsgCreateRequest) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgCreateRequest) ProtoMessage added in v0.11.0

func (*MsgCreateRequest) ProtoMessage()

func (*MsgCreateRequest) Reset added in v0.11.0

func (m *MsgCreateRequest) Reset()

func (*MsgCreateRequest) Size added in v0.11.0

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

func (*MsgCreateRequest) String added in v0.11.0

func (m *MsgCreateRequest) String() string

func (*MsgCreateRequest) Unmarshal added in v0.11.0

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

func (*MsgCreateRequest) ValidateBasic added in v0.11.0

func (m *MsgCreateRequest) ValidateBasic() error

ValidateBasic performs basic validation checks on the MsgCreateRequest fields. It checks if the 'From' field is not empty and represents a valid provider address, if the 'Duration' field is not negative or zero, if the 'Gigabytes' field is not negative or zero, and if the 'Prices' field is valid (not empty, not containing nil coins, and having valid coin denominations).

func (*MsgCreateRequest) XXX_DiscardUnknown added in v0.11.0

func (m *MsgCreateRequest) XXX_DiscardUnknown()

func (*MsgCreateRequest) XXX_Marshal added in v0.11.0

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

func (*MsgCreateRequest) XXX_Merge added in v0.11.0

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

func (*MsgCreateRequest) XXX_Size added in v0.11.0

func (m *MsgCreateRequest) XXX_Size() int

func (*MsgCreateRequest) XXX_Unmarshal added in v0.11.0

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

type MsgCreateResponse added in v0.11.0

type MsgCreateResponse struct {
}

MsgCreateResponse defines the response of message MsgCreateRequest

func (*MsgCreateResponse) Descriptor added in v0.11.0

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

func (*MsgCreateResponse) Marshal added in v0.11.0

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

func (*MsgCreateResponse) MarshalTo added in v0.11.0

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

func (*MsgCreateResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgCreateResponse) ProtoMessage added in v0.11.0

func (*MsgCreateResponse) ProtoMessage()

func (*MsgCreateResponse) Reset added in v0.11.0

func (m *MsgCreateResponse) Reset()

func (*MsgCreateResponse) Size added in v0.11.0

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

func (*MsgCreateResponse) String added in v0.11.0

func (m *MsgCreateResponse) String() string

func (*MsgCreateResponse) Unmarshal added in v0.11.0

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

func (*MsgCreateResponse) XXX_DiscardUnknown added in v0.11.0

func (m *MsgCreateResponse) XXX_DiscardUnknown()

func (*MsgCreateResponse) XXX_Marshal added in v0.11.0

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

func (*MsgCreateResponse) XXX_Merge added in v0.11.0

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

func (*MsgCreateResponse) XXX_Size added in v0.11.0

func (m *MsgCreateResponse) XXX_Size() int

func (*MsgCreateResponse) XXX_Unmarshal added in v0.11.0

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

type MsgLinkNodeRequest added in v0.11.0

type MsgLinkNodeRequest struct {
	From        string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	ID          uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	NodeAddress string `protobuf:"bytes,3,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
}

MsgLinkNodeRequest defines the SDK message for adding a node to a subscription plan

func NewMsgLinkNodeRequest added in v0.11.0

func NewMsgLinkNodeRequest(from hubtypes.ProvAddress, id uint64, addr hubtypes.NodeAddress) *MsgLinkNodeRequest

NewMsgLinkNodeRequest creates a new MsgLinkNodeRequest instance with the given parameters.

func (*MsgLinkNodeRequest) Descriptor added in v0.11.0

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

func (*MsgLinkNodeRequest) GetSigners added in v0.11.0

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

GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgLinkNodeRequest.

func (*MsgLinkNodeRequest) Marshal added in v0.11.0

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

func (*MsgLinkNodeRequest) MarshalTo added in v0.11.0

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

func (*MsgLinkNodeRequest) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgLinkNodeRequest) ProtoMessage added in v0.11.0

func (*MsgLinkNodeRequest) ProtoMessage()

func (*MsgLinkNodeRequest) Reset added in v0.11.0

func (m *MsgLinkNodeRequest) Reset()

func (*MsgLinkNodeRequest) Size added in v0.11.0

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

func (*MsgLinkNodeRequest) String added in v0.11.0

func (m *MsgLinkNodeRequest) String() string

func (*MsgLinkNodeRequest) Unmarshal added in v0.11.0

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

func (*MsgLinkNodeRequest) ValidateBasic added in v0.11.0

func (m *MsgLinkNodeRequest) ValidateBasic() error

ValidateBasic performs basic validation checks on the MsgLinkNodeRequest fields. It checks if the 'From' field is not empty and represents a valid provider address, if the 'ID' field is not zero, and if the 'Address' field is not empty and represents a valid node address.

func (*MsgLinkNodeRequest) XXX_DiscardUnknown added in v0.11.0

func (m *MsgLinkNodeRequest) XXX_DiscardUnknown()

func (*MsgLinkNodeRequest) XXX_Marshal added in v0.11.0

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

func (*MsgLinkNodeRequest) XXX_Merge added in v0.11.0

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

func (*MsgLinkNodeRequest) XXX_Size added in v0.11.0

func (m *MsgLinkNodeRequest) XXX_Size() int

func (*MsgLinkNodeRequest) XXX_Unmarshal added in v0.11.0

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

type MsgLinkNodeResponse added in v0.11.0

type MsgLinkNodeResponse struct {
}

MsgLinkNodeResponse defines the response of message MsgLinkNodeRequest

func (*MsgLinkNodeResponse) Descriptor added in v0.11.0

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

func (*MsgLinkNodeResponse) Marshal added in v0.11.0

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

func (*MsgLinkNodeResponse) MarshalTo added in v0.11.0

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

func (*MsgLinkNodeResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgLinkNodeResponse) ProtoMessage added in v0.11.0

func (*MsgLinkNodeResponse) ProtoMessage()

func (*MsgLinkNodeResponse) Reset added in v0.11.0

func (m *MsgLinkNodeResponse) Reset()

func (*MsgLinkNodeResponse) Size added in v0.11.0

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

func (*MsgLinkNodeResponse) String added in v0.11.0

func (m *MsgLinkNodeResponse) String() string

func (*MsgLinkNodeResponse) Unmarshal added in v0.11.0

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

func (*MsgLinkNodeResponse) XXX_DiscardUnknown added in v0.11.0

func (m *MsgLinkNodeResponse) XXX_DiscardUnknown()

func (*MsgLinkNodeResponse) XXX_Marshal added in v0.11.0

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

func (*MsgLinkNodeResponse) XXX_Merge added in v0.11.0

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

func (*MsgLinkNodeResponse) XXX_Size added in v0.11.0

func (m *MsgLinkNodeResponse) XXX_Size() int

func (*MsgLinkNodeResponse) XXX_Unmarshal added in v0.11.0

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

type MsgServiceClient added in v0.6.0

type MsgServiceClient interface {
	MsgCreate(ctx context.Context, in *MsgCreateRequest, opts ...grpc.CallOption) (*MsgCreateResponse, error)
	MsgUpdateStatus(ctx context.Context, in *MsgUpdateStatusRequest, opts ...grpc.CallOption) (*MsgUpdateStatusResponse, error)
	MsgLinkNode(ctx context.Context, in *MsgLinkNodeRequest, opts ...grpc.CallOption) (*MsgLinkNodeResponse, error)
	MsgUnlinkNode(ctx context.Context, in *MsgUnlinkNodeRequest, opts ...grpc.CallOption) (*MsgUnlinkNodeResponse, error)
	MsgSubscribe(ctx context.Context, in *MsgSubscribeRequest, opts ...grpc.CallOption) (*MsgSubscribeResponse, 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 MsgSubscribeRequest added in v0.11.0

type MsgSubscribeRequest struct {
	From  string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	ID    uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

MsgSubscribeRequest defines the SDK message for subscribing to a subscription plan

func NewMsgSubscribeRequest added in v0.11.0

func NewMsgSubscribeRequest(from sdk.AccAddress, id uint64, denom string) *MsgSubscribeRequest

NewMsgSubscribeRequest creates a new MsgSubscribeRequest instance with the given parameters.

func (*MsgSubscribeRequest) Descriptor added in v0.11.0

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

func (*MsgSubscribeRequest) GetSigners added in v0.11.0

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

GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgSubscribeRequest.

func (*MsgSubscribeRequest) Marshal added in v0.11.0

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

func (*MsgSubscribeRequest) MarshalTo added in v0.11.0

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

func (*MsgSubscribeRequest) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgSubscribeRequest) ProtoMessage added in v0.11.0

func (*MsgSubscribeRequest) ProtoMessage()

func (*MsgSubscribeRequest) Reset added in v0.11.0

func (m *MsgSubscribeRequest) Reset()

func (*MsgSubscribeRequest) Size added in v0.11.0

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

func (*MsgSubscribeRequest) String added in v0.11.0

func (m *MsgSubscribeRequest) String() string

func (*MsgSubscribeRequest) Unmarshal added in v0.11.0

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

func (*MsgSubscribeRequest) ValidateBasic added in v0.11.0

func (m *MsgSubscribeRequest) ValidateBasic() error

ValidateBasic performs basic validation checks on the MsgSubscribeRequest fields. It checks if the 'From' field is not empty and represents a valid account address, if the 'ID' field is not zero, and if the 'Denom' field is valid according to the Cosmos SDK's ValidateDenom function.

func (*MsgSubscribeRequest) XXX_DiscardUnknown added in v0.11.0

func (m *MsgSubscribeRequest) XXX_DiscardUnknown()

func (*MsgSubscribeRequest) XXX_Marshal added in v0.11.0

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

func (*MsgSubscribeRequest) XXX_Merge added in v0.11.0

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

func (*MsgSubscribeRequest) XXX_Size added in v0.11.0

func (m *MsgSubscribeRequest) XXX_Size() int

func (*MsgSubscribeRequest) XXX_Unmarshal added in v0.11.0

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

type MsgSubscribeResponse added in v0.11.0

type MsgSubscribeResponse struct {
}

MsgSubscribeResponse defines the response of message MsgSubscribeRequest

func (*MsgSubscribeResponse) Descriptor added in v0.11.0

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

func (*MsgSubscribeResponse) Marshal added in v0.11.0

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

func (*MsgSubscribeResponse) MarshalTo added in v0.11.0

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

func (*MsgSubscribeResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgSubscribeResponse) ProtoMessage added in v0.11.0

func (*MsgSubscribeResponse) ProtoMessage()

func (*MsgSubscribeResponse) Reset added in v0.11.0

func (m *MsgSubscribeResponse) Reset()

func (*MsgSubscribeResponse) Size added in v0.11.0

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

func (*MsgSubscribeResponse) String added in v0.11.0

func (m *MsgSubscribeResponse) String() string

func (*MsgSubscribeResponse) Unmarshal added in v0.11.0

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

func (*MsgSubscribeResponse) XXX_DiscardUnknown added in v0.11.0

func (m *MsgSubscribeResponse) XXX_DiscardUnknown()

func (*MsgSubscribeResponse) XXX_Marshal added in v0.11.0

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

func (*MsgSubscribeResponse) XXX_Merge added in v0.11.0

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

func (*MsgSubscribeResponse) XXX_Size added in v0.11.0

func (m *MsgSubscribeResponse) XXX_Size() int

func (*MsgSubscribeResponse) XXX_Unmarshal added in v0.11.0

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

type MsgUnlinkNodeRequest added in v0.11.0

type MsgUnlinkNodeRequest struct {
	From        string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	ID          uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	NodeAddress string `protobuf:"bytes,3,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
}

MsgUnlinkNodeRequest defines the SDK message for removing a node from a subscription plan

func NewMsgUnlinkNodeRequest added in v0.11.0

func NewMsgUnlinkNodeRequest(from hubtypes.ProvAddress, id uint64, addr hubtypes.NodeAddress) *MsgUnlinkNodeRequest

NewMsgUnlinkNodeRequest creates a new MsgUnlinkNodeRequest instance with the given parameters.

func (*MsgUnlinkNodeRequest) Descriptor added in v0.11.0

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

func (*MsgUnlinkNodeRequest) GetSigners added in v0.11.0

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

GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgUnlinkNodeRequest.

func (*MsgUnlinkNodeRequest) Marshal added in v0.11.0

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

func (*MsgUnlinkNodeRequest) MarshalTo added in v0.11.0

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

func (*MsgUnlinkNodeRequest) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgUnlinkNodeRequest) ProtoMessage added in v0.11.0

func (*MsgUnlinkNodeRequest) ProtoMessage()

func (*MsgUnlinkNodeRequest) Reset added in v0.11.0

func (m *MsgUnlinkNodeRequest) Reset()

func (*MsgUnlinkNodeRequest) Size added in v0.11.0

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

func (*MsgUnlinkNodeRequest) String added in v0.11.0

func (m *MsgUnlinkNodeRequest) String() string

func (*MsgUnlinkNodeRequest) Unmarshal added in v0.11.0

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

func (*MsgUnlinkNodeRequest) ValidateBasic added in v0.11.0

func (m *MsgUnlinkNodeRequest) ValidateBasic() error

ValidateBasic performs basic validation checks on the MsgUnlinkNodeRequest fields. It checks if the 'From' field is not empty and represents a valid provider address, if the 'ID' field is not zero, and if the 'Address' field is not empty and represents a valid node address.

func (*MsgUnlinkNodeRequest) XXX_DiscardUnknown added in v0.11.0

func (m *MsgUnlinkNodeRequest) XXX_DiscardUnknown()

func (*MsgUnlinkNodeRequest) XXX_Marshal added in v0.11.0

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

func (*MsgUnlinkNodeRequest) XXX_Merge added in v0.11.0

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

func (*MsgUnlinkNodeRequest) XXX_Size added in v0.11.0

func (m *MsgUnlinkNodeRequest) XXX_Size() int

func (*MsgUnlinkNodeRequest) XXX_Unmarshal added in v0.11.0

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

type MsgUnlinkNodeResponse added in v0.11.0

type MsgUnlinkNodeResponse struct {
}

MsgUnlinkNodeResponse defines the response of message MsgUnlinkNodeRequest

func (*MsgUnlinkNodeResponse) Descriptor added in v0.11.0

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

func (*MsgUnlinkNodeResponse) Marshal added in v0.11.0

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

func (*MsgUnlinkNodeResponse) MarshalTo added in v0.11.0

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

func (*MsgUnlinkNodeResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgUnlinkNodeResponse) ProtoMessage added in v0.11.0

func (*MsgUnlinkNodeResponse) ProtoMessage()

func (*MsgUnlinkNodeResponse) Reset added in v0.11.0

func (m *MsgUnlinkNodeResponse) Reset()

func (*MsgUnlinkNodeResponse) Size added in v0.11.0

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

func (*MsgUnlinkNodeResponse) String added in v0.11.0

func (m *MsgUnlinkNodeResponse) String() string

func (*MsgUnlinkNodeResponse) Unmarshal added in v0.11.0

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

func (*MsgUnlinkNodeResponse) XXX_DiscardUnknown added in v0.11.0

func (m *MsgUnlinkNodeResponse) XXX_DiscardUnknown()

func (*MsgUnlinkNodeResponse) XXX_Marshal added in v0.11.0

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

func (*MsgUnlinkNodeResponse) XXX_Merge added in v0.11.0

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

func (*MsgUnlinkNodeResponse) XXX_Size added in v0.11.0

func (m *MsgUnlinkNodeResponse) XXX_Size() int

func (*MsgUnlinkNodeResponse) XXX_Unmarshal added in v0.11.0

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

type MsgUpdateStatusRequest added in v0.11.0

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

MsgUpdateStatusRequest defines the SDK message for modifying the status of a subscription plan

func NewMsgUpdateStatusRequest added in v0.11.0

func NewMsgUpdateStatusRequest(from hubtypes.ProvAddress, id uint64, status hubtypes.Status) *MsgUpdateStatusRequest

NewMsgUpdateStatusRequest creates a new MsgUpdateStatusRequest instance with the given parameters.

func (*MsgUpdateStatusRequest) Descriptor added in v0.11.0

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

func (*MsgUpdateStatusRequest) GetSigners added in v0.11.0

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

GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgUpdateStatusRequest.

func (*MsgUpdateStatusRequest) Marshal added in v0.11.0

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

func (*MsgUpdateStatusRequest) MarshalTo added in v0.11.0

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

func (*MsgUpdateStatusRequest) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgUpdateStatusRequest) ProtoMessage added in v0.11.0

func (*MsgUpdateStatusRequest) ProtoMessage()

func (*MsgUpdateStatusRequest) Reset added in v0.11.0

func (m *MsgUpdateStatusRequest) Reset()

func (*MsgUpdateStatusRequest) Size added in v0.11.0

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

func (*MsgUpdateStatusRequest) String added in v0.11.0

func (m *MsgUpdateStatusRequest) String() string

func (*MsgUpdateStatusRequest) Unmarshal added in v0.11.0

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

func (*MsgUpdateStatusRequest) ValidateBasic added in v0.11.0

func (m *MsgUpdateStatusRequest) ValidateBasic() error

ValidateBasic performs basic validation checks on the MsgUpdateStatusRequest fields. It checks if the 'From' field is not empty and represents a valid provider address, if the 'ID' field is not zero, and if the 'Status' field is one of the allowed values [active, inactive].

func (*MsgUpdateStatusRequest) XXX_DiscardUnknown added in v0.11.0

func (m *MsgUpdateStatusRequest) XXX_DiscardUnknown()

func (*MsgUpdateStatusRequest) XXX_Marshal added in v0.11.0

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

func (*MsgUpdateStatusRequest) XXX_Merge added in v0.11.0

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

func (*MsgUpdateStatusRequest) XXX_Size added in v0.11.0

func (m *MsgUpdateStatusRequest) XXX_Size() int

func (*MsgUpdateStatusRequest) XXX_Unmarshal added in v0.11.0

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

type MsgUpdateStatusResponse added in v0.11.0

type MsgUpdateStatusResponse struct {
}

MsgUpdateStatusResponse defines the response of message MsgUpdateStatusRequest

func (*MsgUpdateStatusResponse) Descriptor added in v0.11.0

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

func (*MsgUpdateStatusResponse) Marshal added in v0.11.0

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

func (*MsgUpdateStatusResponse) MarshalTo added in v0.11.0

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

func (*MsgUpdateStatusResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*MsgUpdateStatusResponse) ProtoMessage added in v0.11.0

func (*MsgUpdateStatusResponse) ProtoMessage()

func (*MsgUpdateStatusResponse) Reset added in v0.11.0

func (m *MsgUpdateStatusResponse) Reset()

func (*MsgUpdateStatusResponse) Size added in v0.11.0

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

func (*MsgUpdateStatusResponse) String added in v0.11.0

func (m *MsgUpdateStatusResponse) String() string

func (*MsgUpdateStatusResponse) Unmarshal added in v0.11.0

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

func (*MsgUpdateStatusResponse) XXX_DiscardUnknown added in v0.11.0

func (m *MsgUpdateStatusResponse) XXX_DiscardUnknown()

func (*MsgUpdateStatusResponse) XXX_Marshal added in v0.11.0

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

func (*MsgUpdateStatusResponse) XXX_Merge added in v0.11.0

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

func (*MsgUpdateStatusResponse) XXX_Size added in v0.11.0

func (m *MsgUpdateStatusResponse) XXX_Size() int

func (*MsgUpdateStatusResponse) XXX_Unmarshal added in v0.11.0

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

type Plan

type Plan struct {
	ID              uint64                                   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ProviderAddress string                                   `protobuf:"bytes,2,opt,name=provider_address,json=providerAddress,proto3" json:"provider_address,omitempty"`
	Duration        time.Duration                            `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration"`
	Gigabytes       int64                                    `protobuf:"varint,4,opt,name=gigabytes,proto3" json:"gigabytes,omitempty"`
	Prices          github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=prices,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"prices"`
	Status          types1.Status                            `protobuf:"varint,6,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"`
	StatusAt        time.Time                                `protobuf:"bytes,7,opt,name=status_at,json=statusAt,proto3,stdtime" json:"status_at"`
}

func (*Plan) Descriptor added in v0.6.0

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

func (*Plan) GetProviderAddress added in v0.11.0

func (m *Plan) GetProviderAddress() hubtypes.ProvAddress

func (*Plan) Marshal added in v0.6.0

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

func (*Plan) MarshalTo added in v0.6.0

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

func (*Plan) MarshalToSizedBuffer added in v0.6.0

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

func (*Plan) Price

func (m *Plan) Price(denom string) (sdk.Coin, bool)

func (*Plan) ProtoMessage added in v0.6.0

func (*Plan) ProtoMessage()

func (*Plan) Reset added in v0.6.0

func (m *Plan) Reset()

func (*Plan) Size added in v0.6.0

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

func (*Plan) String

func (m *Plan) String() string

func (*Plan) Unmarshal added in v0.6.0

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

func (*Plan) Validate

func (m *Plan) Validate() error

func (*Plan) XXX_DiscardUnknown added in v0.6.0

func (m *Plan) XXX_DiscardUnknown()

func (*Plan) XXX_Marshal added in v0.6.0

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

func (*Plan) XXX_Merge added in v0.6.0

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

func (*Plan) XXX_Size added in v0.6.0

func (m *Plan) XXX_Size() int

func (*Plan) XXX_Unmarshal added in v0.6.0

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

type Plans

type Plans []Plan

type QueryPlanRequest added in v0.6.0

type QueryPlanRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func NewQueryPlanRequest added in v0.6.0

func NewQueryPlanRequest(id uint64) *QueryPlanRequest

func (*QueryPlanRequest) Descriptor added in v0.6.0

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

func (*QueryPlanRequest) Marshal added in v0.6.0

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

func (*QueryPlanRequest) MarshalTo added in v0.6.0

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

func (*QueryPlanRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryPlanRequest) ProtoMessage added in v0.6.0

func (*QueryPlanRequest) ProtoMessage()

func (*QueryPlanRequest) Reset added in v0.6.0

func (m *QueryPlanRequest) Reset()

func (*QueryPlanRequest) Size added in v0.6.0

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

func (*QueryPlanRequest) String added in v0.6.0

func (m *QueryPlanRequest) String() string

func (*QueryPlanRequest) Unmarshal added in v0.6.0

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

func (*QueryPlanRequest) XXX_DiscardUnknown added in v0.6.0

func (m *QueryPlanRequest) XXX_DiscardUnknown()

func (*QueryPlanRequest) XXX_Marshal added in v0.6.0

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

func (*QueryPlanRequest) XXX_Merge added in v0.6.0

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

func (*QueryPlanRequest) XXX_Size added in v0.6.0

func (m *QueryPlanRequest) XXX_Size() int

func (*QueryPlanRequest) XXX_Unmarshal added in v0.6.0

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

type QueryPlanResponse added in v0.6.0

type QueryPlanResponse struct {
	Plan Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan"`
}

func (*QueryPlanResponse) Descriptor added in v0.6.0

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

func (*QueryPlanResponse) Marshal added in v0.6.0

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

func (*QueryPlanResponse) MarshalTo added in v0.6.0

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

func (*QueryPlanResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryPlanResponse) ProtoMessage added in v0.6.0

func (*QueryPlanResponse) ProtoMessage()

func (*QueryPlanResponse) Reset added in v0.6.0

func (m *QueryPlanResponse) Reset()

func (*QueryPlanResponse) Size added in v0.6.0

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

func (*QueryPlanResponse) String added in v0.6.0

func (m *QueryPlanResponse) String() string

func (*QueryPlanResponse) Unmarshal added in v0.6.0

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

func (*QueryPlanResponse) XXX_DiscardUnknown added in v0.6.0

func (m *QueryPlanResponse) XXX_DiscardUnknown()

func (*QueryPlanResponse) XXX_Marshal added in v0.6.0

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

func (*QueryPlanResponse) XXX_Merge added in v0.6.0

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

func (*QueryPlanResponse) XXX_Size added in v0.6.0

func (m *QueryPlanResponse) XXX_Size() int

func (*QueryPlanResponse) XXX_Unmarshal added in v0.6.0

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

type QueryPlansForProviderRequest added in v0.6.0

type QueryPlansForProviderRequest 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 NewQueryPlansForProviderRequest added in v0.6.0

func NewQueryPlansForProviderRequest(addr hubtypes.ProvAddress, status hubtypes.Status, pagination *query.PageRequest) *QueryPlansForProviderRequest

func (*QueryPlansForProviderRequest) Descriptor added in v0.6.0

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

func (*QueryPlansForProviderRequest) Marshal added in v0.6.0

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

func (*QueryPlansForProviderRequest) MarshalTo added in v0.6.0

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

func (*QueryPlansForProviderRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryPlansForProviderRequest) ProtoMessage added in v0.6.0

func (*QueryPlansForProviderRequest) ProtoMessage()

func (*QueryPlansForProviderRequest) Reset added in v0.6.0

func (m *QueryPlansForProviderRequest) Reset()

func (*QueryPlansForProviderRequest) Size added in v0.6.0

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

func (*QueryPlansForProviderRequest) String added in v0.6.0

func (*QueryPlansForProviderRequest) Unmarshal added in v0.6.0

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

func (*QueryPlansForProviderRequest) XXX_DiscardUnknown added in v0.6.0

func (m *QueryPlansForProviderRequest) XXX_DiscardUnknown()

func (*QueryPlansForProviderRequest) XXX_Marshal added in v0.6.0

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

func (*QueryPlansForProviderRequest) XXX_Merge added in v0.6.0

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

func (*QueryPlansForProviderRequest) XXX_Size added in v0.6.0

func (m *QueryPlansForProviderRequest) XXX_Size() int

func (*QueryPlansForProviderRequest) XXX_Unmarshal added in v0.6.0

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

type QueryPlansForProviderResponse added in v0.6.0

type QueryPlansForProviderResponse struct {
	Plans      []Plan              `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryPlansForProviderResponse) Descriptor added in v0.6.0

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

func (*QueryPlansForProviderResponse) Marshal added in v0.6.0

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

func (*QueryPlansForProviderResponse) MarshalTo added in v0.6.0

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

func (*QueryPlansForProviderResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryPlansForProviderResponse) ProtoMessage added in v0.6.0

func (*QueryPlansForProviderResponse) ProtoMessage()

func (*QueryPlansForProviderResponse) Reset added in v0.6.0

func (m *QueryPlansForProviderResponse) Reset()

func (*QueryPlansForProviderResponse) Size added in v0.6.0

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

func (*QueryPlansForProviderResponse) String added in v0.6.0

func (*QueryPlansForProviderResponse) Unmarshal added in v0.6.0

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

func (*QueryPlansForProviderResponse) XXX_DiscardUnknown added in v0.6.0

func (m *QueryPlansForProviderResponse) XXX_DiscardUnknown()

func (*QueryPlansForProviderResponse) XXX_Marshal added in v0.6.0

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

func (*QueryPlansForProviderResponse) XXX_Merge added in v0.6.0

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

func (*QueryPlansForProviderResponse) XXX_Size added in v0.6.0

func (m *QueryPlansForProviderResponse) XXX_Size() int

func (*QueryPlansForProviderResponse) XXX_Unmarshal added in v0.6.0

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

type QueryPlansRequest added in v0.6.0

type QueryPlansRequest 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 NewQueryPlansRequest added in v0.6.0

func NewQueryPlansRequest(status hubtypes.Status, pagination *query.PageRequest) *QueryPlansRequest

func (*QueryPlansRequest) Descriptor added in v0.6.0

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

func (*QueryPlansRequest) Marshal added in v0.6.0

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

func (*QueryPlansRequest) MarshalTo added in v0.6.0

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

func (*QueryPlansRequest) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryPlansRequest) ProtoMessage added in v0.6.0

func (*QueryPlansRequest) ProtoMessage()

func (*QueryPlansRequest) Reset added in v0.6.0

func (m *QueryPlansRequest) Reset()

func (*QueryPlansRequest) Size added in v0.6.0

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

func (*QueryPlansRequest) String added in v0.6.0

func (m *QueryPlansRequest) String() string

func (*QueryPlansRequest) Unmarshal added in v0.6.0

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

func (*QueryPlansRequest) XXX_DiscardUnknown added in v0.6.0

func (m *QueryPlansRequest) XXX_DiscardUnknown()

func (*QueryPlansRequest) XXX_Marshal added in v0.6.0

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

func (*QueryPlansRequest) XXX_Merge added in v0.6.0

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

func (*QueryPlansRequest) XXX_Size added in v0.6.0

func (m *QueryPlansRequest) XXX_Size() int

func (*QueryPlansRequest) XXX_Unmarshal added in v0.6.0

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

type QueryPlansResponse added in v0.6.0

type QueryPlansResponse struct {
	Plans      []Plan              `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryPlansResponse) Descriptor added in v0.6.0

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

func (*QueryPlansResponse) Marshal added in v0.6.0

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

func (*QueryPlansResponse) MarshalTo added in v0.6.0

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

func (*QueryPlansResponse) MarshalToSizedBuffer added in v0.6.0

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

func (*QueryPlansResponse) ProtoMessage added in v0.6.0

func (*QueryPlansResponse) ProtoMessage()

func (*QueryPlansResponse) Reset added in v0.6.0

func (m *QueryPlansResponse) Reset()

func (*QueryPlansResponse) Size added in v0.6.0

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

func (*QueryPlansResponse) String added in v0.6.0

func (m *QueryPlansResponse) String() string

func (*QueryPlansResponse) Unmarshal added in v0.6.0

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

func (*QueryPlansResponse) XXX_DiscardUnknown added in v0.6.0

func (m *QueryPlansResponse) XXX_DiscardUnknown()

func (*QueryPlansResponse) XXX_Marshal added in v0.6.0

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

func (*QueryPlansResponse) XXX_Merge added in v0.6.0

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

func (*QueryPlansResponse) XXX_Size added in v0.6.0

func (m *QueryPlansResponse) XXX_Size() int

func (*QueryPlansResponse) XXX_Unmarshal added in v0.6.0

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

type QueryServiceClient added in v0.6.0

type QueryServiceClient interface {
	QueryPlans(ctx context.Context, in *QueryPlansRequest, opts ...grpc.CallOption) (*QueryPlansResponse, error)
	QueryPlansForProvider(ctx context.Context, in *QueryPlansForProviderRequest, opts ...grpc.CallOption) (*QueryPlansForProviderResponse, error)
	QueryPlan(ctx context.Context, in *QueryPlanRequest, opts ...grpc.CallOption) (*QueryPlanResponse, 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) MsgCreate added in v0.11.0

func (*UnimplementedMsgServiceServer) MsgLinkNode added in v0.11.0

func (*UnimplementedMsgServiceServer) MsgSubscribe added in v0.11.0

func (*UnimplementedMsgServiceServer) MsgUnlinkNode added in v0.11.0

func (*UnimplementedMsgServiceServer) MsgUpdateStatus added in v0.11.0

type UnimplementedQueryServiceServer added in v0.6.0

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) QueryPlan added in v0.6.0

func (*UnimplementedQueryServiceServer) QueryPlans added in v0.6.0

func (*UnimplementedQueryServiceServer) QueryPlansForProvider added in v0.6.0

Jump to

Keyboard shortcuts

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