db

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SISDB

type SISDB interface {
	// GetID returns the id for the student matching the given information,
	// an empty string if the information doesn't match, or an error if one occurred
	GetID(firstName, lastName, ssn string, birthDate time.Time) (string, error)
}

SISDB represents a student information database

type User

type User struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Username  string `json:"username"`
	Password  string `json:"password"`
}

User represents a student user

type UserDB

type UserDB interface {
	// Get returns the user with the given id, nil if the user doesn't exist, or an error if one occurred
	Get(id string) (*User, error)
}

UserDB represents a user database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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