plugin_common

package
v0.0.0-...-883d24b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 12 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,
	configService *config.ConfigService,
	data *data.Data,
) *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