Documentation ¶
Index ¶
- type Config
- type Instance
- type Policy
- type Policy_Timeout
- func (*Policy_Timeout) Descriptor() ([]byte, []int)
- func (m *Policy_Timeout) GetConnectionIdle() *Second
- func (m *Policy_Timeout) GetDownlinkOnly() *Second
- func (m *Policy_Timeout) GetHandshake() *Second
- func (m *Policy_Timeout) GetUplinkOnly() *Second
- func (*Policy_Timeout) ProtoMessage()
- func (m *Policy_Timeout) Reset()
- func (m *Policy_Timeout) String() string
- type Second
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance is an instance of Policy manager.
func New ¶
New creates new Policy manager instance.
func (*Instance) ForLevel ¶
ForLevel implements core.PolicyManager.
type Policy ¶
type Policy struct {
Timeout *Policy_Timeout `protobuf:"bytes,1,opt,name=timeout" json:"timeout,omitempty"`
}
func (*Policy) GetTimeout ¶
func (m *Policy) GetTimeout() *Policy_Timeout
func (*Policy) OverrideWith ¶
OverrideWith overrides current Policy with another one.
type Policy_Timeout ¶
type Policy_Timeout struct { Handshake *Second `protobuf:"bytes,1,opt,name=handshake" json:"handshake,omitempty"` ConnectionIdle *Second `protobuf:"bytes,2,opt,name=connection_idle,json=connectionIdle" json:"connection_idle,omitempty"` UplinkOnly *Second `protobuf:"bytes,3,opt,name=uplink_only,json=uplinkOnly" json:"uplink_only,omitempty"` DownlinkOnly *Second `protobuf:"bytes,4,opt,name=downlink_only,json=downlinkOnly" json:"downlink_only,omitempty"` }
Timeout is a message for timeout settings in various stages, in seconds.
func (*Policy_Timeout) Descriptor ¶
func (*Policy_Timeout) Descriptor() ([]byte, []int)
func (*Policy_Timeout) GetConnectionIdle ¶
func (m *Policy_Timeout) GetConnectionIdle() *Second
func (*Policy_Timeout) GetDownlinkOnly ¶
func (m *Policy_Timeout) GetDownlinkOnly() *Second
func (*Policy_Timeout) GetHandshake ¶
func (m *Policy_Timeout) GetHandshake() *Second
func (*Policy_Timeout) GetUplinkOnly ¶
func (m *Policy_Timeout) GetUplinkOnly() *Second
func (*Policy_Timeout) ProtoMessage ¶
func (*Policy_Timeout) ProtoMessage()
func (*Policy_Timeout) Reset ¶
func (m *Policy_Timeout) Reset()
func (*Policy_Timeout) String ¶
func (m *Policy_Timeout) String() string
Click to show internal directories.
Click to hide internal directories.