bin

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package bin contains code to extract data from a Service Weaver binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadComponentGraph

func ReadComponentGraph(file string) ([]string, graph.Graph, error)

ReadComponentGraph reads component graph information from the specified binary. It returns a slice of components and a component graph whose nodes are indices into that slice.

func ReadListeners added in v0.15.0

func ReadListeners(file string) ([]codegen.ComponentListeners, error)

ReadListeners reads the sets of listeners associated with each component in the specified binary.

Types

type Versions added in v0.17.0

type Versions struct {
	ModuleVersion   string         // Service Weaver library's module version
	DeployerVersion version.SemVer // see version.DeployerVersion
}

func ReadVersions added in v0.17.0

func ReadVersions(filename string) (Versions, error)

ReadVersions reads the module version and deployer API version from the specified binary.

Directories

Path Synopsis
testprogram is used by bin tests.
testprogram is used by bin tests.

Jump to

Keyboard shortcuts

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