// Size of buffer per connection, in bytes. -1 for unlimited buffer.
PerConnectionint32
}
// SystemStats contains stat policy settings on system level.
typeSystemStatsstruct{
// Whether or not to enable stat counter for uplink traffic in inbound handlers.
InboundUplinkbool
// Whether or not to enable stat counter for downlink traffic in inbound handlers.
InboundDownlinkbool
// Whether or not to enable stat counter for uplink traffic in outbound handlers.
OutboundUplinkbool
// Whether or not to enable stat counter for downlink traffic in outbound handlers.
OutboundDownlinkbool
}
// System contains policy settings at system level.
typeSystemstruct{
StatsSystemStats
BufferBuffer
}
// Session is session based settings for controlling Xray requests. It contains various settings (or limits) that may differ for different users in the context.
typeSessionstruct{
TimeoutsTimeout// Timeout settings
StatsStats
BufferBuffer
}
// Manager is a feature that provides Policy for the given user by its id or level.
//
// xray:api:stable
typeManagerinterface{
features.Feature
// ForLevel returns the Session policy for the given user level.
ForLevel(leveluint32)Session
// ForSystem returns the System policy for Xray system.
ForSystem()System
}
// ManagerType returns the type of Manager interface. Can be used to implement common.HasType.