jssdk

package
v3.0.0-...-471bf3a Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 13 Imported by: 0

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

	GetAppID func() 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) 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) OverrideGetAppID

func (comp *Client) OverrideGetAppID()

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