Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RentEventResource = resource.Resource{ Name: "rent_events", PrimaryKey: "uuid", Fields: map[string]resource.Field{ "uuid": {Validator: "uuid4"}, "user_id": {Validator: "uuid4"}, "vehicle_id": {Validator: "uuid4"}, "starting_time": {}, "hours": {}, "checkin_time": {}, "dropoff_time": {}, "cancel_time": {}, "created_at": {}, "deleted_at": {}, "updated_at": {}, }, SoftDeleteField: null.NewString("deleted_at", true), CreatedAtField: null.NewString("created_at", true), UpdatedAtField: null.NewString("updated_at", true), }
View Source
var UserResource = resource.Resource{ Name: "users", PrimaryKey: "uuid", Fields: map[string]resource.Field{ "uuid": {Validator: "uuid4"}, "first_name": {}, "last_name": {}, "phone": {}, "credit_card": {Unsearchable: true}, "created_at": {}, "deleted_at": {}, "updated_at": {}, }, SoftDeleteField: null.NewString("deleted_at", true), CreatedAtField: null.NewString("created_at", true), UpdatedAtField: null.NewString("updated_at", true), }
View Source
var VehicleResource = resource.Resource{ Name: "vehicles", PrimaryKey: "uuid", Fields: map[string]resource.Field{ "uuid": {Validator: "uuid4"}, "license_plate": {}, "state": {}, "archived": {}, "year": {}, "price_per_hour": {}, "lot": {}, "created_at": {}, "deleted_at": {}, "updated_at": {}, }, SoftDeleteField: null.NewString("deleted_at", true), CreatedAtField: null.NewString("created_at", true), UpdatedAtField: null.NewString("updated_at", true), }
Functions ¶
func LoggingHandlerFunc ¶ added in v1.2.1
func LoggingHandlerFunc(h http.Handler) http.HandlerFunc
func NewLoggingResponseWriter ¶ added in v1.2.1
func NewLoggingResponseWriter(w http.ResponseWriter) loggingResponseWriter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.