libconfig

package
v0.0.0-...-d40265a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtnDef

type BtnDef struct {
	ID   int32  `bson:"id"`
	Name string `bson:"btn_name"`
}

type Config

type Config struct {
	Stages  []Stage  `bson:"funnel"`
	BtnDefs []BtnDef `bson:"btntime"`
}

type LibClientRepo

type LibClientRepo interface {
	Load(ctx context.Context, appUuid string) (*Config, error)
}

type Stage

type Stage struct {
	ID         int32     `bson:"id"`
	Type       StageType `bson:"trigger"`
	Transition string    `bson:"transition"`
	Regex      string    `bson:"regex"`
}

type StageType

type StageType int
const (
	OnURL StageType = iota + 1 // 0 will be droped by gRPC soooo +1
	OnClick
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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