authenticationhandler

package
v0.0.0-...-a9081ec Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package authenticationhandler provide a server and handlers for RESTful HTTP requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *Config)

New will initialize all accessible route for authentication microservice

Types

type Config

type Config struct {
	R          *gin.Engine
	Logger     *otelzap.Logger
	HostConfig *configs.Host
	JwtConfig  *configs.Jwt

	AdminService   adminservice.Interface
	StudentService studentservice.Interface
	TokenService   tokenservice.Interface
	MailerService  mailerservice.Interface
	Tracer         trace.Tracer
	BaseURL        string
}

Config will hold services that will be injected into this handler layer on handler initialization

Jump to

Keyboard shortcuts

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