 package
    
    
    
      package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v1.3.1
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Jun 16, 2021
  
      
  
    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
      ¶
      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
      ¶
      Source Files
      ¶
    
   
      
      
        
  
    
       Directories
      ¶
      Directories
      ¶
    
    
    
      
      
          
  
  
    | 
        drivers
       |  | 
      |  |  | 
      
    
   
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.