apiv0

package
v0.0.0-...-b352e1d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIv0

func NewAPIv0(r *mux.Router, db *gorm.DB)

Types

type LiveData

type LiveData struct {
	AvailableBikes      int `json:"available_bikes"`
	AvailableBikeStands int `json:"available_bike_stands"`
}

type SlackInteraction

type SlackInteraction struct {
	User struct {
		ID string `json:"id"`
	} `json:"user"`
	ResponseURL string `json:"response_url"`
	Actions     []struct {
		ActionID string `json:"action_id"`
		Value    string `json:"value"`
	} `json:"actions"`
}

type StandUpdate

type StandUpdate struct {
	gorm.Model
	Stand     stand.Stand
	StandID   uint
	UserEmail string
	Update    string `sql:"type:text"`
}

Jump to

Keyboard shortcuts

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