Documentation ¶
Index ¶
- func CheckInRange(prop *tableaupb.FieldProp, fd protoreflect.FieldDescriptor, ...) error
- func CheckMapKeySequence(prop *tableaupb.FieldProp, kind protoreflect.Kind, mapkey protoreflect.MapKey, ...) bool
- func CheckPresence(prop *tableaupb.FieldProp, present bool) error
- func GetSize(prop *tableaupb.FieldProp, detectedSize int) int
- func HasUnique(prop *tableaupb.FieldProp) bool
- func InReferredSpace(prop *tableaupb.FieldProp, cellData string, input *Input) (bool, error)
- func IsFixed(prop *tableaupb.FieldProp) bool
- func RequireUnique(prop *tableaupb.FieldProp) bool
- type Input
- type ReferDesc
- type ReferredCache
- type ValueSpace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInRange ¶ added in v0.10.6
func CheckInRange(prop *tableaupb.FieldProp, fd protoreflect.FieldDescriptor, value protoreflect.Value, present bool) error
func CheckMapKeySequence ¶ added in v0.9.17
func CheckMapKeySequence(prop *tableaupb.FieldProp, kind protoreflect.Kind, mapkey protoreflect.MapKey, prefMap protoreflect.Map) bool
func CheckPresence ¶ added in v0.11.0
func GetSize ¶ added in v0.10.6
GetSize returns the specified size of horizontal list/map. detectedSize is the scanned size of name row.
func InReferredSpace ¶ added in v0.10.6
InReferredSpace checks whether the cell data is at least in one of the other sheets' column value space (aka message's field value space). prop.Refer is comma separated, e.g.: "SheetName(SheetAlias).ColumnName[,SheetName(SheetAlias).ColumnName]..."
func RequireUnique ¶ added in v0.11.0
Types ¶
type ReferDesc ¶ added in v0.11.0
type ReferDesc struct { Sheet string // sheet name in workbook. Alias string // sheet alias: if set, used as protobuf message name. Column string // sheet column name in name row. }
func (*ReferDesc) GetMessageName ¶ added in v0.11.0
type ReferredCache ¶ added in v0.10.6
func NewReferredCache ¶ added in v0.10.6
func NewReferredCache() *ReferredCache
func (*ReferredCache) Exists ¶ added in v0.10.6
func (r *ReferredCache) Exists(refer string) bool
func (*ReferredCache) ExistsValue ¶ added in v0.10.6
func (r *ReferredCache) ExistsValue(refer string, value string, loadFunc loadValueSpaceFunc) (bool, error)
func (*ReferredCache) Put ¶ added in v0.10.6
func (r *ReferredCache) Put(refer string, valueSpace *ValueSpace)
type ValueSpace ¶ added in v0.10.6
func NewValueSpace ¶ added in v0.10.6
func NewValueSpace() *ValueSpace
Click to show internal directories.
Click to hide internal directories.