serverinfofile

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(New)

Module is the Fx module for this package.

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	Config    config.Provider
	Lifecycle fx.Lifecycle
	Logger    *zap.SugaredLogger
}

Params define values to be used by ServerInfoFile.

type ServerInfoFile

type ServerInfoFile interface {
	UpdateField(key string, value string) error
}

ServerInfoFile is an interface to manage contents of a single server info file. It is intended to be used to store connection info for reference by the IDE and other tools, and written to at service launch.

func New

func New(p Params) (ServerInfoFile, error)

New creates a new ServerInfoFile which manages contents of a single server info file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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