Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server *config.Server
General *GeneralConfig
DataController *DataControllerConfig
}
Config is a struct that holds the configuration for Service
type DataControllerConfig ¶
type DataControllerConfig struct {
Type string
SimpleDataDir string
SimpleTempDir string
SimpleChecksum string
SimpleVerifyClientChecksum bool
}
DataControllerConfig is a struct that holds configuration parameters for a data controller.
type GeneralConfig ¶
type GeneralConfig struct {
BaseURL string
JWTKey, JWTSigningMethod string
AuthenticationServiceBaseURL string
RequestBodyMaxSize int64
}
GeneralConfig contains configuration parameters for general parts of the service.
type Service ¶
type Service struct {
Config *Config
SDK *sdk.SDK
DataController datacontroller.DataController
}
Service implements server.Service and handle all requests to the server.
func (*Service) Download ¶
func (s *Service) Download(w http.ResponseWriter, r *http.Request)
Download streams a file to the client.
func (*Service) Endpoints ¶
func (s *Service) Endpoints() map[string]map[string]http.HandlerFunc
Endpoints is a listing of all endpoints available in the Service.
func (*Service) Middleware ¶
Middleware provides an http.Handler hook wrapped around all requests. In this implementation, we authenticate the request.
Click to show internal directories.
Click to hide internal directories.