Documentation ¶
Index ¶
- Constants
- Variables
- func Error(err error, msg string, args ...any) error
- func ExecTemplate(w io.Writer, tmpl string, vars any) error
- func Fatal(err error, msg string, args ...any)
- func FlatMap(data map[string]any, notFlat container.HashSet) map[string]any
- func IsTTY(f *os.File) bool
- func JSONToMap(data []byte) (map[string]any, error)
- func MapToJSON(data map[string]any) ([]byte, error)
- func PrettyJSON(s any) error
- func PrintError(err error)
- func RawMessageToByte(arr []jsoniter.RawMessage) [][]byte
- func ReadPeerCreds(c net.Conn) (uint32, error)
- func Stdoutf(format string, args ...any)
- func UnFlatMap(flat map[string]any, ignoreExtra bool) map[string]any
Constants ¶
View Source
const (
ObjFlattenDelimiter = "."
)
Variables ¶
View Source
var ErrNotUnixConn = fmt.Errorf("expected unix socket connection")
View Source
var Service = "tigris-server"
Service program name used in logging and monitoring.
View Source
var Version string
Version of this build.
Functions ¶
func PrettyJSON ¶
func PrintError ¶
func PrintError(err error)
func RawMessageToByte ¶
func RawMessageToByte(arr []jsoniter.RawMessage) [][]byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.