Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILicense ¶
type ILicense interface { Get(url string) *Request Validate(id, licenseServiceUrl string, data *Response) *Request GetReplicatedCustomerEmail(licenseId, licenseServiceUrl string, data *Response) *Request IsTrial(l string) bool }
func NewLicenseClient ¶
func NewLicenseClient() ILicense
func NewMockLicenseClient ¶
func NewMockLicenseClient() ILicense
type License ¶
type License struct {
// contains filtered or unexported fields
}
func (*License) GetReplicatedCustomerEmail ¶
type MockClient ¶
type MockLicense ¶
type MockLicense struct { GetFunc func(url string) *Request ValidateFunc func(id, licenseServiceUrl string, data *Response) *Request GetReplicatedCustomerEmailFunc func(licenseId, licenseServiceUrl string, data *Response) *Request IsTrialFunc func(l string) bool }
func (*MockLicense) Get ¶
func (m *MockLicense) Get(url string) *Request
func (*MockLicense) GetReplicatedCustomerEmail ¶
func (m *MockLicense) GetReplicatedCustomerEmail(licenseId, licenseServiceUrl string, data *Response) *Request
func (*MockLicense) IsTrial ¶
func (m *MockLicense) IsTrial(l string) bool
type Request ¶
func (*Request) ParseData ¶
func (r *Request) ParseData(data RequestDataInterface) *Request
func (*Request) ParseLicenseResp ¶
func (r *Request) ParseLicenseResp(data RequestDataInterface) *Request
type RequestDataInterface ¶
type RequestDataInterface interface { }
type RequestParams ¶
type RequestParams struct {
LicenseId string
}
Click to show internal directories.
Click to hide internal directories.