Files
decort-golang-sdk/interfaces/caller.go

16 lines
595 B
Go
Raw Normal View History

2022-10-03 16:56:47 +03:00
package interfaces
import "context"
2022-12-22 17:56:47 +03:00
// Interface for sending requests to platform
2022-10-03 16:56:47 +03:00
type Caller interface {
2022-12-22 17:56:47 +03:00
// DecortApiCall method for sending requests to the platform
2022-10-03 16:56:47 +03:00
DecortApiCall(ctx context.Context, method, url string, params interface{}) ([]byte, error)
2024-03-14 14:52:56 +03:00
2025-08-29 12:51:25 +03:00
// DecortApiCallCtype method for sending requests to the platform
DecortApiCallCtype(ctx context.Context, method, url, ctype string, params interface{}) ([]byte, error)
2024-03-14 14:52:56 +03:00
// DecortApiCallMP method for sending requests to the platform
DecortApiCallMP(ctx context.Context, method, url string, params interface{}) ([]byte, error)
2022-10-03 16:56:47 +03:00
}