container

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package container accesses the data which sharing in overall application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	GetConfig() *config.Configuration
	GetRepository() repository.Repository
	GetLogger() logger.Logger
	GetAuthentication() authentication.Authentication
	GetValidator() validator.CustomValidator
}

Container represents an interface for accessing the data which sharing in overall application.

func New

func New(conf *config.Configuration) (Container, error)

New is constructor.

Directories

Path Synopsis
Package authentication uses Casbin(https://github.com/casbin/casbin) to load auth rules from database.
Package authentication uses Casbin(https://github.com/casbin/casbin) to load auth rules from database.

Jump to

Keyboard shortcuts

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