package
Version:
v1.8.2
Opens a new window with list of versions in this module.
Published: Jul 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Init function can perform some initialization work of different databases.
type DBAdapter interface {
ListFileShare(ctx context.Context, limit, offset int, query interface{}) ([]*model.FileShare, error)
GetFileShare(ctx context.Context, id string) (*model.FileShare, error)
GetFileShareByName(ctx context.Context, id string) (*model.FileShare, error)
CreateFileShare(ctx context.Context, fileshare *model.FileShare) (*model.FileShare, error)
UpdateFileShare(ctx context.Context, fileshare *model.FileShare) (*model.FileShare, error)
DeleteFileShare(ctx context.Context, id string) error
}
DbAdapter is a global variable that controls database module.
Source Files
¶
Directories
¶
drivers
|
|
|
|
Click to show internal directories.
Click to hide internal directories.