mms

package
v0.9.197 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_SERVICE_DOMAIN = "mms." + bce.DEFAULT_REGION + "." + bce.DEFAULT_DOMAIN
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*bce.BceClient
}

Client of MMS service

func NewClient

func NewClient(ak, sk, endpoint string) (*Client, error)

NewClient make the MMS service client

func (*Client) DeleteImage

func (c *Client) DeleteImage(lib, source string) (*api.BaseResponse, error)

DeleteImage - delete a image PARAMS:

  • lib: image library name
  • source: image source

RETURN:

  • BaseResponse: the result of delete a image
  • error: nil if success otherwise the specific error

func (*Client) DeleteImageById added in v0.9.109

func (c *Client) DeleteImageById(libId, mediaId string) (*api.BaseResponse, error)

DeleteImageById - delete a image PARAMS:

  • libId: image library id
  • mediaId: image id

RETURN:

  • BaseResponse: the result of delete a image
  • error: nil if success otherwise the specific error

func (*Client) DeleteVideo

func (c *Client) DeleteVideo(lib, source string) (*api.BaseResponse, error)

DeleteVideo - delete a video PARAMS:

  • lib: vedio library name
  • source: vedio source

RETURN:

  • BaseResponse: the result of delete video
  • error: nil if success otherwise the specific error

func (*Client) DeleteVideoById added in v0.9.109

func (c *Client) DeleteVideoById(libId, mediaId string) (*api.BaseResponse, error)

DeleteVideoById - delete a video PARAMS:

  • libId: video library id
  • mediaId: video id

RETURN:

  • BaseResponse: the result of delete video
  • error: nil if success otherwise the specific error

func (*Client) GetInsertVideoResult

func (c *Client) GetInsertVideoResult(lib, source string) (*api.BaseResponse, error)

GetInsertVideoResult - get video insert result and video recognize task result PARAMS:

  • lib: vedio library name
  • source: vedio source

RETURN:

  • BaseResponse: the result of get result
  • error: nil if success otherwise the specific error

func (*Client) GetInsertVideoResultById added in v0.9.109

func (c *Client) GetInsertVideoResultById(libId, mediaId string) (*api.BaseResponse, error)

GetInsertVideoResultById - get video insert result and video recognize task result by id PARAMS:

  • libId: vedio library id
  • mediaId: vedio id

RETURN:

  • BaseResponse: the result of get result
  • error: nil if success otherwise the specific error

func (*Client) GetSearchVideoByVideoResult

func (c *Client) GetSearchVideoByVideoResult(lib, source string) (*api.SearchTaskResultResponse, error)

GetSearchVideoByVideoResult - get result of searching videos by video PARAMS:

  • lib: video library name
  • source: video source

RETURN:

  • BaseResponse: the result of searching videos by video
  • error: nil if success otherwise the specific error

func (*Client) GetSearchVideoByVideoResultById added in v0.9.109

func (c *Client) GetSearchVideoByVideoResultById(lib, taskId string) (*api.SearchTaskResultResponse, error)

GetSearchVideoByVideoResultById - get result of searching videos by taskId PARAMS:

  • lib: video library name
  • taskId: search task id

RETURN:

  • BaseResponse: the result of searching videos by video
  • error: nil if success otherwise the specific error

func (*Client) InsertImage

func (c *Client) InsertImage(lib string, args *api.BaseRequest) (*api.BaseResponse, error)

InsertImage - insert a image PARAMS:

  • lib: image library name
  • args: image source and description

RETURN:

  • BaseResponse: the result of insert a image
  • error: nil if success otherwise the specific error

func (*Client) InsertVideo

func (c *Client) InsertVideo(lib string, args *api.BaseRequest) (*api.BaseResponse, error)

InsertVideo - insert a video, and create a video recognize task PARAMS:

  • lib: vedio library name
  • args: vedio source and description

RETURN:

  • BaseResponse: the result of insert a video
  • error: nil if success otherwise the specific error

func (*Client) SearchImageByImage

func (c *Client) SearchImageByImage(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)

SearchImageByImage - search images by a image PARAMS:

  • lib: image library name
  • args: image source and description

RETURN:

  • BaseResponse: the result of search
  • error: nil if success otherwise the specific error

func (*Client) SearchVideoByImage

func (c *Client) SearchVideoByImage(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)

SearchVideoByImage - search videos by a image PARAMS:

  • lib: video library name
  • args: image source and description

RETURN:

  • BaseResponse: the result of search
  • error: nil if success otherwise the specific error

func (*Client) SearchVideoByVideo

func (c *Client) SearchVideoByVideo(lib string, args *api.BaseRequest) (*api.SearchTaskResultResponse, error)

SearchVideoByVideo - create a search videos by a video task PARAMS:

  • lib: video library name
  • args: video source and description

RETURN:

  • BaseResponse: search task info
  • error: nil if success otherwise the specific error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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