mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Moves main into cmd dir. (#977)
This commit is contained in:
committed by
Denis Makogon
parent
b81ac1d2d2
commit
999820d15b
14
cmd/fnserver/main.go
Normal file
14
cmd/fnserver/main.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/fnproject/fn/api/server"
|
||||
// EXTENSIONS: Add extension imports here or use `fn build-server`. Learn more: https://github.com/fnproject/fn/blob/master/docs/operating/extending.md
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx := context.Background()
|
||||
funcServer := server.NewFromEnv(ctx)
|
||||
funcServer.Start(ctx)
|
||||
}
|
||||
Reference in New Issue
Block a user