data

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DispatchStorage

func DispatchStorage(storage StorageType, table StorageFuncTable)

func DispatchTarget

func DispatchTarget(target TargetType, table TargetFuncTable)

Types

type SettingType

type SettingType struct {
	Target  TargetType
	Storage StorageType
}

type StorageFuncTable

type StorageFuncTable struct {
	Gcs StorageGcsFunc
}

type StorageGcsFunc

type StorageGcsFunc func(config StorageGcsType)

--------------------- storage funcs

type StorageGcsType

type StorageGcsType struct {
	Bucket string
	Dir    string
}

type StorageType

type StorageType struct {
	Kind   string
	Config interface{}
}

type TargetFuncTable

type TargetFuncTable struct {
	Mysql TargetMysqlFunc
}

type TargetMysqlFunc

type TargetMysqlFunc func(config TargetMysqlType)

--------------------- target funcs

type TargetMysqlType

type TargetMysqlType struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
}

type TargetType

type TargetType struct {
	Kind   string
	Config interface{}
}

type VersionType

type VersionType struct {
	Id      string `json:"id"`
	Time    int64  `json:"time"`
	Message string `json:"message"`
}

---------------------

Jump to

Keyboard shortcuts

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