Documentation
¶
Index ¶
- Constants
- func GetResponseResultMap(resp *http.Response) (result map[string]any, err error)
- func GetResponseResultTextAndMap(resp *http.Response) (body []byte, result map[string]any, err error)
- func GetResponseText(resp *http.Response) (string, error)
- func TryAssert(count int, interval time.Duration, tryFunc func() bool) bool
- type SDK
- func (sdk *SDK) CreateConf(confpath string, conf map[string]any) (resp *http.Response, err error)
- func (sdk *SDK) CreateRule(ruleJson string) (resp *http.Response, err error)
- func (sdk *SDK) CreateStream(streamJson string) (resp *http.Response, err error)
- func (sdk *SDK) Delete(command string) (resp *http.Response, err error)
- func (sdk *SDK) DeleteRule(name string) (resp *http.Response, err error)
- func (sdk *SDK) DeleteStream(name string) (resp *http.Response, err error)
- func (sdk *SDK) Get(command string) (resp *http.Response, err error)
- func (sdk *SDK) GetRuleStatus(name string) (map[string]any, error)
- func (sdk *SDK) Post(command string, body string) (resp *http.Response, err error)
- func (sdk *SDK) PostWithParam(command string, param string, body string) (resp *http.Response, err error)
- func (sdk *SDK) RestartRule(ruleId string) (resp *http.Response, err error)
- func (sdk *SDK) StopRule(ruleId string) (resp *http.Response, err error)
- func (sdk *SDK) UpdateRule(name, ruleJson string) (resp *http.Response, err error)
Constants ¶
View Source
const ContentTypeJson = "application/json"
Variables ¶
This section is empty.
Functions ¶
func GetResponseResultMap ¶
Types ¶
type SDK ¶
type SDK struct {
// contains filtered or unexported fields
}
func (*SDK) CreateConf ¶
func (*SDK) CreateRule ¶
func (*SDK) CreateStream ¶
func (*SDK) DeleteStream ¶
func (*SDK) PostWithParam ¶
func (*SDK) RestartRule ¶
Click to show internal directories.
Click to hide internal directories.