Documentation
¶
Index ¶
- Variables
- type Access
- type Config
- type Impersonate
- func (this Impersonate) Get(url string) (resp *http.Response, err error)
- func (this Impersonate) GetJSON(url string, result interface{}) (err error)
- func (this Impersonate) Post(url string, contentType string, body io.Reader) (resp *http.Response, err error)
- func (this Impersonate) PostJSON(url string, body interface{}, result interface{}) (err error)
- type OpenidToken
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeNow = func() time.Time { return time.Now() }
to replace time when testing
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct {
// contains filtered or unexported fields
}
func (*Access) Ensure ¶
func (this *Access) Ensure() (token Impersonate, err error)
type Config ¶
type Config struct {
ServerPort string `json:"server_port"`
PrometheusPort string `json:"prometheus_port"`
AuthExpirationTimeBuffer float64 `json:"auth_expiration_time_buffer"`
AuthEndpoint string `json:"auth_endpoint"`
AuthClientId string `json:"auth_client_id"`
AuthClientSecret string `json:"auth_client_secret"`
DeviceRepositoryUrl string `json:"device_repository_url"`
ConceptRepoRefreshInterval int64 `json:"concept_repo_refresh_interval"`
ConverterUrl string `json:"converter_url"`
ReturnUnknownPathAsNull bool `json:"return_unknown_path_as_null"`
Debug bool `json:"debug"`
KafkaUrl string `json:"kafka_url"` //optional, used for cache invalidation
CacheInvalidationKafkaTopics []string `json:"cache_invalidation_kafka_topics"` //optional, used for cache invalidation
InitTopics bool `json:"init_topics"`
LogLevel string `json:"log_level"`
// contains filtered or unexported fields
}
type Impersonate ¶
type Impersonate string
func (Impersonate) GetJSON ¶
func (this Impersonate) GetJSON(url string, result interface{}) (err error)
func (Impersonate) PostJSON ¶
func (this Impersonate) PostJSON(url string, body interface{}, result interface{}) (err error)
Click to show internal directories.
Click to hide internal directories.