...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/websearch/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/websearch

     1  // Package websearch implements the Azure ARM Websearch service API version 1.0.
     2  //
     3  // The Web Search API lets you send a search query to Bing and get back search results that include links to webpages,
     4  // images, and more.
     5  package websearch
     6  
     7  // Copyright (c) Microsoft Corporation. All rights reserved.
     8  // Licensed under the MIT License. See License.txt in the project root for license information.
     9  //
    10  // Code generated by Microsoft (R) AutoRest Code Generator.
    11  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
    12  
    13  import (
    14  	"github.com/Azure/go-autorest/autorest"
    15  )
    16  
    17  const (
    18  	// DefaultEndpoint is the default value for endpoint
    19  	DefaultEndpoint = "https://api.cognitive.microsoft.com"
    20  )
    21  
    22  // BaseClient is the base client for Websearch.
    23  type BaseClient struct {
    24  	autorest.Client
    25  	Endpoint string
    26  }
    27  
    28  // New creates an instance of the BaseClient client.
    29  func New() BaseClient {
    30  	return NewWithoutDefaults(DefaultEndpoint)
    31  }
    32  
    33  // NewWithoutDefaults creates an instance of the BaseClient client.
    34  func NewWithoutDefaults(endpoint string) BaseClient {
    35  	return BaseClient{
    36  		Client:   autorest.NewClientWithUserAgent(UserAgent()),
    37  		Endpoint: endpoint,
    38  	}
    39  }
    40  

View as plain text