externalLink

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ExternalLinkRestHandler

type ExternalLinkRestHandler interface {
	CreateExternalLinks(w http.ResponseWriter, r *http.Request)
	GetExternalLinkMonitoringTools(w http.ResponseWriter, r *http.Request)
	GetExternalLinks(w http.ResponseWriter, r *http.Request)
	UpdateExternalLink(w http.ResponseWriter, r *http.Request)
	DeleteExternalLink(w http.ResponseWriter, r *http.Request) // Update is_active to false link
}

type ExternalLinkRestHandlerImpl

type ExternalLinkRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewExternalLinkRestHandlerImpl

func NewExternalLinkRestHandlerImpl(logger *zap.SugaredLogger,
	externalLinkService externalLink.ExternalLinkService,
	userService user.UserService,
	enforcer casbin.Enforcer,
) *ExternalLinkRestHandlerImpl
func (impl ExternalLinkRestHandlerImpl) CreateExternalLinks(w http.ResponseWriter, r *http.Request)
func (impl ExternalLinkRestHandlerImpl) DeleteExternalLink(w http.ResponseWriter, r *http.Request)

func (ExternalLinkRestHandlerImpl) GetExternalLinkMonitoringTools

func (impl ExternalLinkRestHandlerImpl) GetExternalLinkMonitoringTools(w http.ResponseWriter, r *http.Request)
func (impl ExternalLinkRestHandlerImpl) GetExternalLinks(w http.ResponseWriter, r *http.Request)
func (impl ExternalLinkRestHandlerImpl) UpdateExternalLink(w http.ResponseWriter, r *http.Request)

type ExternalLinkRouter

type ExternalLinkRouter interface {
	InitExternalLinkRouter(gocdRouter *mux.Router)
}

type ExternalLinkRouterImpl

type ExternalLinkRouterImpl struct {
	// contains filtered or unexported fields
}

func NewExternalLinkRouterImpl

func NewExternalLinkRouterImpl(externalLinkRestHandler ExternalLinkRestHandler) *ExternalLinkRouterImpl

func (ExternalLinkRouterImpl) InitExternalLinkRouter

func (impl ExternalLinkRouterImpl) InitExternalLinkRouter(configRouter *mux.Router)

Jump to

Keyboard shortcuts

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