Documentation
¶
Index ¶
- Constants
- func ConfigureLogger(prefix string, writer io.Writer, level LoggingLevel) hclog.Logger
- func CreateFolderIfMissing(dir string) error
- func DirExists(path string) bool
- func NewRequest(method string, url string, body io.Reader) (*http.Request, error)
- func NewRequestWithContext(ctx context.Context, method string, url string, body io.Reader) (*http.Request, error)
- type LoggingLevel
- type ReconnectTimeoutGenerator
Constants ¶
View Source
const DefaultDirMod os.FileMode = 0755
View Source
const DefaultExecutableFileMod os.FileMode = 0755
View Source
const DefaultFileMod os.FileMode = 0644
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogger ¶
func CreateFolderIfMissing ¶ added in v0.2.0
func NewRequest ¶ added in v0.14.0
Types ¶
type LoggingLevel ¶ added in v0.9.0
type LoggingLevel string
const ( Trace LoggingLevel = "trace" Debug LoggingLevel = "debug" Info LoggingLevel = "info" Warn LoggingLevel = "warn" Error LoggingLevel = "error" Off LoggingLevel = "off" Default LoggingLevel = "" )
type ReconnectTimeoutGenerator ¶
type ReconnectTimeoutGenerator struct {
// contains filtered or unexported fields
}
func (*ReconnectTimeoutGenerator) Clear ¶
func (g *ReconnectTimeoutGenerator) Clear()
func (*ReconnectTimeoutGenerator) Next ¶
func (g *ReconnectTimeoutGenerator) Next()
func (*ReconnectTimeoutGenerator) Timeout ¶ added in v0.2.0
func (g *ReconnectTimeoutGenerator) Timeout() time.Duration
Click to show internal directories.
Click to hide internal directories.