mirror of
https://github.com/dalbodeule/hop-gate.git
synced 2026-09-21 08:11:06 +09:00
- replace gRPC/DTLS tunnel paths with TLS + yamux transport - remove legacy protocol, protobuf, DTLS, and proxy implementations - simplify server and client entrypoints around yamux - update configuration, metrics, API, and architecture documentation - add bidirectional yamux session tests - verify with go test ./...
18 lines
445 B
Go
18 lines
445 B
Go
package tunnel
|
|
|
|
import "context"
|
|
|
|
// DomainValidator validates the client credentials presented on the control stream.
|
|
type DomainValidator interface {
|
|
ValidateDomainAPIKey(ctx context.Context, domain, clientAPIKey string) error
|
|
}
|
|
|
|
// Response is the response returned by a tunnel transport to the public HTTP ingress.
|
|
type Response struct {
|
|
RequestID string
|
|
Status int
|
|
Header map[string][]string
|
|
Body []byte
|
|
Error string
|
|
}
|