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 GetCommonHttpClient() *http.Client
- func GetFaaSInfraPathFile() string
- func GetFaaSInfraPathMongodb() string
- func GetFaaSInfraPathRedis() string
- func Update(ctx context.Context, param interface{}) error
Constants ¶
View Source
const ( 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 ¶
func DoRequestFile ¶
func DoRequestRedis ¶
func GetCommonHttpClient ¶
func GetFaaSInfraPathFile ¶
func GetFaaSInfraPathFile() string
func GetFaaSInfraPathMongodb ¶
func GetFaaSInfraPathMongodb() string
func GetFaaSInfraPathRedis ¶
func GetFaaSInfraPathRedis() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.