jssdk

package
v3.0.28 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 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 {
	BaseClient *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(ctx context.Context, jsApiList []string, debug bool, beta bool, openTagList []string, url string) (interface{}, error)

func (*Client) ConfigSignature

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

func (*Client) GetAppID

func (comp *Client) GetAppID() string

func (*Client) GetConfigArray

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

func (*Client) GetTicket

func (comp *Client) GetTicket(ctx context.Context, 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