Skip to content

Commit

Permalink
feat: add engine and webhook server framework code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Aug 29, 2023
1 parent 7a59905 commit d64ad41
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/engine/engine.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package engine
1 change: 1 addition & 0 deletions pkg/webhook/handlers/resource.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package handlers
15 changes: 15 additions & 0 deletions pkg/webhook/server.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Webhook Server is used to
package webhook

import "net/http"

type Server interface {
// Run TLS server in separate thread and returns control immediately
Run(<-chan struct{})
// Stop TLS server and returns control after the server is shut down
Stop()
}

type server struct {
server http.Server
}

0 comments on commit d64ad41

Please sign in to comment.