Documentation
¶
Index ¶
- type CurrenciesResponse
- type ErrorResponse
- type Option
- type RoutesFn
- type Server
- func (s *Server) Currencies(w http.ResponseWriter, r *http.Request)
- func (s *Server) OpenAPI(w http.ResponseWriter, _ *http.Request)
- func (s *Server) RatesForBase(w http.ResponseWriter, r *http.Request)
- func (s *Server) RatesForPair(w http.ResponseWriter, r *http.Request)
- func (s *Server) Redoc(w http.ResponseWriter, _ *http.Request)
- func (s *Server) Routes(fn RoutesFn)
- func (s *Server) Serve(ctx context.Context) error
- func (s *Server) Sources(w http.ResponseWriter, r *http.Request)
- type SourcesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrenciesResponse ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type Option ¶
type Option func(s *Server)
func WithConfig ¶
WithConfig specifies the config for the server
func WithLogger ¶
WithLogger specifies the logger for the server
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Currencies ¶
func (s *Server) Currencies(w http.ResponseWriter, r *http.Request)
func (*Server) RatesForBase ¶
func (s *Server) RatesForBase(w http.ResponseWriter, r *http.Request)
func (*Server) RatesForPair ¶
func (s *Server) RatesForPair(w http.ResponseWriter, r *http.Request)
type SourcesResponse ¶
Click to show internal directories.
Click to hide internal directories.