Documentation ¶
Index ¶
- Constants
- func Health(path url.URL, client HttpClient, uuid string) (*http.Response, error)
- type Alexandros
- type AlexandrosImpl
- type ClientConfig
- type ClientImpl
- type Dionysios
- type DionysiosImpl
- type FakeClientImpl
- type Herodotos
- type HerodotosImpl
- func (h *HerodotosImpl) Analyze(body []byte, uuid string) (*http.Response, error)
- func (h *HerodotosImpl) Check(body []byte, uuid string) (*http.Response, error)
- func (h *HerodotosImpl) Create(body []byte, uuid string) (*http.Response, error)
- func (h *HerodotosImpl) Health(uuid string) (*http.Response, error)
- func (h *HerodotosImpl) Options(uuid string) (*http.Response, error)
- type HttpClient
- type Odysseia
- type OdysseiaApi
- type OdysseiaClient
- type Sokrates
- type SokratesImpl
- func (s *SokratesImpl) Check(body []byte, requestID string) (*http.Response, error)
- func (s *SokratesImpl) Create(body []byte, requestID string) (*http.Response, error)
- func (s *SokratesImpl) Health(uuid string) (*http.Response, error)
- func (s *SokratesImpl) Options(quizType string, requestID string) (*http.Response, error)
- type Solon
- type SolonImpl
Constants ¶
View Source
const ( HeaderKey string = "aischylos" QuizType string = "quizType" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alexandros ¶
type AlexandrosImpl ¶
type AlexandrosImpl struct { Scheme string BaseUrl string Client HttpClient }
func NewAlexnadrosConfig ¶
func NewAlexnadrosConfig(schema OdysseiaApi, ca []byte) (*AlexandrosImpl, error)
func NewFakeAlexandrosConfig ¶
func NewFakeAlexandrosConfig(scheme, baseUrl string, client HttpClient) (*AlexandrosImpl, error)
type ClientConfig ¶
type ClientConfig struct { Ca []byte Solon OdysseiaApi Ptolemaios OdysseiaApi Herodotos OdysseiaApi Dionysios OdysseiaApi Alexandros OdysseiaApi Sokrates OdysseiaApi }
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
type DionysiosImpl ¶
type DionysiosImpl struct { Scheme string BaseUrl string Client HttpClient }
func NewDionysiosConfig ¶
func NewDionysiosConfig(schema OdysseiaApi, ca []byte) (*DionysiosImpl, error)
func NewFakeDionysiosConfig ¶
func NewFakeDionysiosConfig(scheme, baseUrl string, client HttpClient) (*DionysiosImpl, error)
type FakeClientImpl ¶
type FakeClientImpl struct {
// contains filtered or unexported fields
}
type HerodotosImpl ¶
type HerodotosImpl struct { Scheme string BaseUrl string Client HttpClient }
func NewFakeHerodotosConfig ¶
func NewFakeHerodotosConfig(scheme, baseUrl string, client HttpClient) (*HerodotosImpl, error)
func NewHerodotosConfig ¶
func NewHerodotosConfig(schema OdysseiaApi, ca []byte) (*HerodotosImpl, error)
type HttpClient ¶
type HttpClient interface { Get(u *url.URL, uuid string) (*http.Response, error) Post(u *url.URL, body []byte, uuid string) (*http.Response, error) }
func NewFakeHttpClient ¶
func NewFakeHttpClient(responseBodies []string, codes []int) HttpClient
func NewHttpClient ¶
func NewHttpClient(caCert []byte, certs []tls.Certificate) HttpClient
type Odysseia ¶
type Odysseia struct {
// contains filtered or unexported fields
}
func (*Odysseia) Alexandros ¶
func (o *Odysseia) Alexandros() Alexandros
type OdysseiaApi ¶
type OdysseiaApi struct { Url string Scheme string Cert []tls.Certificate }
type OdysseiaClient ¶
type OdysseiaClient interface { Solon() Solon Herodotos() Herodotos Alexandros() Alexandros Sokrates() Sokrates Dionysios() Dionysios }
func NewClient ¶
func NewClient(config ClientConfig) (OdysseiaClient, error)
func NewFakeClient ¶
func NewFakeClient(config ClientConfig, codes []int, responses []string) (OdysseiaClient, error)
type SokratesImpl ¶
type SokratesImpl struct { Scheme string BaseUrl string Client HttpClient }
func NewFakeSokratesConfig ¶
func NewFakeSokratesConfig(scheme, baseUrl string, client HttpClient) (*SokratesImpl, error)
func NewSokratesConfig ¶
func NewSokratesConfig(schema OdysseiaApi, ca []byte) (*SokratesImpl, error)
type SolonImpl ¶
type SolonImpl struct { Scheme string BaseUrl string Client HttpClient }
func NewFakeSolonImpl ¶
func NewFakeSolonImpl(scheme, baseUrl string, client HttpClient) (*SolonImpl, error)
func NewSolonImpl ¶
func NewSolonImpl(schema OdysseiaApi, ca []byte) (*SolonImpl, error)
func (*SolonImpl) OneTimeToken ¶
Click to show internal directories.
Click to hide internal directories.