Documentation
¶
Index ¶
- Constants
- func InitAuthenticationService(userRepo authentication.UserRepository, ...) authentication.Service
- func InitAuthorizationService(ctx context.Context, db *sql.DB) (*authorization.Service, error)
- func InitBlogService(authzSvc *authorization.Service, postRepo blog.PostRepository, ...) blog.Service
- func InitDatabase(ctx context.Context, dsn string) (*sql.DB, error)
- func InitMediaService(authzSvc *authorization.Service, mediaItemRepo media.ItemRepository, ...) media.Service
- func RandomHex(n int) string
- func Run(ctx context.Context) (err error)
Constants ¶
View Source
const ( HTTPServerTimeOut = 60 * time.Second ShutdownTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func InitAuthenticationService ¶
func InitAuthenticationService( userRepo authentication.UserRepository, sessionRepo authentication.SessionRepository, passwordResetTokenRepo authentication.PasswordResetTokenRepository, authzSvc *authorization.Service, ) authentication.Service
func InitBlogService ¶
func InitBlogService( authzSvc *authorization.Service, postRepo blog.PostRepository, commentRepo blog.CommentRepository, ) blog.Service
func InitMediaService ¶
func InitMediaService( authzSvc *authorization.Service, mediaItemRepo media.ItemRepository, mediaBlobBucket *blob.Bucket, ) media.Service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.