Versions in this module Expand all Collapse all v1 v1.5.0 Oct 23, 2016 Changes in this version + var ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + func GetValueFromIntOrPercent(intOrPercent *IntOrString, total int, roundUp bool) (int, error) + type IntOrString struct + IntVal int32 + StrVal string + Type Type + func FromInt(val int) IntOrString + func FromString(val string) IntOrString + func (*IntOrString) Descriptor() ([]byte, []int) + func (*IntOrString) ProtoMessage() + func (_ IntOrString) OpenAPIDefinition() common.OpenAPIDefinition + func (intstr *IntOrString) Fuzz(c fuzz.Continue) + func (intstr *IntOrString) IntValue() int + func (intstr *IntOrString) String() string + func (intstr *IntOrString) UnmarshalJSON(value []byte) error + func (intstr IntOrString) MarshalJSON() ([]byte, error) + func (m *IntOrString) Marshal() (data []byte, err error) + func (m *IntOrString) MarshalTo(data []byte) (int, error) + func (m *IntOrString) Reset() + func (m *IntOrString) Size() (n int) + func (m *IntOrString) Unmarshal(data []byte) error + type Type int + const Int + const String