service

package
v0.0.0-...-dcedfe7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenService

func NewTokenService(c *TokenServiceConfig) model.TokenService

NewTokenService is a factory function for initializing a UserService with its repository layer dependencies

func NewUserService

func NewUserService(c *USConfig) model.UserService

NewUserService is a factory function for initializing a UserService with its repository layer dependencies

Types

type TokenServiceConfig

type TokenServiceConfig struct {
	AccessTokenInfo  model.AccessTokenInfo
	RefreshTokenInfo model.RefreshTokenInfo
	TokenRepository  model.TokenRepository
}

TokenServiceConfig will hold repositories that will eventually be injected into this service layer

type USConfig

type USConfig struct {
	UserRepository  model.UserRepository
	ImageRepository model.ImageRepository
}

USConfig will hold repositories that will eventually be injected into this service layer

Jump to

Keyboard shortcuts

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