RestConnection implements the ApiConnection interface
| 40 | |
| 41 | // RestConnection implements the ApiConnection interface |
| 42 | type RestConnection struct { |
| 43 | Endpoint string `mapstructure:"endpoint" validate:"required" json:"endpoint"` |
| 44 | Proxy string `mapstructure:"proxy" json:"proxy"` |
| 45 | RateLimitPerHour int `comment:"api request rate limit per hour" json:"rateLimitPerHour"` |
| 46 | } |
| 47 | |
| 48 | // GetEndpoint returns the API endpoint of the connection, which always ends with "/" |
| 49 | func (rc RestConnection) GetEndpoint() string { |
nothing calls this directly
no outgoing calls
no test coverage detected