Versions in this module Expand all Collapse all v1 v1.8.16 Jul 1, 2024 v1.8.11 Jul 1, 2024 Changes in this version + var File_app_policy_config_proto protoreflect.FileDescriptor + type Config struct + Level map[uint32]*Policy + System *SystemPolicy + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (x *Config) GetLevel() map[uint32]*Policy + func (x *Config) GetSystem() *SystemPolicy + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type Instance struct + func New(ctx context.Context, config *Config) (*Instance, error) + func (*Instance) Type() interface{} + func (m *Instance) Close() error + func (m *Instance) ForLevel(level uint32) policy.Session + func (m *Instance) ForSystem() policy.System + func (m *Instance) Start() error + type Policy struct + Buffer *Policy_Buffer + Stats *Policy_Stats + Timeout *Policy_Timeout + func (*Policy) Descriptor() ([]byte, []int) + func (*Policy) ProtoMessage() + func (p *Policy) ToCorePolicy() policy.Session + func (x *Policy) GetBuffer() *Policy_Buffer + func (x *Policy) GetStats() *Policy_Stats + func (x *Policy) GetTimeout() *Policy_Timeout + func (x *Policy) ProtoReflect() protoreflect.Message + func (x *Policy) Reset() + func (x *Policy) String() string + type Policy_Buffer struct + Connection int32 + func (*Policy_Buffer) Descriptor() ([]byte, []int) + func (*Policy_Buffer) ProtoMessage() + func (x *Policy_Buffer) GetConnection() int32 + func (x *Policy_Buffer) ProtoReflect() protoreflect.Message + func (x *Policy_Buffer) Reset() + func (x *Policy_Buffer) String() string + type Policy_Stats struct + UserDownlink bool + UserUplink bool + func (*Policy_Stats) Descriptor() ([]byte, []int) + func (*Policy_Stats) ProtoMessage() + func (x *Policy_Stats) GetUserDownlink() bool + func (x *Policy_Stats) GetUserUplink() bool + func (x *Policy_Stats) ProtoReflect() protoreflect.Message + func (x *Policy_Stats) Reset() + func (x *Policy_Stats) String() string + type Policy_Timeout struct + ConnectionIdle *Second + DownlinkOnly *Second + Handshake *Second + UplinkOnly *Second + func (*Policy_Timeout) Descriptor() ([]byte, []int) + func (*Policy_Timeout) ProtoMessage() + func (x *Policy_Timeout) GetConnectionIdle() *Second + func (x *Policy_Timeout) GetDownlinkOnly() *Second + func (x *Policy_Timeout) GetHandshake() *Second + func (x *Policy_Timeout) GetUplinkOnly() *Second + func (x *Policy_Timeout) ProtoReflect() protoreflect.Message + func (x *Policy_Timeout) Reset() + func (x *Policy_Timeout) String() string + type Second struct + Value uint32 + func (*Second) Descriptor() ([]byte, []int) + func (*Second) ProtoMessage() + func (s *Second) Duration() time.Duration + func (x *Second) GetValue() uint32 + func (x *Second) ProtoReflect() protoreflect.Message + func (x *Second) Reset() + func (x *Second) String() string + type SystemPolicy struct + Stats *SystemPolicy_Stats + func (*SystemPolicy) Descriptor() ([]byte, []int) + func (*SystemPolicy) ProtoMessage() + func (p *SystemPolicy) ToCorePolicy() policy.System + func (x *SystemPolicy) GetStats() *SystemPolicy_Stats + func (x *SystemPolicy) ProtoReflect() protoreflect.Message + func (x *SystemPolicy) Reset() + func (x *SystemPolicy) String() string + type SystemPolicy_Stats struct + InboundDownlink bool + InboundUplink bool + OutboundDownlink bool + OutboundUplink bool + func (*SystemPolicy_Stats) Descriptor() ([]byte, []int) + func (*SystemPolicy_Stats) ProtoMessage() + func (x *SystemPolicy_Stats) GetInboundDownlink() bool + func (x *SystemPolicy_Stats) GetInboundUplink() bool + func (x *SystemPolicy_Stats) GetOutboundDownlink() bool + func (x *SystemPolicy_Stats) GetOutboundUplink() bool + func (x *SystemPolicy_Stats) ProtoReflect() protoreflect.Message + func (x *SystemPolicy_Stats) Reset() + func (x *SystemPolicy_Stats) String() string