mirror of
				https://github.com/traefik/traefik.git
				synced 2025-10-31 16:31:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			429 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			429 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build !linux && !darwin
 | |
| 
 | |
| package plugins
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 
 | |
| 	"github.com/tetratelabs/wazero"
 | |
| )
 | |
| 
 | |
| type ContextApplier func(ctx context.Context) context.Context
 | |
| 
 | |
| // InstantiateHost instantiates the Host module.
 | |
| func InstantiateHost(ctx context.Context, runtime wazero.Runtime, mod wazero.CompiledModule, settings Settings) (ContextApplier, error) {
 | |
| 	return func(ctx context.Context) context.Context {
 | |
| 		return ctx
 | |
| 	}, nil
 | |
| }
 |