model

package
v0.0.0-...-13643d7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServiceNotExist = errors.New("service not exist")
)

Functions

func Init

func Init() (err error)

Types

type Config

type Config struct {
	backend.ConfigItem

	Key string `json:"key,omitempty"`
}

func NewConfig

func NewConfig() *Config

func (Config) DeleteKey

func (m Config) DeleteKey(service, key string) error

func (Config) GetKeys

func (m Config) GetKeys(service string) ([]*Config, error)

func (Config) UpdateKey

func (m Config) UpdateKey(service, key string) error

type Service

type Service struct{}

func NewService

func NewService() *Service

func (Service) Delete

func (m Service) Delete(service string) error

func (Service) GetNames

func (m Service) GetNames() []string

func (Service) Sync

func (m Service) Sync()

Jump to

Keyboard shortcuts

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