-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Sakib Md Al Amin edited this page Dec 17, 2020
·
1 revision
Welcome to the apiServer wiki!
- apiServer (our root directory for the API)
- main.go (entry point of our program, starts with cmd.Execute())
- cmd (for CLI tool & commands)
- root.go (contains rootCmd)
- start.go (contains startCmd)
- api
- api.go (handles api endpoints implementation with router)
- api_test.go (contains tests for the API endpoints)
- auth
- auth.go (handles BasicAuth & JWT auth in separate func)
- model
- model.go (contains the User struct)
- data
- data.go (contains the slice or map containing our data)
- go.mod
- go.sum