rest

package
v0.0.0-...-4bd82ba Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderHandlerSet wire.ProviderSet = wire.NewSet(
		ProvideOauthClientHandler,
		ProvideOauthTokenHandler, wire.Struct(new(Handler), "*"), wire.Struct(new(oauth2_handler.Oauth2Handler), "*"), wire.Bind(new(oauth2_handler.IOauthClientHandler), new(*oauth2_handler.OauthClientHandler)), wire.Bind(new(oauth2_handler.IOauthTokenHandler), new(*oauth2_handler.OauthTokenHandler)),
	)
)

Functions

func HealthGET

func HealthGET(c *gin.Context)

func NewRoute

func NewRoute(
	ctx context.Context,
	handler *Handler,
	config *config.Config,
) *gin.Engine

func ProvideOauthClientHandler

func ProvideOauthClientHandler(u *usecases.Usecase, logger *logrus.Logger) *oauth2_handler.OauthClientHandler

func ProvideOauthTokenHandler

func ProvideOauthTokenHandler(u *usecases.Usecase, logger *logrus.Logger) *oauth2_handler.OauthTokenHandler

Types

type Handler

type Handler struct {
	oauth2_handler.Oauth2Handler
}

func InjectHandler

func InjectHandler(usecases2 *usecases.Usecase, logger *logrus.Logger, defaultJoins ...string) *Handler

Directories

Path Synopsis
routes

Jump to

Keyboard shortcuts

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