jssdk

package
v2.0.1-beta15 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*kernel.BaseClient

	*kernel.InteractsWithCache

	TicketEndpoint string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(app *kernel.ApplicationInterface) (*Client, error)

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)

func (*Client) BuildConfig

func (comp *Client) BuildConfig(jsApiList []string, debug bool, beta bool, openTagList []string, url string) (interface{}, error)

func (*Client) ConfigSignature

func (comp *Client) ConfigSignature(url string, nonce string, timestamp int64) (*object.HashMap, error)

func (*Client) GetAppID

func (comp *Client) GetAppID() string

func (*Client) GetConfigArray

func (comp *Client) GetConfigArray(apis []string, debug bool, beta bool, openTagList []string, url string) (string, error)

func (*Client) GetTicket

func (comp *Client) GetTicket(refresh bool, ticketType string) (*object.HashMap, error)

func (*Client) GetTicketSignature

func (comp *Client) GetTicketSignature(ticket string, nonce string, timestamp int64, url string) string

func (*Client) GetUrl

func (comp *Client) GetUrl(externalRequest *http.Request) string

func (*Client) SetUrl

func (comp *Client) SetUrl(url string) *Client

Jump to

Keyboard shortcuts

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