Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultServerBaseURL = "https://upgrade-server.obot.ai" InstallationIDPropertyKey = "installation_id" )
Variables ¶
View Source
var ( ErrCommunityLicenseRequest = errors.New("community license request failed") ErrCommunityLicenseResponse = errors.New("community license response was invalid") )
Functions ¶
func EndpointURL ¶
func GetInstallationID ¶
func ServerBaseURL ¶
func ServerBaseURL() string
Types ¶
type CommunityLicenseClient ¶
type CommunityLicenseClient struct {
// contains filtered or unexported fields
}
func NewCommunityLicenseIssuer ¶
func NewCommunityLicenseIssuer(gatewayClient propertyClient, baseURL string, httpClient *http.Client) *CommunityLicenseClient
func (*CommunityLicenseClient) Issue ¶
func (c *CommunityLicenseClient) Issue(ctx context.Context, request CommunityLicenseRequest) (string, error)
type CommunityLicenseIssuer ¶
type CommunityLicenseIssuer interface {
Issue(context.Context, CommunityLicenseRequest) (string, error)
}
Click to show internal directories.
Click to hide internal directories.