iaps

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAPApple

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

IAPApple apple驗證器

func NewIAPApple

func NewIAPApple(config *IAPAppleConfig) *IAPApple

NewIAPApple 建立apple驗證器

func (*IAPApple) Finalize

func (this *IAPApple) Finalize()

Finalize 結束處理

func (*IAPApple) Initialize

func (this *IAPApple) Initialize() error

Initialize 初始化處理

func (*IAPApple) Verify

func (this *IAPApple) Verify(productID, certificate string) error

Verify 驗證憑證

type IAPAppleConfig

type IAPAppleConfig struct {
	Key      string        `yaml:"key"`      // 密鑰字串
	KeyID    string        `yaml:"keyID"`    // 密鑰ID
	Bundle   string        `yaml:"bundle"`   // 軟體包名稱
	Issuer   string        `yaml:"issuer"`   // 發行人名稱
	Sandbox  bool          `yaml:"sandbox"`  // 沙盒旗標
	WaitTime time.Duration `yaml:"waitTime"` // 等待時間
	Capacity int           `yaml:"capacity"` // 通道容量
	Retry    int           `yaml:"retry"`    // 重試次數
}

IAPAppleConfig apple驗證設定資料

type IAPGoogle

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

IAPGoogle google驗證器

func NewIAPGoogle

func NewIAPGoogle(config *IAPGoogleConfig) *IAPGoogle

NewIAPGoogle 建立google驗證器

func (*IAPGoogle) Finalize

func (this *IAPGoogle) Finalize()

Finalize 結束處理

func (*IAPGoogle) Initialize

func (this *IAPGoogle) Initialize() error

Initialize 初始化處理

func (*IAPGoogle) Verify

func (this *IAPGoogle) Verify(productID, certificate string) error

Verify 驗證憑證

type IAPGoogleConfig

type IAPGoogleConfig struct {
	Key      string        `yaml:"key"`      // 密鑰字串
	Bundle   string        `yaml:"bundle"`   // 軟體包名稱
	WaitTime time.Duration `yaml:"waitTime"` // 等待時間
	Capacity int           `yaml:"capacity"` // 通道容量
}

IAPGoogleConfig google驗證設定資料

Jump to

Keyboard shortcuts

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