Documentation
¶
Index ¶
- func Handle(resources []Resource) http.Handler
- func HandleAssets(pref string, fs http.FileSystem) http.Handler
- func HandleFeatures() http.Handler
- func HandleIdpDemo(assetBasePath string, ...) http.Handler
- func HandleRoot(assetBasePath string, ...) http.Handler
- func NewVacationRequestHandler(assetBasePath string, ...) *vacationRequestHandler
- func Serve(l net.Listener, handler http.Handler) error
- type BaseHtmlDto
- type FeatureDto
- type FeaturesDto
- type HalLinkObject
- type HalResource
- type IdpDemoHtmlDto
- type Resource
- type RootHtmlDto
- type VacationRequestDto
- type VacationRequestHtmlDto
- type VacationRequestListHtmlDto
- type VacationRequestPatchDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAssets ¶
func HandleAssets(pref string, fs http.FileSystem) http.Handler
func HandleFeatures ¶
todo add link as soon as the URL to the HomeApp API is stable
func HandleIdpDemo ¶
func HandleRoot ¶
func NewVacationRequestHandler ¶
func NewVacationRequestHandler(assetBasePath string, renderhtml func(w io.Writer, data interface{}, templatename string) error, storage domain.VacationRequestRepository, applyForVacation applyForVacation.Service, cancelVacation cancelVacation.Service, rejectVacationRequest rejectVacationRequest.Service, acceptVacationRequest acceptVacationRequest.Service) *vacationRequestHandler
Types ¶
type BaseHtmlDto ¶
type BaseHtmlDto struct {
AssetBasePath string
}
type FeatureDto ¶
type FeaturesDto ¶
type FeaturesDto struct {
Features []FeatureDto `json:"features"`
}
type HalLinkObject ¶
HalLinkObject represents a HAL Link Object as defined in https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5
type HalResource ¶
type HalResource struct {
Links map[string]HalLinkObject `json:"_links"`
}
HalResource represents a HAL Resource Object as defined in https://tools.ietf.org/html/draft-kelly-json-hal-08#section-4
type IdpDemoHtmlDto ¶
type IdpDemoHtmlDto struct {
BaseHtmlDto
UserId string
UserName string
Title string
}
type RootHtmlDto ¶
type RootHtmlDto struct {
BaseHtmlDto
Title string
Version string
}
type VacationRequestDto ¶
type VacationRequestDto struct {
From time.Time `json:"from"`
To time.Time `json:"to"`
Type string `json:"type"`
State string `json:"state"`
Comment string `json:"comment"`
Id string `json:"id"`
}
func (*VacationRequestDto) ToDomain ¶
func (dto *VacationRequestDto) ToDomain() (domain.VacationRequest, error)
type VacationRequestHtmlDto ¶
type VacationRequestListHtmlDto ¶
type VacationRequestListHtmlDto struct {
BaseHtmlDto
Title string
Requests []VacationRequestHtmlDto
}
type VacationRequestPatchDto ¶
type VacationRequestPatchDto struct {
State string `json:"state"`
}
Click to show internal directories.
Click to hide internal directories.