MCPcopy Create free account
hub / github.com/apache/devlake / RestConnection

Struct RestConnection

backend/helpers/pluginhelper/api/connection.go:42–46  ·  view source on GitHub ↗

RestConnection implements the ApiConnection interface

Source from the content-addressed store, hash-verified

40
41// RestConnection implements the ApiConnection interface
42type 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 "/"
49func (rc RestConnection) GetEndpoint() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected