pgservicefile – github.com/jackc/pgservicefile Index | Files

package pgservicefile

import "github.com/jackc/pgservicefile"

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

Index

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.

Source Files

pgservicefile.go

Version
v0.0.0-20240606120523-5a60cdf6a761 (latest)
Published
Jun 6, 2024
Platform
darwin/amd64
Imports
6 packages
Last checked
now

Tools for package owners.