core

package
v0.0.0-...-6347526 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpPushClient

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

func NewHttpClient

func NewHttpClient(c *config.Config) (*HttpPushClient, 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 (*HttpPushClient) SendMessage

func (c *HttpPushClient) 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