v5

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "subscription"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_subscription"

	// prefix for the subscription fixation store
	SubsFixationPrefix = "subs-fs"

	// prefix for the subscription fixation store
	SubsTimerPrefix = "subs-ts"
)
View Source
const FREE_PLAN = "free" // gets its own const because it's treated differently

Variables

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 (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSubscription        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSubscription          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSubscription = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetClusterKey

func GetClusterKey(sub Subscription) string

GetClusterKey returns the subscription's best-fit cluster

func GetSubUsageCriterion

func GetSubUsageCriterion(sub Subscription) uint64

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type ListInfoStruct

type ListInfoStruct struct {
	Consumer       string `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Plan           string `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan,omitempty"`
	DurationBought uint64 `protobuf:"varint,3,opt,name=duration_bought,json=durationBought,proto3" json:"duration_bought,omitempty"`
	DurationLeft   uint64 `protobuf:"varint,4,opt,name=duration_left,json=durationLeft,proto3" json:"duration_left,omitempty"`
	MonthExpiry    uint64 `protobuf:"varint,5,opt,name=month_expiry,json=monthExpiry,proto3" json:"month_expiry,omitempty"`
	MonthCuTotal   uint64 `protobuf:"varint,6,opt,name=month_cu_total,json=monthCuTotal,proto3" json:"month_cu_total,omitempty"`
	MonthCuLeft    uint64 `protobuf:"varint,7,opt,name=month_cu_left,json=monthCuLeft,proto3" json:"month_cu_left,omitempty"`
	Cluster        string `protobuf:"bytes,8,opt,name=cluster,proto3" json:"cluster,omitempty"`
	DurationTotal  uint64 `protobuf:"varint,9,opt,name=duration_total,json=durationTotal,proto3" json:"duration_total,omitempty"`
}

func (*ListInfoStruct) Descriptor

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

func (*ListInfoStruct) GetCluster

func (m *ListInfoStruct) GetCluster() string

func (*ListInfoStruct) GetConsumer

func (m *ListInfoStruct) GetConsumer() string

func (*ListInfoStruct) GetDurationBought

func (m *ListInfoStruct) GetDurationBought() uint64

func (*ListInfoStruct) GetDurationLeft

func (m *ListInfoStruct) GetDurationLeft() uint64

func (*ListInfoStruct) GetDurationTotal

func (m *ListInfoStruct) GetDurationTotal() uint64

func (*ListInfoStruct) GetMonthCuLeft

func (m *ListInfoStruct) GetMonthCuLeft() uint64

func (*ListInfoStruct) GetMonthCuTotal

func (m *ListInfoStruct) GetMonthCuTotal() uint64

func (*ListInfoStruct) GetMonthExpiry

func (m *ListInfoStruct) GetMonthExpiry() uint64

func (*ListInfoStruct) GetPlan

func (m *ListInfoStruct) GetPlan() string

func (*ListInfoStruct) Marshal

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

func (*ListInfoStruct) MarshalTo

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

func (*ListInfoStruct) MarshalToSizedBuffer

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

func (*ListInfoStruct) ProtoMessage

func (*ListInfoStruct) ProtoMessage()

func (*ListInfoStruct) Reset

func (m *ListInfoStruct) Reset()

func (*ListInfoStruct) Size

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

func (*ListInfoStruct) String

func (m *ListInfoStruct) String() string

func (*ListInfoStruct) Unmarshal

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

func (*ListInfoStruct) XXX_DiscardUnknown

func (m *ListInfoStruct) XXX_DiscardUnknown()

func (*ListInfoStruct) XXX_Marshal

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

func (*ListInfoStruct) XXX_Merge

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

func (*ListInfoStruct) XXX_Size

func (m *ListInfoStruct) XXX_Size() int

func (*ListInfoStruct) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Current items.
	Current(ctx context.Context, in *QueryCurrentRequest, opts ...grpc.CallOption) (*QueryCurrentResponse, error)
	// Queries a list of ListProjects items.
	ListProjects(ctx context.Context, in *QueryListProjectsRequest, opts ...grpc.CallOption) (*QueryListProjectsResponse, error)
	// Queries a list of List items.
	List(ctx context.Context, in *QueryListRequest, opts ...grpc.CallOption) (*QueryListResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCurrentRequest

type QueryCurrentRequest struct {
	Consumer string `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer,omitempty"`
}

func (*QueryCurrentRequest) Descriptor

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

func (*QueryCurrentRequest) GetConsumer

func (m *QueryCurrentRequest) GetConsumer() string

func (*QueryCurrentRequest) Marshal

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

func (*QueryCurrentRequest) MarshalTo

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

func (*QueryCurrentRequest) MarshalToSizedBuffer

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

func (*QueryCurrentRequest) ProtoMessage

func (*QueryCurrentRequest) ProtoMessage()

func (*QueryCurrentRequest) Reset

func (m *QueryCurrentRequest) Reset()

func (*QueryCurrentRequest) Size

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

func (*QueryCurrentRequest) String

func (m *QueryCurrentRequest) String() string

func (*QueryCurrentRequest) Unmarshal

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

func (*QueryCurrentRequest) XXX_DiscardUnknown

func (m *QueryCurrentRequest) XXX_DiscardUnknown()

func (*QueryCurrentRequest) XXX_Marshal

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

func (*QueryCurrentRequest) XXX_Merge

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

func (*QueryCurrentRequest) XXX_Size

func (m *QueryCurrentRequest) XXX_Size() int

func (*QueryCurrentRequest) XXX_Unmarshal

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

type QueryCurrentResponse

type QueryCurrentResponse struct {
	Sub *Subscription `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
}

func (*QueryCurrentResponse) Descriptor

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

func (*QueryCurrentResponse) GetSub

func (m *QueryCurrentResponse) GetSub() *Subscription

func (*QueryCurrentResponse) Marshal

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

func (*QueryCurrentResponse) MarshalTo

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

func (*QueryCurrentResponse) MarshalToSizedBuffer

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

func (*QueryCurrentResponse) ProtoMessage

func (*QueryCurrentResponse) ProtoMessage()

func (*QueryCurrentResponse) Reset

func (m *QueryCurrentResponse) Reset()

func (*QueryCurrentResponse) Size

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

func (*QueryCurrentResponse) String

func (m *QueryCurrentResponse) String() string

func (*QueryCurrentResponse) Unmarshal

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

func (*QueryCurrentResponse) XXX_DiscardUnknown

func (m *QueryCurrentResponse) XXX_DiscardUnknown()

func (*QueryCurrentResponse) XXX_Marshal

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

func (*QueryCurrentResponse) XXX_Merge

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

func (*QueryCurrentResponse) XXX_Size

func (m *QueryCurrentResponse) XXX_Size() int

func (*QueryCurrentResponse) XXX_Unmarshal

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

type QueryListProjectsRequest

type QueryListProjectsRequest struct {
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
}

func (*QueryListProjectsRequest) Descriptor

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

func (*QueryListProjectsRequest) GetSubscription

func (m *QueryListProjectsRequest) GetSubscription() string

func (*QueryListProjectsRequest) Marshal

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

func (*QueryListProjectsRequest) MarshalTo

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

func (*QueryListProjectsRequest) MarshalToSizedBuffer

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

func (*QueryListProjectsRequest) ProtoMessage

func (*QueryListProjectsRequest) ProtoMessage()

func (*QueryListProjectsRequest) Reset

func (m *QueryListProjectsRequest) Reset()

func (*QueryListProjectsRequest) Size

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

func (*QueryListProjectsRequest) String

func (m *QueryListProjectsRequest) String() string

func (*QueryListProjectsRequest) Unmarshal

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

func (*QueryListProjectsRequest) XXX_DiscardUnknown

func (m *QueryListProjectsRequest) XXX_DiscardUnknown()

func (*QueryListProjectsRequest) XXX_Marshal

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

func (*QueryListProjectsRequest) XXX_Merge

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

func (*QueryListProjectsRequest) XXX_Size

func (m *QueryListProjectsRequest) XXX_Size() int

func (*QueryListProjectsRequest) XXX_Unmarshal

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

type QueryListProjectsResponse

type QueryListProjectsResponse struct {
	Projects []string `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
}

func (*QueryListProjectsResponse) Descriptor

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

func (*QueryListProjectsResponse) GetProjects

func (m *QueryListProjectsResponse) GetProjects() []string

func (*QueryListProjectsResponse) Marshal

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

func (*QueryListProjectsResponse) MarshalTo

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

func (*QueryListProjectsResponse) MarshalToSizedBuffer

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

func (*QueryListProjectsResponse) ProtoMessage

func (*QueryListProjectsResponse) ProtoMessage()

func (*QueryListProjectsResponse) Reset

func (m *QueryListProjectsResponse) Reset()

func (*QueryListProjectsResponse) Size

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

func (*QueryListProjectsResponse) String

func (m *QueryListProjectsResponse) String() string

func (*QueryListProjectsResponse) Unmarshal

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

func (*QueryListProjectsResponse) XXX_DiscardUnknown

func (m *QueryListProjectsResponse) XXX_DiscardUnknown()

func (*QueryListProjectsResponse) XXX_Marshal

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

func (*QueryListProjectsResponse) XXX_Merge

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

func (*QueryListProjectsResponse) XXX_Size

func (m *QueryListProjectsResponse) XXX_Size() int

func (*QueryListProjectsResponse) XXX_Unmarshal

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

type QueryListRequest

type QueryListRequest struct {
}

func (*QueryListRequest) Descriptor

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

func (*QueryListRequest) Marshal

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

func (*QueryListRequest) MarshalTo

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

func (*QueryListRequest) MarshalToSizedBuffer

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

func (*QueryListRequest) ProtoMessage

func (*QueryListRequest) ProtoMessage()

func (*QueryListRequest) Reset

func (m *QueryListRequest) Reset()

func (*QueryListRequest) Size

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

func (*QueryListRequest) String

func (m *QueryListRequest) String() string

func (*QueryListRequest) Unmarshal

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

func (*QueryListRequest) XXX_DiscardUnknown

func (m *QueryListRequest) XXX_DiscardUnknown()

func (*QueryListRequest) XXX_Marshal

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

func (*QueryListRequest) XXX_Merge

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

func (*QueryListRequest) XXX_Size

func (m *QueryListRequest) XXX_Size() int

func (*QueryListRequest) XXX_Unmarshal

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

type QueryListResponse

type QueryListResponse struct {
	SubsInfo []ListInfoStruct `protobuf:"bytes,1,rep,name=subs_info,json=subsInfo,proto3" json:"subs_info"`
}

func (*QueryListResponse) Descriptor

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

func (*QueryListResponse) GetSubsInfo

func (m *QueryListResponse) GetSubsInfo() []ListInfoStruct

func (*QueryListResponse) Marshal

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

func (*QueryListResponse) MarshalTo

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

func (*QueryListResponse) MarshalToSizedBuffer

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

func (*QueryListResponse) ProtoMessage

func (*QueryListResponse) ProtoMessage()

func (*QueryListResponse) Reset

func (m *QueryListResponse) Reset()

func (*QueryListResponse) Size

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

func (*QueryListResponse) String

func (m *QueryListResponse) String() string

func (*QueryListResponse) Unmarshal

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

func (*QueryListResponse) XXX_DiscardUnknown

func (m *QueryListResponse) XXX_DiscardUnknown()

func (*QueryListResponse) XXX_Marshal

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

func (*QueryListResponse) XXX_Merge

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

func (*QueryListResponse) XXX_Size

func (m *QueryListResponse) XXX_Size() int

func (*QueryListResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Current items.
	Current(context.Context, *QueryCurrentRequest) (*QueryCurrentResponse, error)
	// Queries a list of ListProjects items.
	ListProjects(context.Context, *QueryListProjectsRequest) (*QueryListProjectsResponse, error)
	// Queries a list of List items.
	List(context.Context, *QueryListRequest) (*QueryListResponse, error)
}

QueryServer is the server API for Query service.

type Subscription

type Subscription struct {
	Creator         string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Consumer        string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"`
	Block           uint64 `protobuf:"varint,3,opt,name=block,proto3" json:"block,omitempty"`
	PlanIndex       string `protobuf:"bytes,4,opt,name=plan_index,json=planIndex,proto3" json:"plan_index,omitempty"`
	PlanBlock       uint64 `protobuf:"varint,5,opt,name=plan_block,json=planBlock,proto3" json:"plan_block,omitempty"`
	DurationBought  uint64 `protobuf:"varint,6,opt,name=duration_bought,json=durationBought,proto3" json:"duration_bought,omitempty"`
	DurationLeft    uint64 `protobuf:"varint,7,opt,name=duration_left,json=durationLeft,proto3" json:"duration_left,omitempty"`
	MonthExpiryTime uint64 `protobuf:"varint,8,opt,name=month_expiry_time,json=monthExpiryTime,proto3" json:"month_expiry_time,omitempty"`
	MonthCuTotal    uint64 `protobuf:"varint,10,opt,name=month_cu_total,json=monthCuTotal,proto3" json:"month_cu_total,omitempty"`
	MonthCuLeft     uint64 `protobuf:"varint,11,opt,name=month_cu_left,json=monthCuLeft,proto3" json:"month_cu_left,omitempty"`
	Cluster         string `protobuf:"bytes,13,opt,name=cluster,proto3" json:"cluster,omitempty"`
	DurationTotal   uint64 `protobuf:"varint,14,opt,name=duration_total,json=durationTotal,proto3" json:"duration_total,omitempty"`
}

func (*Subscription) Descriptor

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

func (*Subscription) GetBlock

func (m *Subscription) GetBlock() uint64

func (*Subscription) GetCluster

func (m *Subscription) GetCluster() string

func (*Subscription) GetConsumer

func (m *Subscription) GetConsumer() string

func (*Subscription) GetCreator

func (m *Subscription) GetCreator() string

func (*Subscription) GetDurationBought

func (m *Subscription) GetDurationBought() uint64

func (*Subscription) GetDurationLeft

func (m *Subscription) GetDurationLeft() uint64

func (*Subscription) GetDurationTotal

func (m *Subscription) GetDurationTotal() uint64

func (*Subscription) GetMonthCuLeft

func (m *Subscription) GetMonthCuLeft() uint64

func (*Subscription) GetMonthCuTotal

func (m *Subscription) GetMonthCuTotal() uint64

func (*Subscription) GetMonthExpiryTime

func (m *Subscription) GetMonthExpiryTime() uint64

func (*Subscription) GetPlanBlock

func (m *Subscription) GetPlanBlock() uint64

func (*Subscription) GetPlanIndex

func (m *Subscription) GetPlanIndex() string

func (*Subscription) Marshal

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

func (*Subscription) MarshalTo

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

func (*Subscription) MarshalToSizedBuffer

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

func (*Subscription) ProtoMessage

func (*Subscription) ProtoMessage()

func (*Subscription) Reset

func (m *Subscription) Reset()

func (*Subscription) Size

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

func (*Subscription) String

func (m *Subscription) String() string

func (*Subscription) Unmarshal

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

func (*Subscription) XXX_DiscardUnknown

func (m *Subscription) XXX_DiscardUnknown()

func (*Subscription) XXX_Marshal

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

func (*Subscription) XXX_Merge

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

func (*Subscription) XXX_Size

func (m *Subscription) XXX_Size() int

func (*Subscription) XXX_Unmarshal

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Current

func (*UnimplementedQueryServer) List

func (*UnimplementedQueryServer) ListProjects

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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