mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			511 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			511 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package persistence
 | 
						|
 | 
						|
import "mayfly-go/internal/machine/domain/repository"
 | 
						|
 | 
						|
var (
 | 
						|
	machineRepo       repository.Machine       = newMachineRepo()
 | 
						|
	machineFileRepo   repository.MachineFile   = newMachineFileRepo()
 | 
						|
	machineScriptRepo repository.MachineScript = newMachineScriptRepo()
 | 
						|
)
 | 
						|
 | 
						|
func GetMachineRepo() repository.Machine {
 | 
						|
	return machineRepo
 | 
						|
}
 | 
						|
 | 
						|
func GetMachineFileRepo() repository.MachineFile {
 | 
						|
	return machineFileRepo
 | 
						|
}
 | 
						|
 | 
						|
func GetMachineScriptRepo() repository.MachineScript {
 | 
						|
	return machineScriptRepo
 | 
						|
}
 |