fvt

package
v2.4.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ContentTypeJson = "application/json"

Variables

This section is empty.

Functions

func GetResponseResultMap

func GetResponseResultMap(resp *http.Response) (result map[string]any, err error)

func GetResponseResultTextAndMap

func GetResponseResultTextAndMap(resp *http.Response) (body []byte, result map[string]any, err error)

func GetResponseText

func GetResponseText(resp *http.Response) (string, error)

func TryAssert

func TryAssert(count int, interval time.Duration, tryFunc func() bool) bool

Types

type SDK

type SDK struct {
	// contains filtered or unexported fields
}

func NewSdk

func NewSdk(baseUrl string) (*SDK, error)

func (*SDK) AddRuleTags added in v2.2.0

func (sdk *SDK) AddRuleTags(name string, tags []string) (resp *http.Response, err error)

func (*SDK) BatchRequest added in v2.2.0

func (sdk *SDK) BatchRequest(reqs []*server.EachRequest) ([]*server.EachResponse, error)

func (*SDK) CreateConf

func (sdk *SDK) CreateConf(confpath string, conf map[string]any) (resp *http.Response, err error)

func (*SDK) CreateRule

func (sdk *SDK) CreateRule(ruleJson string) (resp *http.Response, err error)

func (*SDK) CreateStream

func (sdk *SDK) CreateStream(streamJson string) (resp *http.Response, err error)

func (*SDK) CreateTable added in v2.3.0

func (sdk *SDK) CreateTable(tableJson string) (resp *http.Response, err error)

func (*SDK) Delete

func (sdk *SDK) Delete(command string) (resp *http.Response, err error)

func (*SDK) DeleteRule

func (sdk *SDK) DeleteRule(name string) (resp *http.Response, err error)

func (*SDK) DeleteStream

func (sdk *SDK) DeleteStream(name string) (resp *http.Response, err error)

func (*SDK) DeleteTables added in v2.3.0

func (sdk *SDK) DeleteTables(name string) (resp *http.Response, err error)

func (*SDK) Get

func (sdk *SDK) Get(command string) (resp *http.Response, err error)

func (*SDK) GetRuleSchema added in v2.3.0

func (sdk *SDK) GetRuleSchema(name string) (map[string]any, error)

func (*SDK) GetRuleStatus

func (sdk *SDK) GetRuleStatus(name string) (map[string]any, error)

func (*SDK) GetRulesByTags added in v2.2.0

func (sdk *SDK) GetRulesByTags(tags []string) (list []string, err error)

func (*SDK) GetStreamSchema added in v2.3.0

func (sdk *SDK) GetStreamSchema(name string) (map[string]any, error)

func (*SDK) Import added in v2.1.2

func (sdk *SDK) Import(content string) (resp *http.Response, err error)

func (*SDK) Post

func (sdk *SDK) Post(command string, body string) (resp *http.Response, err error)

func (*SDK) PostWithParam

func (sdk *SDK) PostWithParam(command string, param string, body string) (resp *http.Response, err error)

func (*SDK) RemoveRuleTags added in v2.2.0

func (sdk *SDK) RemoveRuleTags(name string, keys []string) (resp *http.Response, err error)

func (*SDK) Req added in v2.1.3

func (sdk *SDK) Req(command string, method string, body string) (resp *http.Response, err error)

func (*SDK) ResetRuleTags added in v2.2.1

func (sdk *SDK) ResetRuleTags(name string, tags []string) (resp *http.Response, err error)

func (*SDK) RestartRule

func (sdk *SDK) RestartRule(ruleId string) (resp *http.Response, err error)

func (*SDK) StartRule added in v2.2.2

func (sdk *SDK) StartRule(ruleId string) (resp *http.Response, err error)

func (*SDK) StopRule added in v2.0.5

func (sdk *SDK) StopRule(ruleId string) (resp *http.Response, err error)

func (*SDK) UpdateRule added in v2.0.5

func (sdk *SDK) UpdateRule(name, ruleJson string) (resp *http.Response, err error)

Jump to

Keyboard shortcuts

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