plugin_common

package
v1.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginCommonService

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

PluginCommonService user service

func NewPluginCommonService

func NewPluginCommonService(
	pluginConfigRepo PluginConfigRepo,
	configRepo config.ConfigRepo) *PluginCommonService

NewPluginCommonService new report service

func (*PluginCommonService) UpdatePluginConfig

func (ps *PluginCommonService) UpdatePluginConfig(ctx context.Context, req *schema.UpdatePluginConfigReq) (err error)

UpdatePluginConfig update plugin config

func (*PluginCommonService) UpdatePluginStatus

func (ps *PluginCommonService) UpdatePluginStatus(ctx context.Context) (err error)

UpdatePluginStatus update plugin status

type PluginConfigRepo

type PluginConfigRepo interface {
	SavePluginConfig(ctx context.Context, pluginSlugName, configValue string) (err error)
	GetPluginConfigAll(ctx context.Context) (pluginConfigs []*entity.PluginConfig, err error)
}

Jump to

Keyboard shortcuts

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