Documentation ¶
Index ¶
Constants ¶
View Source
const (
InvalidCountry = "**INVALID**"
)
Variables ¶
View Source
var ( ErrNotEnoughSerials = errors.New("not enough serials provided require at least two") ErrRequestFailed = errors.New("request failed") ErrInvalidResponse = errors.New("invalid response") )
View Source
var (
ErrNoClientID = errors.New("no ClientID set")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options ...ClientOptionFunc) (*Client, error)
NewClient creates a new client to work with Lenovo eSupport.
func (*Client) WarrantiesBySerials ¶
type ClientOptionFunc ¶
func SetClientID ¶
func SetClientID(id string) ClientOptionFunc
SetClientID defines the ClientID which is needed to authenticate with Lenovo eSupport.
func SetHttpClient ¶
func SetHttpClient(httpClient *http.Client) ClientOptionFunc
SetHttpClient can be used to specify the http.Client to use when making HTTP requests to Lenovo eSupport.
type Time ¶
func (*Time) UnmarshalJSON ¶
type WarrantyContract ¶
Click to show internal directories.
Click to hide internal directories.