-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d95aacb
commit ab05ced
Showing
10 changed files
with
83 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package remote | ||
|
||
import ( | ||
"crypto/tls" | ||
"errors" | ||
"time" | ||
) | ||
|
||
//errors | ||
var ( | ||
ErrInvalidEP = errors.New("invalid endpoint") | ||
ErrLabelsNil = errors.New("labels can not be nil") | ||
ErrAppEmpty = errors.New("app can not be empty") | ||
ErrServiceTooLong = errors.New("exceeded max value for service name") | ||
) | ||
|
||
//const | ||
const ( | ||
LabelService = "service" | ||
LabelVersion = "version" | ||
LabelEnvironment = "environment" | ||
LabelApp = "app" | ||
|
||
DefaultInterval = time.Second * 30 | ||
) | ||
|
||
//Mode | ||
const ( | ||
ModeWatch = iota | ||
ModeInterval | ||
) | ||
|
||
//Options is client option | ||
type Options struct { | ||
ServerURI string | ||
Endpoint string | ||
TLSConfig *tls.Config | ||
TenantName string | ||
EnableSSL bool | ||
APIVersion string | ||
AutoDiscovery bool | ||
RefreshPort string | ||
WatchTimeOut int | ||
VerifyPeer bool | ||
ProjectID string | ||
|
||
Labels map[string]string | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.