core

package
v0.0.0-...-00e7b98 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMSClient

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

func NewHttpClient

func NewHttpClient(c *config.Config) (*HMSClient, error)

NewClient creates a instance of the huawei cloud common client It's contained in huawei cloud app and provides service through huawei cloud app

func (*HMSClient) SendMessage

func (c *HMSClient) SendMessage(ctx context.Context, msgRequest *model.MessageRequest) (*model.MessageResponse, error)

SendMessage sends a message to huawei cloud common One of Token, Topic and Condition fields must be invoked in message If validationOnly is set to true, the message can be verified by not sent to users

Jump to

Keyboard shortcuts

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