Documentation
¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default nuki API HTTP client.
var DefaultSchemes = []string{"http"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type NukiAPI ¶
type NukiAPI struct { Account account.ClientService AccountSubscription account_subscription.ClientService AccountUser account_user.ClientService Address address.ClientService AddressReservation address_reservation.ClientService AddressToken address_token.ClientService AdvancedAPI advanced_api.ClientService APIKey api_key.ClientService Company company.ClientService Notification notification.ClientService Opener opener.ClientService Operations operations.ClientService Service service.ClientService Smartlock smartlock.ClientService SmartlockAuth smartlock_auth.ClientService SmartlockLog smartlock_log.ClientService Subscription subscription.ClientService Transport runtime.ClientTransport }
NukiAPI is a client for nuki API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *NukiAPI
New creates a new nuki API client
func NewHTTPClient ¶
NewHTTPClient creates a new nuki API HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *NukiAPI
NewHTTPClientWithConfig creates a new nuki API HTTP client, using a customizable transport config.
func (*NukiAPI) SetTransport ¶
func (c *NukiAPI) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.