Documentation
¶
Index ¶
Constants ¶
const ( // InboxMinLength is the minimum size (in bytes) of an inbox InboxMinLength = 10 // InboxMaxLength is the maximum size (in bytes) of an inbox InboxMaxLength = 20 )
Variables ¶
This section is empty.
Functions ¶
func InboxName ¶
InboxName generates a cryptographically-secure random string which can be used as an inbox for orchestrators and agents during communication.
func NewLogger ¶
NewLogger returns a pointer to a new logrus logger with all sensible defaults configured.
func TakeRandom ¶
TakeRandom takes a random percentage of strings from a slice of strings, guaranteeing that each item will appear only once.
Types ¶
type ConfigDuration ¶
ConfigDuration allows for the configuration of durations in the form of "5m30s", as opposed to the default Unix epoch timestamp.
func (*ConfigDuration) UnmarshalJSON ¶
func (d *ConfigDuration) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON unmarshals a ConfigDuration from JSON.
type ConfigLogLevel ¶
ConfigLogLevel allows for the configuration of logrus log levels in the form of "debug", as opposed to the default numeric representation
func (*ConfigLogLevel) UnmarshalJSON ¶
func (d *ConfigLogLevel) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON unmarshals a ConfigLogLevel from JSON.