service

package
v0.0.0-...-3b47b55 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextServiceKey = "vega.run.serviceCtx"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Log         *logrus.Logger
	Actions     model.ActionService
	Admissions  model.AdmissionService
	Resources   model.ResourceService
	Permissions model.PermissionService
	Roles       model.RoleService
	Users       model.UserService
	Settings    model.SettingService
}

func FromContext

func FromContext(c *gin.Context) *Service

func NewService

func NewService(config *config.Config, log *logrus.Logger) *Service

func (*Service) GetLogger

func (s *Service) GetLogger() *logrus.Logger

func (*Service) WithContext

func (s *Service) WithContext(c *gin.Context)

Directories

Path Synopsis
shared
db

Jump to

Keyboard shortcuts

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