handlers

package
v0.0.0-...-2bcd575 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserRequest

type CreateUserRequest struct {
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	AvatarUrl string `json:"avatarUrl"`
}

type ECSURL

type ECSURL struct {
	model.URL
}

func (*ECSURL) MarshalLogObject

func (c *ECSURL) MarshalLogObject(enc zapcore.ObjectEncoder) error

type GoogleUser

type GoogleUser struct {
	Id        string `json:"id"`
	Email     string `json:"email"`
	FirstName string `json:"given_name"`
	Picture   string `json:"picture"`
}

type Response

type Response[T any] struct {
	Value []T `json:"value"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(logger *zap.Logger, jwtService *services.JWTService) *Server

func (*Server) GoogleAuthorizeCallback

func (s *Server) GoogleAuthorizeCallback(c *fiber.Ctx) error

GET: /api/v1/oauth/authorize/google/callback

func (*Server) Healthz

func (s *Server) Healthz(c *fiber.Ctx) error

func (*Server) Me

func (s *Server) Me(c *fiber.Ctx) error

func (*Server) RedirectGoogleAuthorize

func (s *Server) RedirectGoogleAuthorize(c *fiber.Ctx) error

GET: /api/v1/oauth/authorize/google

func (*Server) Signout

func (s *Server) Signout(c *fiber.Ctx) error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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