...

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

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

     1  // Package face implements the Azure ARM Face service API version 1.0.
     2  //
     3  // An API for face detection, verification, and identification.
     4  package face
     5  
     6  // Copyright (c) Microsoft Corporation. All rights reserved.
     7  // Licensed under the MIT License. See License.txt in the project root for license information.
     8  //
     9  // Code generated by Microsoft (R) AutoRest Code Generator.
    10  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
    11  
    12  import (
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // BaseClient is the base client for Face.
    17  type BaseClient struct {
    18  	autorest.Client
    19  	Endpoint string
    20  }
    21  
    22  // New creates an instance of the BaseClient client.
    23  func New(endpoint string) BaseClient {
    24  	return NewWithoutDefaults(endpoint)
    25  }
    26  
    27  // NewWithoutDefaults creates an instance of the BaseClient client.
    28  func NewWithoutDefaults(endpoint string) BaseClient {
    29  	return BaseClient{
    30  		Client:   autorest.NewClientWithUserAgent(UserAgent()),
    31  		Endpoint: endpoint,
    32  	}
    33  }
    34  

View as plain text