Documentation
¶
Index ¶
- Constants
- func CheckForError(input interface{}) error
- func GetEnvironmentName() string
- func GetPortFullName(nodeID string, portName string) string
- func IsLeader(ctx context.Context) bool
- func ParseFullPortName(name string) (node string, port string)
- func RemoveSliceElement[T any](slice []T, s int) []T
- func SanitizeResourceName(in string) string
- func WithLeader(ctx context.Context, isLeader bool) context.Context
Constants ¶
View Source
const DefaultEnvironment = "local"
Variables ¶
This section is empty.
Functions ¶
func CheckForError ¶ added in v0.1.146
func CheckForError(input interface{}) error
CheckForError takes any input and returns the error if it is one, otherwise nil.
func GetEnvironmentName ¶
func GetEnvironmentName() string
func GetPortFullName ¶
func IsLeader ¶ added in v0.1.147
IsLeader checks if the current context indicates leadership status
func ParseFullPortName ¶ added in v0.1.0
func RemoveSliceElement ¶ added in v0.1.0
func SanitizeResourceName ¶ added in v0.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.