query

package
v0.0.0-...-0470c05 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCalLink(db db.Queryable, req CreateCalLinkRequest) (*int, error)

func CreateEventReference

func CreateEventReference(db db.Queryable, req CreateEventReferenceRequest) error

func GetEventReferences

func GetEventReferences(db db.Queryable, req GetEventReferencesRequest) (*[]EventReference, error)

func GetUser

func GetUser(db db.Queryable, req GetUserRequest) (*structs.User, error)

func ListUsers

func ListUsers(db db.Queryable, req ListUsersRequest) (*[]structs.User, error)

func UpdateEventReference

func UpdateEventReference(db db.Queryable, req UpdateEventReferenceRequest) error

Types

type Calendar

type Calendar struct {
	ID              int              `json:"id"`
	Nickname        *string          `json:"nickname"`
	NuEmail         string           `json:"nu_email"`
	EabURI          string           `json:"eab_uri"`
	Slug            string           `json:"slug"`
	EventReferences []EventReference `json:"event_references"`
	InsertedAt      string           `json:"inserted_at"`
}

func GetCalendar

func GetCalendar(db db.Queryable, req GetCalendarRequest) (*Calendar, error)

type CreateCalLinkRequest

type CreateCalLinkRequest struct {
	NortheasternEmail string
	EABUri            string
}

type CreateEventReferenceRequest

type CreateEventReferenceRequest struct {
	CalendarID       int
	Event            string
	LocationBuilding *string
	LocationRoom     *string
	LocationAddress  *string
}

type EventReference

type EventReference struct {
	ID               int     `json:"id"`
	CalID            int     `json:"cal_id"`
	Event            string  `json:"event"`
	CustomSummary    *string `json:"custom_summary"`
	LocationBuilding *string `json:"location_building"`
	LocationRoom     *string `json:"location_room"`
	LocationAddress  *string `json:"location_address"`
	IncludeLocation  bool    `json:"include_location"`
	InsertedAt       string  `json:"inserted_at"`
}

func GetEventReference

func GetEventReference(db db.Queryable, req GetEventReferenceRequest) (*EventReference, error)

type GetCalendarRequest

type GetCalendarRequest struct {
	CalendarID        *int
	CalendarSlug      *string
	NortheasternEmail *string
}

type GetEventReferenceRequest

type GetEventReferenceRequest struct {
	EventReferenceID int
}

type GetEventReferencesRequest

type GetEventReferencesRequest struct {
	CalendarID       *int
	EventReferenceID *int
}

type GetUserRequest

type GetUserRequest struct {
	UserID int
	Email  string
}

type ListUsersRequest

type ListUsersRequest struct {
	Limit  uint64
	Offset uint64
	Query  *QueryableFields
}

type QueryableFields

type QueryableFields struct {
	Email  *string
	UserID *int
	Name   *string
}

type UpdateEventReferenceRequest

type UpdateEventReferenceRequest struct {
	EventReferenceID int
	CustomSummary    *string
	LocationAddress  *string
	LocationBuilding *string
	LocationRoom     *string
	IncludeLocation  *bool
}

Jump to

Keyboard shortcuts

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