dt

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XID      = "x-dbpack-xid"
	BranchID = "x-dbpack-branch-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpFilterConfig

type HttpFilterConfig struct {
	ApplicationID string `yaml:"appid" json:"appid"`

	TransactionInfos []*TransactionInfo `yaml:"transaction_infos" json:"transaction_infos"`
	TCCResourceInfos []*TccResourceInfo `yaml:"tcc_resource_infos" json:"tcc_resource_infos"`
}

HttpFilterConfig http filter config

type MatchType added in v0.1.2

type MatchType byte
const (
	Exact MatchType = iota
	Prefix
	Regex
)

func (*MatchType) UnmarshalText added in v0.1.2

func (t *MatchType) UnmarshalText(text []byte) error

type TccResourceInfo added in v0.1.2

type TccResourceInfo struct {
	PrepareRequestPath  string `yaml:"prepare_request_path" json:"prepare_request_path"`
	CommitRequestPath   string `yaml:"commit_request_path" json:"commit_request_path"`
	RollbackRequestPath string `yaml:"rollback_request_path" json:"rollback_request_path"`
}

TccResourceInfo tcc resource config

type TransactionInfo

type TransactionInfo struct {
	RequestPath string    `yaml:"request_path" json:"request_path"`
	Timeout     int32     `yaml:"timeout" json:"timeout"`
	MatchType   MatchType `yaml:"match_type" json:"match_type"`
}

TransactionInfo transaction info config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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