starter

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 6 Imported by: 0

README

starter

Go

starter is part of sputnik. It's placed in the separate repository due to high requirements for golang version (1.21).

"...Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services. Then, with a single command, you create and start all the services from your configuration..."

starter performs functionality described above programmatically:

  • store docker-compose.yml within configuration folder
./cmd/syslog-e2e/conf
├── blocks.json
├── connector.json
├── docker-compose.yml
├── syslogproducer.json
└── syslogreceiver.json
  • import starter
import (
    ..........................
    "github.com/g41797/starter"
    ..........................
)
  • call starter from the very beginning
func main() {

	stop, err := starter.StartServices()

	if err != nil {
		fmt.Println(err)
		return
	}

	defer stop()

	sidecar.Start(new(adapter.BrokerConnector))
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServices

func StartServices() (stopServices func(), err error)

func StartServicesWithCompose added in v0.0.2

func StartServicesWithCompose(composePath string) (stopServices func(), err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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