example

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package example provide an example how to use the Trunks library from setting it up to creating targets.

To run the example, execute

$ go run ./internal/cmd/trunks

It will run a web user interface at http://127.0.0.1:8217 .

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	// contains filtered or unexported fields
}

Example contains an example how to use Trunks programmatically.

func New

func New() (ex *Example, err error)

New create, initialize, and setup an example service.

func (*Example) Start

func (ex *Example) Start() (err error)

Start the Example servers.

func (*Example) Stop

func (ex *Example) Stop()

Stop the Example servers.

Jump to

Keyboard shortcuts

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