Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityConf ¶
type ActivityConf struct {
tableau.ActivityConf
}
func (*ActivityConf) CheckCompatibility ¶
func (x *ActivityConf) CheckCompatibility(hub, newHub *tableau.Hub) error
type ChapterConf ¶
type ChapterConf struct {
tableau.ChapterConf
}
func (*ChapterConf) CheckCompatibility ¶
func (x *ChapterConf) CheckCompatibility(hub, newHub *tableau.Hub) error
type Option ¶
type Option func(*Options)
Option is the functional option type.
func BreakFailedCount ¶
BreakFailedCount sets BreakFailedCount option.
func ProtoPackage ¶
ProtoPackage sets ProtoPackage option.
func SkipLoadErrors ¶
func SkipLoadErrors() Option
SkipLoadErrors sets SkipLoadErrors option as true.
func WithLoadOptions ¶ added in v0.2.0
WithLoadOptions sets options for messager loading.
type Options ¶
type Options struct {
// Break check loop if failed count is equal to or more than BreakFailedCount.
//
// Default: 1.
BreakFailedCount int
// The proto package name of .proto files.
//
// Default: "protoconf".
ProtoPackage string
// Whether to ignore errors during loading.
//
// Errors may occur during loading old config files when do compatibility
// check. For example, some new worksheets you recently add are not
// existed, or proto schema are not compatible, just ignore the loading
// errors (then these proto message objects are nil after loading), so that
// compatibility check can continue to run.
//
// Default: false.
SkipLoadErrors bool
// Options for messager loading.
//
// Default: nil.
LoadOptions []load.Option
}
func ParseOptions ¶
ParseOptions parses functional options and merge them to default Options.
Click to show internal directories.
Click to hide internal directories.