Skip to content

Commit

Permalink
Add json tags to target options
Browse files Browse the repository at this point in the history
These are used when saving the state file
  • Loading branch information
kevinmcconnell committed Jul 29, 2024
1 parent 0837229 commit 3838748
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/server/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ type inflightRequest struct {
type inflightMap map[*http.Request]*inflightRequest

type TargetOptions struct {
HealthCheckConfig HealthCheckConfig
ResponseTimeout time.Duration
BufferRequests bool
BufferResponses bool
MaxMemoryBufferSize int64
MaxRequestBodySize int64
MaxResponseBodySize int64
HealthCheckConfig HealthCheckConfig `json:"health_check_config"`
ResponseTimeout time.Duration `json:"response_timeout"`
BufferRequests bool `json:"buffer_requests"`
BufferResponses bool `json:"buffer_responses"`
MaxMemoryBufferSize int64 `json:"max_memory_buffer_size"`
MaxRequestBodySize int64 `json:"max_request_body_size"`
MaxResponseBodySize int64 `json:"max_response_body_size"`
}

type Target struct {
Expand Down

0 comments on commit 3838748

Please sign in to comment.