command

package
v0.0.0-...-3a9407f Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginCmd

type LoginCmd struct {
	Code  string `json:"code" validate:"required"`
	State string `json:"state" validate:"required"`
}

type LoginHandler

type LoginHandler cqrs.Handler[LoginCmd, *LoginResult]

func NewLoginHandler

func NewLoginHandler(repo user.Repository, client github.Client) LoginHandler

type LoginResult

type LoginResult struct {
	AccessToken string       `json:"access_token"`
	User        *github.User `json:"user"`
	ID          uuid.UUID    `json:"id"`
}

Jump to

Keyboard shortcuts

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