Documentation
¶
Index ¶
- Constants
- func GetCreditsClient(standalone bool) *redis.Client
- func GetEnvVariable(key, defaultValue string) string
- func GetEnvVariableHideError(key, defaultValue string, hideError bool) string
- func IsPrivateIP(ip net.IP) bool
- func IsPrivateIPString(ip string) bool
- type CreditsManager
- type JobUserUpdate
- type WrappedJobUserUpdate
Constants ¶
View Source
const OUT_OF_CREDITS_MESSAGE = "out of credits"
Variables ¶
This section is empty.
Functions ¶
func GetCreditsClient ¶
func GetEnvVariable ¶
func GetEnvVariableHideError ¶
func IsPrivateIP ¶
func IsPrivateIPString ¶
Types ¶
type CreditsManager ¶
type CreditsManager struct {
// contains filtered or unexported fields
}
func CreateCreditsManager ¶
func (*CreditsManager) GetCredits ¶
func (creditsManager *CreditsManager) GetCredits() int64
func (*CreditsManager) StopCreditsCapturing ¶
func (creditsManager *CreditsManager) StopCreditsCapturing()
func (*CreditsManager) UseCredits ¶
func (creditsManager *CreditsManager) UseCredits(credits int64) bool
type JobUserUpdate ¶
type JobUserUpdate struct {
UpdateType string `json:"updateType"`
}
type WrappedJobUserUpdate ¶
type WrappedJobUserUpdate struct {
Update JobUserUpdate `json:"update"`
JobId string `json:"jobId"`
}
Click to show internal directories.
Click to hide internal directories.