setting

package
v0.0.0-...-46aa976 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const KeySyncIntegration = "sync_integration"

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationModel

type IntegrationModel struct {
	Type    string            `json:"type"`
	Details map[string]string `json:"details"`
}

type RepoImpl

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

func New

func New(db *sql.DB) *RepoImpl

func (*RepoImpl) GetSyncIntegration

func (r *RepoImpl) GetSyncIntegration(ctx context.Context) (syncintegration.SyncIntegration, error)

func (*RepoImpl) SetSyncIntegration

func (r *RepoImpl) SetSyncIntegration(ctx context.Context, integration syncintegration.SyncIntegration) error

type SettingModel

type SettingModel struct {
	Key   string
	Value string
}

func CreateModelFromSyncIntegration

func CreateModelFromSyncIntegration(integration syncintegration.SyncIntegration) (SettingModel, error)

func (SettingModel) ToSyncIntegration

func (sm SettingModel) ToSyncIntegration() (syncintegration.SyncIntegration, error)

Jump to

Keyboard shortcuts

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