github.com/aacfactory/fns@v1.2.86-0.20240310083819-80d667fc0a17/docs/structure.md (about)

     1  # Project structure
     2  
     3  ---
     4  
     5  
     6  ```
     7  |-- main.go                             # main
     8  |-- configs/                            # config files and tls files .etc
     9       |-- fns.yaml                       # default config
    10       |-- fns-local.yaml                 # set FNS-ACTIVE=local, which is used for local deveplment.
    11       |-- fns-dev.yaml                   # FNS-ACTIVE=dev
    12       |-- fns-test.yaml                  # FNS-ACTIVE=test
    13       |-- fns-prod.yaml                  # FNS-ACTIVE=prod
    14  |-- hooks/                              # hooks
    15  |-- internal/
    16       |-- generator/
    17            |-- main.go                   # code generator bin
    18  |-- modules/                            # biz modules
    19       |-- services.go                    # all services (it will be auto regenerated after invoking `go generate` command)
    20       |-- dependencies.go                # dependency services 
    21       |-- foo/                           # biz service
    22            |-- doc.go                    # definition of service
    23            |-- fns.go                    # fn service (it will be auto regenerated after invoking `go generate` command)
    24            |-- some_fn.go                # fn
    25  |-- repositories/                       # database access objects
    26       |-- some_db_model.go               # database access object
    27  
    28  ```