icanteen

package
v0.0.0-...-edc3f96 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeServerURL

func NormalizeServerURL(server string) (string, error)

Types

type ICanteenDay

type ICanteenDay struct {
	Day     string          `json:"day"`
	Lunches []ICanteenLunch `json:"lunches"`
}

func LoadLunches

func LoadLunches(username, password, server string) ([]ICanteenDay, error)

type ICanteenLunch

type ICanteenLunch struct {
	Name     string `json:"name"`
	Ordered  bool   `json:"ordered"`
	CanOrder bool   `json:"can_order"`
}

Jump to

Keyboard shortcuts

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