| package dto |
|
|
| type UpstreamDTO struct { |
| ID int `json:"id,omitempty"` |
| Name string `json:"name" binding:"required"` |
| BaseURL string `json:"base_url" binding:"required"` |
| Endpoint string `json:"endpoint"` |
| } |
|
|
| type UpstreamRequest struct { |
| ChannelIDs []int64 `json:"channel_ids"` |
| Upstreams []UpstreamDTO `json:"upstreams"` |
| Timeout int `json:"timeout"` |
| } |
|
|
| |
| type TestResult struct { |
| Name string `json:"name"` |
| Status string `json:"status"` |
| Error string `json:"error,omitempty"` |
| } |
|
|
| |
| |
| |
|
|
| type DifferenceItem struct { |
| Current interface{} `json:"current"` |
| Upstreams map[string]interface{} `json:"upstreams"` |
| Confidence map[string]bool `json:"confidence"` |
| } |
|
|
| type SyncableChannel struct { |
| ID int `json:"id"` |
| Name string `json:"name"` |
| BaseURL string `json:"base_url"` |
| Status int `json:"status"` |
| Type int `json:"type"` |
| } |
|
|