...
1
2
3
4 package storagedatalake
5
6
7
8
9
10
11
12 import (
13 "github.com/Azure/go-autorest/autorest"
14 )
15
16 const (
17
18 DefaultDNSSuffix = "dfs.core.windows.net"
19 )
20
21
22 type BaseClient struct {
23 autorest.Client
24 XMsVersion string
25 AccountName string
26 DNSSuffix string
27 }
28
29
30 func New(xMsVersion string, accountName string) BaseClient {
31 return NewWithoutDefaults(xMsVersion, accountName, DefaultDNSSuffix)
32 }
33
34
35 func NewWithoutDefaults(xMsVersion string, accountName string, dNSSuffix string) BaseClient {
36 return BaseClient{
37 Client: autorest.NewClientWithUserAgent(UserAgent()),
38 XMsVersion: xMsVersion,
39 AccountName: accountName,
40 DNSSuffix: dNSSuffix,
41 }
42 }
43
View as plain text