This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package httperrors | |
| type ApiError struct { | |
| Message string `json:"message"` | |
| Code int `json:"code"` | |
| Name string `json:"name"` | |
| Error error `json:"-"` | |
| Detail string `json:"-"` | |
| Validation []string `json:"validation,omitempty"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package errors | |
| type ApiError struct { | |
| Message string `json:"message"` | |
| Code int `json:"code"` | |
| Name string `json:"name"` | |
| Error error `json:"-"` | |
| Detail string `json:"-"` | |
| Validation []string `json:"validation,omitempty"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package errors | |
| type ApiError struct { | |
| Message string `json:"message"` | |
| Code int `json:"code"` | |
| Name string `json:"name"` | |
| Error error `json:"-"` | |
| Validation []string `json:"validation,omitempty"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package data | |
| import ( | |
| "context" | |
| "github.com/brianfromlife/golang-ecs/pkg/config" | |
| "github.com/brianfromlife/golang-ecs/pkg/models" | |
| "github.com/pkg/errors" | |
| "go.mongodb.org/mongo-driver/bson" | |
| "go.mongodb.org/mongo-driver/bson/primitive" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package errors | |
| type ApiError struct { | |
| Message string `json:"message"` | |
| Code int `json:"code"` | |
| Name string `json:"name"` | |
| Validation []string `json:"validation,omitempty"` | |
| } | |
| func BindError() *ApiError { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package httpmodels | |
| import ( | |
| "github.com/brianfromlife/golang-ecs/pkg/errors" | |
| "github.com/labstack/echo/v4" | |
| ) | |
| type RegisterRequest struct { | |
| Username string `json:"username"` | |
| Password string `json:"password"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package models | |
| import ( | |
| "go.mongodb.org/mongo-driver/bson/primitive" | |
| ) | |
| type User struct { | |
| ID primitive.ObjectID `bson:"_id"` | |
| Username string `json:"username"` | |
| Password string `json:"-"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmd | |
| - api | |
| - main.go | |
| internal | |
| - api | |
| - health.go | |
| - api.go | |
| pkg | |
| - data | |
| - data.go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmd | |
| - api | |
| - main.go | |
| internal | |
| - api | |
| - health.go | |
| - api.go | |
| pkg | |
| - data | |
| go.mod |