Documentation ¶
Overview ¶
Package sr_types contains generated bindings for API file sr_types.api.
Contents:
3 enums
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SrBehavior_name = map[uint8]string{ 1: "SR_BEHAVIOR_API_END", 2: "SR_BEHAVIOR_API_X", 3: "SR_BEHAVIOR_API_T", 4: "SR_BEHAVIOR_API_D_FIRST", 5: "SR_BEHAVIOR_API_DX2", 6: "SR_BEHAVIOR_API_DX6", 7: "SR_BEHAVIOR_API_DX4", 8: "SR_BEHAVIOR_API_DT6", 9: "SR_BEHAVIOR_API_DT4", 10: "SR_BEHAVIOR_API_LAST", } SrBehavior_value = map[string]uint8{ "SR_BEHAVIOR_API_END": 1, "SR_BEHAVIOR_API_X": 2, "SR_BEHAVIOR_API_T": 3, "SR_BEHAVIOR_API_D_FIRST": 4, "SR_BEHAVIOR_API_DX2": 5, "SR_BEHAVIOR_API_DX6": 6, "SR_BEHAVIOR_API_DX4": 7, "SR_BEHAVIOR_API_DT6": 8, "SR_BEHAVIOR_API_DT4": 9, "SR_BEHAVIOR_API_LAST": 10, } )
View Source
var ( SrPolicyOp_name = map[uint8]string{ 0: "SR_POLICY_OP_API_NONE", 1: "SR_POLICY_OP_API_ADD", 2: "SR_POLICY_OP_API_DEL", 3: "SR_POLICY_OP_API_MOD", } SrPolicyOp_value = map[string]uint8{ "SR_POLICY_OP_API_NONE": 0, "SR_POLICY_OP_API_ADD": 1, "SR_POLICY_OP_API_DEL": 2, "SR_POLICY_OP_API_MOD": 3, } )
View Source
var ( SrSteer_name = map[uint8]string{ 2: "SR_STEER_API_L2", 4: "SR_STEER_API_IPV4", 6: "SR_STEER_API_IPV6", } SrSteer_value = map[string]uint8{ "SR_STEER_API_L2": 2, "SR_STEER_API_IPV4": 4, "SR_STEER_API_IPV6": 6, } )
Functions ¶
This section is empty.
Types ¶
type SrBehavior ¶
type SrBehavior uint8
SrBehavior defines enum 'sr_behavior'.
const ( SR_BEHAVIOR_API_END SrBehavior = 1 SR_BEHAVIOR_API_X SrBehavior = 2 SR_BEHAVIOR_API_T SrBehavior = 3 SR_BEHAVIOR_API_D_FIRST SrBehavior = 4 SR_BEHAVIOR_API_DX2 SrBehavior = 5 SR_BEHAVIOR_API_DX6 SrBehavior = 6 SR_BEHAVIOR_API_DX4 SrBehavior = 7 SR_BEHAVIOR_API_DT6 SrBehavior = 8 SR_BEHAVIOR_API_DT4 SrBehavior = 9 SR_BEHAVIOR_API_LAST SrBehavior = 10 )
func (SrBehavior) String ¶
func (x SrBehavior) String() string
type SrPolicyOp ¶
type SrPolicyOp uint8
SrPolicyOp defines enum 'sr_policy_op'.
const ( SR_POLICY_OP_API_NONE SrPolicyOp = 0 SR_POLICY_OP_API_ADD SrPolicyOp = 1 SR_POLICY_OP_API_DEL SrPolicyOp = 2 SR_POLICY_OP_API_MOD SrPolicyOp = 3 )
func (SrPolicyOp) String ¶
func (x SrPolicyOp) String() string
Click to show internal directories.
Click to hide internal directories.