go

module
v0.0.0-...-e77357d Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0

README

EVE go sdk

SDK of generated message files for golang based on the protobuf message definitions in api/proto in the root directory of this repository.

To use:

import (
        "github.com/lf-edge/eve-api/go/register"
        "github.com/lf-edge/eve-api/go/config"
        "github.com/lf-edge/eve-api/go/info"
        "github.com/lf-edge/eve-api/go/logs"
        "github.com/lf-edge/eve-api/go/metrics"
        "github.com/lf-edge/eve-api/go/flowlog"
)

To build, go to the root directory of this repository and:

make

To vendor the result into a downstream dependency, e.g. pillar, do the following:

  1. Commit the changes to this directory.
  2. Open a Pull Request and merge it in.
  3. Go to the root directory of the downstream dependency and:
go get -u github.com/lf-edge/eve-api/go@master
go mod vendor

For temporary testing only you can reference the local copy of the generated code by adding the following to the end of your go.mod:

replace github.com/lf-edge/eve-api/go => ../../api/go

Do not commit the replace line to your changes, as they will not be accepted into a PR.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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