windowsevent

package
v0.0.0-...-d5a6f8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

How to setup a windows eventlog dev environment

Cross compilation from mac is not easy, an easier path is to use a linux vm for that (for instance ubuntu/trusty64 vagrant vm). Requirements are to install go 1.22+, and to install mingw-w64 with apt.

Once those requirements are met, to build, run:

GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -mod=mod -tags "log" -o ./DataDog/datadog-agent/bin/agent/agent github.com/DataDog/datadog-agent/cmd/agent

The binary can then be run in a windows vm, for instance opentable/win-2012r2-standard-amd64-nocm:

agent.exe start -c agent-conf\datadog.yaml

Documentation

Overview

Package windowsevent is not supported on non-windows platforms

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Launcher

type Launcher struct{}

Launcher is a stub for non-windows platforms

func NewLauncher

func NewLauncher() *Launcher

NewLauncher is a stub for non-windows platforms

func (*Launcher) Start

Start is a stub for non-windows platforms

func (*Launcher) Stop

func (l *Launcher) Stop()

Stop is a stub for non-windows platforms

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL