Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrSwitch ¶
type AttrSwitch struct {
Var string
Attrs []*AttrSwitchSmt
ProtoVar string
}
type AttrSwitchSmt ¶
type AttrSwitchSmt struct {
// EnumValue is the name of enum value string. (eg SAI_HOSTIF_ATTR_OPER_STATUS).
EnumValue string
// ProtoFunc is the name of the protobuf getter or setter (eg set_obj_id() or obj_id()).
ProtoFunc string
// Args are the arguments to pass the ProtoFunc as comma seperated values.
Args string
// Var is the name of the variable that is used for assignment.
Var string
// ConvertFunc is a name the function that is called before assignment to var.
ConvertFunc string
// ConvertFuncArgs are the extra arguments to pass the convert func, in addition to ProtoFunc.
ConvertFuncArgs string
// CopyConvertFunc is the name of func to use. If set, then this function is used instead assignment.
// For example, to copy a string, set this strncpy, since char arrays can't assigned be directly.
CopyConvertFunc string
// ConvertFuncArgs are the extra arguments to pass the copy convert func.
CopyConvertFuncArgs string
// CustomText is any text to include for in the case.
CustomText string
}
Click to show internal directories.
Click to hide internal directories.