pgservicefile

package module
v0.0.0-...-091c0ba Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 6 Imported by: 16

README

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