query

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentUserHandler

type CurrentUserHandler cqrs.Handler[CurrentUserQuery, *CurrentUserResult]

func NewCurrentUserHandler

func NewCurrentUserHandler(client github.Client) CurrentUserHandler

type CurrentUserQuery

type CurrentUserQuery struct {
	Token string `json:"-"`
}

type CurrentUserResult

type CurrentUserResult struct {
	User *github.User `json:"user"`
}

type ProfileViewHandler

type ProfileViewHandler cqrs.Handler[ProfileViewQuery, *ProfileViewResult]

func NewProfileViewHandler

func NewProfileViewHandler(repo user.Repository) ProfileViewHandler

type ProfileViewQuery

type ProfileViewQuery struct {
	UserName string `param:"user_name" validate:"required,min=1,max=255"`
}

type ProfileViewResult

type ProfileViewResult struct {
	User *user.Entity `json:"user"`
}

Jump to

Keyboard shortcuts

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