Skip to content

Commit

Permalink
added go project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdoAnss committed Dec 8, 2024
1 parent efe4fdf commit a410c3e
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 16 deletions.
46 changes: 30 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,36 @@ The project follows a monolithic package architecture, organized into logical co

```
go-fantasy-pl/
├── client/ # Core HTTP client implementation
│ ├── client.go # Main client struct and configuration
│ └── rate.go # Rate limiting implementation
├── models/ # Data structures for API responses
│ ├── player.go # Player-related structs
│ ├── team.go # Team-related structs
│ └── gameweek.go # Gameweek-related structs
├── endpoints/ # API endpoint implementations
│ ├── bootstrap.go # General game data
│ ├── fixtures.go # Match fixtures
│ └── leagues.go # League standings
├── utils/ # Helper functions
│ ├── cache.go # Caching implementation
│ └── helpers.go # General utility functions
└── examples/ # Usage examples
└── basic.go # Basic usage patterns
├── .github/ # GitHub-specific configurations
│ └── workflows/ # GitHub Actions workflows
│ └── ci.yml # Continuous Integration workflow
├── client/ # Core HTTP client implementation
│ ├── client.go # Main client struct and configuration
│ ├── client_test.go # Tests for client functionality
│ ├── options.go # Configuration options for the client
│ └── rate_limiter.go # Rate limiting implementation
├── models/ # Data structures for API responses
│ ├── player.go # Player-related structs
│ ├── team.go # Team-related structs
│ ├── gameweek.go # Gameweek-related structs
│ ├── fixture.go # Fixture-related structs
│ └── league.go # League-related structs
├── endpoints/ # API endpoint implementations
│ ├── bootstrap.go # General game data
│ ├── players.go # Player-related endpoints
│ ├── teams.go # Team-related endpoints
│ ├── fixtures.go # Match fixtures
│ └── leagues.go # League standings
├── internal/ # Internal packages
│ └── cache/ # Caching functionality
│ └── cache.go # Implementation of caching mechanism
├── examples/ # Usage examples
│ └── basic/
│ └── main.go # Basic usage examples
├── .gitignore # Ignored files and directories
├── LICENSE # License for the project
├── README.md # Project documentation
└── go.mod # Go module configuration
```

## Main Components
Expand Down
Empty file added client/client.go
Empty file.
Empty file added client/client_test.go
Empty file.
Empty file added client/options.go
Empty file.
Empty file added client/rate_limiter.go
Empty file.
Empty file added endpoints/bootstrap.go
Empty file.
Empty file added endpoints/fixtures.go
Empty file.
Empty file added endpoints/leagues.go
Empty file.
Empty file added endpoints/players.go
Empty file.
Empty file added endpoints/teams.go
Empty file.
Empty file added examples/basic/main.go
Empty file.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/AbdoAnss/go-fantasy-pl

go 1.23.3
Empty file added internal/cache/cache.go
Empty file.
Empty file added models/fixture.go
Empty file.
Empty file added models/gameweek.go
Empty file.
Empty file added models/league.go
Empty file.
Empty file added models/player.go
Empty file.
Empty file added models/team.go
Empty file.

0 comments on commit a410c3e

Please sign in to comment.