models

package
v0.0.0-...-a305310 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllTwinderUserStats

type AllTwinderUserStats struct {
	UsersStats []TwinderUserStats `json:"users_stats"`
}

Server side debugging GET /matches/all

type AxiomPayload

type AxiomPayload struct {
	Time       string `json:"_time"`
	ServerId   string `json:"serverId"`
	Throughput uint64 `json:"throughput"`
}

type SwipePayload

type SwipePayload struct {
	Swiper    string `json:"swiper"`
	Swipee    string `json:"swipee"`
	Comment   string `json:"comment"`
	Direction string `json:"direction"`
}

Server side swipe with the direction payload

type SwipeRequest

type SwipeRequest struct {
	Swiper  string `json:"swiper"`
	Swipee  string `json:"swipee"`
	Comment string `json:"comment"`
}

Client side swipe

type TwinderMatches

type TwinderMatches struct {
	UserId  string   `json:"userId"`
	Matches []string `json:"matches"`
}

Server side GET /matches?userId=1234

type TwinderUserStats

type TwinderUserStats struct {
	UserId   string `json:"userId"`
	Likes    int    `json:"likes"`
	Dislikes int    `json:"dislikes"`
}

Server side GET /swipes?userId=1234

Jump to

Keyboard shortcuts

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