server

package
v0.0.0-...-f095a72 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAndListen

func SetupAndListen()

Types

type CreateAccountRequest

type CreateAccountRequest struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type CreateCizzorRequest

type CreateCizzorRequest struct {
	Url      string `json:"url"`
	Random   bool   `json:"random"`
	ShortUrl string `json:"short_url"`
}

type ErrorResponse

type ErrorResponse struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

type GetCizzorByIDResponse

type GetCizzorByIDResponse struct {
	Cizzor          models.Cizzor      `json:"cizzor"`
	ClicksAnalytics models.ClickSource `json:"clicks_analytics"`
}

type JsonResponse

type JsonResponse struct {
	Status  string      `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Token     string `json:"token"`
	Username  string `json:"username"`
	Email     string `json:"email"`
	ID        uint64 `json:"id"`
	CreatedAt string `json:"created_at"`
}

type UpdateCizzorRequest

type UpdateCizzorRequest struct {
	Url string `json:"url"`
}

type UserResponse

type UserResponse struct {
	Username  string `json:"username"`
	Email     string `json:"email"`
	ID        uint64 `json:"id"`
	CreatedAt string `json:"created_at"`
}

type UserUpdateRequest

type UserUpdateRequest struct {
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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