Documentation
¶
Index ¶
- Variables
- func Distance(p1, p2 entities.Position) float64
- func GetLogger(forComponent string) (*log.Logger, error)
- func GracefulStop(cmd *exec.Cmd, ctx context.Context) error
- func IsRunning(name string) (bool, error)
- func KillAll(pid int32) error
- func LogProcess(cmd *exec.Cmd, log *log.Logger) error
- func LogReader(reader io.Reader, log *log.Logger)
- func NewTempLogger() (*os.File, error)
- func PackedStructSize(theStruct interface{}) (int, error)
- func PackedStructToBytes(bytes []byte, theStruct interface{}) error
- func ReadPackedStruct(bytes []byte, place interface{}) error
- func WaitWithContext(ctx context.Context, cmd *exec.Cmd) error
Constants ¶
This section is empty.
Variables ¶
View Source
var HostByteOrder = binary.LittleEndian
Functions ¶
func GracefulStop ¶
Attemps to cleanly shutdown the process
func NewTempLogger ¶
func PackedStructSize ¶
returns the size of the packed struct. It is an error to call this function on anything that is not a struct (or a pointer thereto) with primitive-only members.
func PackedStructToBytes ¶
Converts theStruct into an array of bytes. It is an error to call this function on anything that is not a struct (or a pointer thereto) with primitive-only members. len(bytes) must be sufficient to store every member of theStruct.
func ReadPackedStruct ¶
Reads a packed struct. place must point to a struct with primitive members only
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.