Documentation ¶
Overview ¶
Package client contains the client side librairies
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the main object to manage the license-related permissions
func New ¶
func New(conf Configuration) *Client
New creates a new Client, using the provided configuration.
func (*Client) Check ¶
func (c *Client) Check()
Check the validity of the license, asynchroneously. If already locked, return immediately. What happens exactly depends on the configuration that was passed upon creation.
type Configuration ¶
type Configuration struct { License string // license string or number, includes version number, licence serial number, etc ... ServerURL string // Server entry point. Set to empty string to disable all checks. OfflineLimit time.Duration // how long do we accept to run without a valid check online ? AutoRepeat time.Duration // Automatically check with the provided period. Ignore if value is zero-value (not set). }
Configuration parameters to construct a new Client.
Click to show internal directories.
Click to hide internal directories.