users

package
v0.0.0-...-8a165f0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

type Directory struct {
	// contains filtered or unexported fields
}

Directory stores a directory of users.

func NewDirectory

func NewDirectory(logger *logrus.Logger, pgURL *url.URL) (*Directory, error)

NewDirectory creates a new Directory, connecting it to the postgres server on the URL provided.

func (Directory) AddUser

AddUser adds a user to the directory

func (Directory) Close

func (d Directory) Close() error

Close releases any resources.

func (Directory) DeleteUser

DeleteUser deletes the user, if found.

func (Directory) ListUsers

ListUsers lists users in the directory, subject to the request filters.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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