controller

package
v0.0.0-...-e9625fd Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	HealthCheck common.Action

	// OAuth/OIDC
	GetAuthorize  common.Action
	ShowAuthorize common.Action

	IssueToken common.Action

	// Resource
	ShowUserResource common.Action
}

Actions have all actions.

type GetAuthorize

type GetAuthorize struct {
	UseCase  usecase.GetAuthorizeUseCase
	Renderer presenter.Renderer

	AppURL string
}

func (*GetAuthorize) Action

func (g *GetAuthorize) Action(w http.ResponseWriter, r *http.Request)

type GetAuthorizeRequest

type GetAuthorizeRequest struct {
	ClientID     string `schema:"client_id"`
	RedirectURI  string `schema:"redirect_uri"`
	ResponseType string `schema:"response_type"`
}

type IssueToken

type IssueToken struct {
	UseCase  usecase.IssueTokenUseCase
	Renderer presenter.Renderer
}

func (*IssueToken) Action

func (i *IssueToken) Action(w http.ResponseWriter, r *http.Request)

type IssueTokenRequest

type IssueTokenRequest struct {
	Code        string `schema:"code"`
	GrantType   string `schema:"grant_type"`
	RedirectURI string `schema:"redirect_uri"`
}

type IssueTokenResponse

type IssueTokenResponse struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
}

type ShowAuthorize

type ShowAuthorize struct {
	Renderer presenter.Renderer
}

func (*ShowAuthorize) Action

func (s *ShowAuthorize) Action(w http.ResponseWriter, r *http.Request)

type ShowUserResource

type ShowUserResource struct {
	UseCase  usecase.GetUserResourceUseCase
	Renderer presenter.Renderer
}

func (*ShowUserResource) Action

func (s *ShowUserResource) Action(w http.ResponseWriter, r *http.Request)

type ShowUserResourceResponse

type ShowUserResourceResponse struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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