routes

package
v0.0.0-...-5351c4f Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJwt

func GetJwt(signingKey string, userId string, username string) (string, error)

func NewRouter

func NewRouter(settings configuration.ApplicationSettings) http.Handler

Types

type DocumentCreate

type DocumentCreate struct {
	Name string `json:"name"`
}

type DocumentListItem

type DocumentListItem struct {
	ID   uuid.UUID `json:"id"`
	Name string    `json:"name"`
}

type DocumentResponse

type DocumentResponse struct {
	ID          uuid.UUID   `json:"id"`
	Name        string      `json:"name"`
	OwnerID     uuid.UUID   `json:"owner_id"`
	SharedWith  []uuid.UUID `json:"shared_with"`
	StateVector []byte      `json:"state_vector"`
}

type TokenResponse

type TokenResponse struct {
	Token string `json:"token"`
}

type UserCreate

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

type UserCredentials

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

type UserResponse

type UserResponse struct {
	ID       uuid.UUID `json:"id"`
	Email    string    `json:"email"`
	Username string    `json:"username"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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