pgservicefile

package module
v0.0.0-...-5a60cdf Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 6 Imported by: 41 modules, 33 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go Reference Build Status

pgservicefile

Package pgservicefile is a parser for PostgreSQL service files (e.g. .pg_service.conf).

Documentation

Overview

Package pgservicefile is a parser for PostgreSQL service files (e.g. .pg_service.conf).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Name     string
	Settings map[string]string
}

type Servicefile

type Servicefile struct {
	Services []*Service
	// contains filtered or unexported fields
}

func ParseServicefile

func ParseServicefile(r io.Reader) (*Servicefile, error)

ParseServicefile reads r and parses it into a Servicefile.

func ReadServicefile

func ReadServicefile(path string) (*Servicefile, error)

ReadServicefile reads the file at path and parses it into a Servicefile.

func (*Servicefile) GetService

func (sf *Servicefile) GetService(name string) (*Service, error)

GetService returns the named service.

Jump to

Keyboard shortcuts

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