srv

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() (string, string, string)

Types

type JsonPlugin

type JsonPlugin struct {
	Config *JsonPluginConfig
	// contains filtered or unexported fields
}

func NewJsonPlugin

func NewJsonPlugin() *JsonPlugin

func (*JsonPlugin) Close

func (s *JsonPlugin) Close() error

func (*JsonPlugin) Delete

func (s *JsonPlugin) Delete(userId string) error

func (*JsonPlugin) GetConfig

func (s *JsonPlugin) GetConfig() plugin.PluginConfig

func (*JsonPlugin) Open

func (s *JsonPlugin) Open(cfg plugin.PluginConfig, operation plugin.OperationType) error

func (*JsonPlugin) Read

func (s *JsonPlugin) Read() ([]*api.User, error)

func (*JsonPlugin) Write

func (s *JsonPlugin) Write(user *api.User) error

type JsonPluginConfig

type JsonPluginConfig struct {
	File string `description:"Json file path" kind:"attribute" mode:"normal" readonly:"false"`
}

func (*JsonPluginConfig) Description

func (c *JsonPluginConfig) Description() string

func (*JsonPluginConfig) Validate

func (c *JsonPluginConfig) Validate() error

Jump to

Keyboard shortcuts

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