gfsplimit

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthLimit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLimit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLimit = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type GfSpLimit

type GfSpLimit struct {
	Memory              int64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"`
	Tasks               int32 `protobuf:"varint,2,opt,name=tasks,proto3" json:"tasks,omitempty"`
	TasksHighPriority   int32 `protobuf:"varint,3,opt,name=tasks_high_priority,json=tasksHighPriority,proto3" json:"tasks_high_priority,omitempty"`
	TasksMediumPriority int32 `protobuf:"varint,4,opt,name=tasks_medium_priority,json=tasksMediumPriority,proto3" json:"tasks_medium_priority,omitempty"`
	TasksLowPriority    int32 `protobuf:"varint,5,opt,name=tasks_low_priority,json=tasksLowPriority,proto3" json:"tasks_low_priority,omitempty"`
	Fd                  int32 `protobuf:"varint,6,opt,name=fd,proto3" json:"fd,omitempty"`
	Conns               int32 `protobuf:"varint,7,opt,name=conns,proto3" json:"conns,omitempty"`
	ConnsInbound        int32 `protobuf:"varint,8,opt,name=conns_inbound,json=connsInbound,proto3" json:"conns_inbound,omitempty"`
	ConnsOutbound       int32 `protobuf:"varint,9,opt,name=conns_outbound,json=connsOutbound,proto3" json:"conns_outbound,omitempty"`
}

func (*GfSpLimit) Add

func (m *GfSpLimit) Add(x rcmgr.Limit)

func (*GfSpLimit) Descriptor

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

func (*GfSpLimit) Equal

func (m *GfSpLimit) Equal(x rcmgr.Limit) bool

func (*GfSpLimit) GetConnLimit

func (m *GfSpLimit) GetConnLimit(direction rcmgr.Direction) int

func (*GfSpLimit) GetConnTotalLimit

func (m *GfSpLimit) GetConnTotalLimit() int

func (*GfSpLimit) GetConns

func (m *GfSpLimit) GetConns() int32

func (*GfSpLimit) GetConnsInbound

func (m *GfSpLimit) GetConnsInbound() int32

func (*GfSpLimit) GetConnsOutbound

func (m *GfSpLimit) GetConnsOutbound() int32

func (*GfSpLimit) GetFDLimit

func (m *GfSpLimit) GetFDLimit() int

func (*GfSpLimit) GetFd

func (m *GfSpLimit) GetFd() int32

func (*GfSpLimit) GetMemory

func (m *GfSpLimit) GetMemory() int64

func (*GfSpLimit) GetMemoryLimit

func (m *GfSpLimit) GetMemoryLimit() int64

func (*GfSpLimit) GetTaskLimit

func (m *GfSpLimit) GetTaskLimit(priority rcmgr.ReserveTaskPriority) int

func (*GfSpLimit) GetTaskTotalLimit

func (m *GfSpLimit) GetTaskTotalLimit() int

func (*GfSpLimit) GetTasks

func (m *GfSpLimit) GetTasks() int32

func (*GfSpLimit) GetTasksHighPriority

func (m *GfSpLimit) GetTasksHighPriority() int32

func (*GfSpLimit) GetTasksLowPriority

func (m *GfSpLimit) GetTasksLowPriority() int32

func (*GfSpLimit) GetTasksMediumPriority

func (m *GfSpLimit) GetTasksMediumPriority() int32

func (*GfSpLimit) Marshal

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

func (*GfSpLimit) MarshalTo

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

func (*GfSpLimit) MarshalToSizedBuffer

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

func (*GfSpLimit) NotLess

func (m *GfSpLimit) NotLess(x rcmgr.Limit) bool

func (*GfSpLimit) ProtoMessage

func (*GfSpLimit) ProtoMessage()

func (*GfSpLimit) Reset

func (m *GfSpLimit) Reset()

func (*GfSpLimit) ScopeStat

func (m *GfSpLimit) ScopeStat() *rcmgr.ScopeStat

func (*GfSpLimit) Size

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

func (*GfSpLimit) String

func (m *GfSpLimit) String() string

func (*GfSpLimit) Sub

func (m *GfSpLimit) Sub(x rcmgr.Limit) bool

func (*GfSpLimit) Unmarshal

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

func (*GfSpLimit) XXX_DiscardUnknown

func (m *GfSpLimit) XXX_DiscardUnknown()

func (*GfSpLimit) XXX_Marshal

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

func (*GfSpLimit) XXX_Merge

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

func (*GfSpLimit) XXX_Size

func (m *GfSpLimit) XXX_Size() int

func (*GfSpLimit) XXX_Unmarshal

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

type GfSpLimiter

type GfSpLimiter struct {
	System       *GfSpLimit            `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"`
	Transient    *GfSpLimit            `protobuf:"bytes,2,opt,name=transient,proto3" json:"transient,omitempty"`
	ServiceLimit map[string]*GfSpLimit `` /* 185-byte string literal not displayed */
}

func (*GfSpLimiter) Descriptor

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

func (*GfSpLimiter) GetServiceLimit

func (m *GfSpLimiter) GetServiceLimit() map[string]*GfSpLimit

func (*GfSpLimiter) GetServiceLimits

func (m *GfSpLimiter) GetServiceLimits(svc string) rcmgr.Limit

func (*GfSpLimiter) GetSystem

func (m *GfSpLimiter) GetSystem() *GfSpLimit

func (*GfSpLimiter) GetSystemLimits

func (m *GfSpLimiter) GetSystemLimits() rcmgr.Limit

func (*GfSpLimiter) GetTransient

func (m *GfSpLimiter) GetTransient() *GfSpLimit

func (*GfSpLimiter) GetTransientLimits

func (m *GfSpLimiter) GetTransientLimits() rcmgr.Limit

func (*GfSpLimiter) Marshal

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

func (*GfSpLimiter) MarshalTo

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

func (*GfSpLimiter) MarshalToSizedBuffer

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

func (*GfSpLimiter) ProtoMessage

func (*GfSpLimiter) ProtoMessage()

func (*GfSpLimiter) Reset

func (m *GfSpLimiter) Reset()

func (*GfSpLimiter) Size

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

func (*GfSpLimiter) String

func (m *GfSpLimiter) String() string

func (*GfSpLimiter) Unmarshal

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

func (*GfSpLimiter) XXX_DiscardUnknown

func (m *GfSpLimiter) XXX_DiscardUnknown()

func (*GfSpLimiter) XXX_Marshal

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

func (*GfSpLimiter) XXX_Merge

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

func (*GfSpLimiter) XXX_Size

func (m *GfSpLimiter) XXX_Size() int

func (*GfSpLimiter) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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