add context for modules

This commit is contained in:
ginuerzh
2023-04-18 20:46:44 +08:00
parent f3482d7cd8
commit a2115a3d38
8 changed files with 24 additions and 15 deletions

View File

@ -1,5 +1,7 @@
package ingress
import "context"
type Ingress interface {
Get(host string) string
Get(ctx context.Context, host string) string
}