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 ServiceFile ¶ added in v1.0.4
type ServiceFile struct { Services []*Service // contains filtered or unexported fields }
func ParseServiceFile ¶ added in v1.0.4
func ParseServiceFile(r io.Reader) (*ServiceFile, error)
ParseServiceFile reads r and parses it into a Servicefile.
func ReadServiceFile ¶ added in v1.0.4
func ReadServiceFile(path string) (*ServiceFile, error)
ReadServiceFile reads the file at path and parses it into a Servicefile.
func (*ServiceFile) GetService ¶ added in v1.0.4
func (sf *ServiceFile) GetService(name string) (*Service, error)
GetService returns the named service.
Click to show internal directories.
Click to hide internal directories.