Documentation ¶
Index ¶
- Constants
- func BatchCreate(ctx context.Context, param interface{}) ([]primitive.ObjectID, error)
- func Count(ctx context.Context, param interface{}) (int64, error)
- func Create(ctx context.Context, param interface{}) (*structs.RecordOnlyId, error)
- func Delete(ctx context.Context, param interface{}) error
- func Distinct(ctx context.Context, param interface{}, results interface{}) error
- func DoRequestFile(ctx context.Context, contentType string, body *bytes.Buffer) ([]byte, error)
- func DoRequestRedis(ctx context.Context, param interface{}) ([]byte, map[string]interface{}, error)
- func Find(ctx context.Context, param, results interface{}) error
- func FindOne(ctx context.Context, param, result interface{}) error
- func GetFaaSInfraPathFile() string
- func GetFaaSInfraPathMongodb() string
- func GetFaaSInfraPathRedis() string
- func GetInstance() request.IRequestFaaSInfra
- func GetPathInvokeFunction(namespace string) string
- func GetPathInvokeFunctionAsync(namespace string) string
- func GetPathInvokeFunctionDistributed(namespace string) string
- func ReadFromURL(ctx context.Context, targetURL string) ([]byte, error)
- func Update(ctx context.Context, param interface{}) error
- func UploadWithContent(ctx context.Context, name string, content []byte, option *structs.Option) (*structs.UploadResult, error)
Constants ¶
View Source
const ( PathInvokeFunction = "/cloudfunction/v1/namespaces/:namespace/function/invokeSync" PathInvokeFunctionAsync = "/faasAsyncTask/v1/namespaces/:namespace/asyncTask/CreateAsyncTask" PathInvokeFunctionDistributed = "/distributedTask/v1/namespaces/:namespace/create" PathFaaSInfraPathMongodb = "/resource/v3/namespaces/:namespace/db" PathFaaSInfraPathRedis = "/resource/v2/namespaces/:namespace/cache" FaaSInfraPathFile = "/resource/v2/namespaces/:namespace/file" )
Variables ¶
This section is empty.
Functions ¶
func BatchCreate ¶ added in v0.0.10
func Create ¶ added in v0.0.10
func Create(ctx context.Context, param interface{}) (*structs.RecordOnlyId, error)
func DoRequestFile ¶ added in v0.0.10
func DoRequestRedis ¶ added in v0.0.10
func GetFaaSInfraPathFile ¶ added in v0.0.10
func GetFaaSInfraPathFile() string
func GetFaaSInfraPathMongodb ¶ added in v0.0.10
func GetFaaSInfraPathMongodb() string
func GetFaaSInfraPathRedis ¶ added in v0.0.10
func GetFaaSInfraPathRedis() string
func GetInstance ¶
func GetInstance() request.IRequestFaaSInfra
func GetPathInvokeFunction ¶
func ReadFromURL ¶ added in v0.0.10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.