v1

package
v12.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBandwidth        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBandwidth          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBandwidth = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Status_name = map[int32]string{
	0: "STATUS_UNSPECIFIED",
	1: "STATUS_ACTIVE",
	2: "STATUS_INACTIVE_PENDING",
	3: "STATUS_INACTIVE",
}
View Source
var Status_value = map[string]int32{
	"STATUS_UNSPECIFIED":      0,
	"STATUS_ACTIVE":           1,
	"STATUS_INACTIVE_PENDING": 2,
	"STATUS_INACTIVE":         3,
}

Functions

This section is empty.

Types

type Bandwidth

type Bandwidth struct {
	Upload   cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=upload,proto3,customtype=cosmossdk.io/math.Int" json:"upload"`
	Download cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=download,proto3,customtype=cosmossdk.io/math.Int" json:"download"`
}

func NewBandwidth

func NewBandwidth(upload, download sdkmath.Int) Bandwidth

func NewBandwidthFromInt64

func NewBandwidthFromInt64(upload, download int64) Bandwidth

func (Bandwidth) Add

func (b Bandwidth) Add(v Bandwidth) Bandwidth

func (Bandwidth) CeilTo

func (b Bandwidth) CeilTo(pre sdkmath.Int) Bandwidth

func (*Bandwidth) Descriptor

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

func (Bandwidth) IsAllLTE

func (b Bandwidth) IsAllLTE(v Bandwidth) bool

func (Bandwidth) IsAllPositive

func (b Bandwidth) IsAllPositive() bool

func (Bandwidth) IsAllZero

func (b Bandwidth) IsAllZero() bool

func (Bandwidth) IsAnyGT

func (b Bandwidth) IsAnyGT(v Bandwidth) bool

func (Bandwidth) IsAnyNegative

func (b Bandwidth) IsAnyNegative() bool

func (Bandwidth) IsAnyNil

func (b Bandwidth) IsAnyNil() bool

func (Bandwidth) IsAnyZero

func (b Bandwidth) IsAnyZero() bool

func (*Bandwidth) Marshal

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

func (*Bandwidth) MarshalTo

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

func (*Bandwidth) MarshalToSizedBuffer

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

func (*Bandwidth) ProtoMessage

func (*Bandwidth) ProtoMessage()

func (*Bandwidth) Reset

func (m *Bandwidth) Reset()

func (*Bandwidth) Size

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

func (*Bandwidth) String

func (m *Bandwidth) String() string

func (Bandwidth) Sub

func (b Bandwidth) Sub(v Bandwidth) Bandwidth

func (Bandwidth) Sum

func (b Bandwidth) Sum() sdkmath.Int

func (*Bandwidth) Unmarshal

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

func (*Bandwidth) XXX_DiscardUnknown

func (m *Bandwidth) XXX_DiscardUnknown()

func (*Bandwidth) XXX_Marshal

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

func (*Bandwidth) XXX_Merge

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

func (*Bandwidth) XXX_Size

func (m *Bandwidth) XXX_Size() int

func (*Bandwidth) XXX_Unmarshal

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

type Status

type Status int32
const (
	StatusUnspecified     Status = 0
	StatusActive          Status = 1
	StatusInactivePending Status = 2
	StatusInactive        Status = 3
)

func StatusFromString

func StatusFromString(s string) Status

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) Equal

func (s Status) Equal(v Status) bool

func (Status) IsOneOf

func (s Status) IsOneOf(items ...Status) bool

func (Status) IsValid

func (s Status) IsValid() bool

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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