directory

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MaxResults = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(httpClient Doer) *Client

func Open

func Open(ctx context.Context, options auth.Options) (*Client, error)

func (*Client) Student

func (c *Client) Student(ctx context.Context, id string) (Student, error)

func (*Client) Students

func (c *Client) Students(ctx context.Context, query StudentQuery) (StudentResults, error)

type Doer

type Doer interface {
	Do(*http.Request) (*http.Response, error)
}

type Error

type Error struct {
	Status  int
	Message string
}

func (*Error) Error

func (e *Error) Error() string

type Student

type Student struct {
	ID            string   `json:"id"`
	Name          string   `json:"name"`
	FullName      string   `json:"full_name,omitempty"`
	Email         string   `json:"email,omitempty"`
	Phone         string   `json:"phone,omitempty"`
	Major         string   `json:"major,omitempty"`
	Minor         string   `json:"minor,omitempty"`
	DegreeProgram string   `json:"degree_program,omitempty"`
	School        string   `json:"school,omitempty"`
	Title         string   `json:"title,omitempty"`
	Department    string   `json:"department,omitempty"`
	Division      string   `json:"division,omitempty"`
	MailCode      string   `json:"mail_code,omitempty"`
	Address       []string `json:"address,omitempty"`
}

type StudentQuery

type StudentQuery struct {
	Query     string
	FirstName string
	LastName  string
	Major     string
	School    string
	Email     string
	Phone     string
}

type StudentResults

type StudentResults struct {
	Students  []Student `json:"students"`
	Truncated bool      `json:"truncated"`
}

Jump to

Keyboard shortcuts

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