cloud

package
v2.9.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObsClient

type ObsClient struct {
	// contains filtered or unexported fields
}

func NewObsClient

func NewObsClient(cfg config.TecentOBS) *ObsClient

func (*ObsClient) CreateDir

func (c *ObsClient) CreateDir(key string) error

func (*ObsClient) Delete

func (c *ObsClient) Delete(key string) error

func (*ObsClient) DeleteDir

func (c *ObsClient) DeleteDir(key string) error

func (*ObsClient) FlushCdn added in v2.6.7

func (c *ObsClient) FlushCdn(cdnUrl, flushType string) error

func (*ObsClient) PutFile

func (c *ObsClient) PutFile(key, path string) error

func (*ObsClient) PutString

func (c *ObsClient) PutString(key, val string) error

type SmsClient added in v2.8.0

type SmsClient struct {
	SdkAppid string
	SignName string
	// contains filtered or unexported fields
}

func NewSmsClient added in v2.8.0

func NewSmsClient(cfg config.TecentSms) *SmsClient

func (*SmsClient) SendMsg added in v2.8.0

func (s *SmsClient) SendMsg(phone, tplId string, args []string) (*sms.SendSmsResponse, error)

type TiktokClient added in v2.9.3

type TiktokClient struct {
	// contains filtered or unexported fields
}

func NewTiktokClient added in v2.9.3

func NewTiktokClient(appId int32, secretKey string) *TiktokClient

func (*TiktokClient) GetSign added in v2.9.3

func (t *TiktokClient) GetSign(params map[string]any) string

func (*TiktokClient) VerifyUser added in v2.9.3

func (t *TiktokClient) VerifyUser(token string) (*VerifyUserResponse, error)

type VerifyUserResponse added in v2.9.3

type VerifyUserResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    struct {
		SdkOpenId string `json:"sdk_open_id"`
		Nickname  string `json:"nickname"`
		AvatarUrl string `json:"avatar_url"`
		AgeType   int32  `json:"age_type"`
	} `json:"data"`
	LogId string `json:"log_id"`
}

Jump to

Keyboard shortcuts

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