prop

package
v0.10.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInRange added in v0.10.6

func CheckKeyUnique added in v0.10.6

func CheckKeyUnique(prop *tableaupb.FieldProp, key string, existed 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 GetSize added in v0.10.6

func GetSize(prop *tableaupb.FieldProp, detectedSize int) int

GetSize returns the specified size of horizontal list/map. detectedSize is the scanned size of name row.

func InReferredSpace added in v0.10.6

func InReferredSpace(refer string, cellData string, input *Input) (bool, error)

func IsFixed added in v0.10.2

func IsFixed(prop *tableaupb.FieldProp) bool

IsFixed check the horizontal list/map is fixed size or not.

Types

type Input added in v0.10.6

type Input struct {
	ProtoPackage   string
	InputDir       string
	SubdirRewrites map[string]string
	PRFiles        *protoregistry.Files
}

type ReferInfo added in v0.10.6

type ReferInfo 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 (*ReferInfo) GetMessageName added in v0.10.6

func (r *ReferInfo) GetMessageName() string

type ReferredCache added in v0.10.6

type ReferredCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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

type ValueSpace struct {
	*hashset.Set
}

func NewValueSpace added in v0.10.6

func NewValueSpace() *ValueSpace

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL