Documentation ¶
Index ¶
- Constants
- type CardServer
- func (s *CardServer) CreateHandler(w http.ResponseWriter, r *http.Request)
- func (s *CardServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
- func (s *CardServer) ItemHandler(w http.ResponseWriter, r *http.Request)
- func (s *CardServer) ListHandler(w http.ResponseWriter, r *http.Request)
- func (s *CardServer) UpdateHandler(w http.ResponseWriter, r *http.Request)
- type CollectionServer
- func (s *CollectionServer) CreateHandler(w http.ResponseWriter, r *http.Request)
- func (s *CollectionServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
- func (s *CollectionServer) ItemHandler(w http.ResponseWriter, r *http.Request)
- func (s *CollectionServer) ListHandler(w http.ResponseWriter, r *http.Request)
- func (s *CollectionServer) UpdateHandler(w http.ResponseWriter, r *http.Request)
- type DeckServer
- func (s *DeckServer) AllDecksHandler(w http.ResponseWriter, r *http.Request)
- func (s *DeckServer) CreateHandler(w http.ResponseWriter, r *http.Request)
- func (s *DeckServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
- func (s *DeckServer) ItemHandler(w http.ResponseWriter, r *http.Request)
- func (s *DeckServer) ListHandler(w http.ResponseWriter, r *http.Request)
- func (s *DeckServer) UpdateHandler(w http.ResponseWriter, r *http.Request)
- type GameServer
- func (s *GameServer) CreateHandler(w http.ResponseWriter, r *http.Request)
- func (s *GameServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
- func (s *GameServer) DuplicateHandler(w http.ResponseWriter, r *http.Request)
- func (s *GameServer) ExportHandler(w http.ResponseWriter, r *http.Request)
- func (s *GameServer) ImportHandler(w http.ResponseWriter, r *http.Request)
- func (s *GameServer) ItemHandler(w http.ResponseWriter, r *http.Request)
- func (s *GameServer) ListHandler(w http.ResponseWriter, r *http.Request)
- func (s *GameServer) UpdateHandler(w http.ResponseWriter, r *http.Request)
- type GeneratorServer
- type ImageServer
- func (s *ImageServer) CardHandler(w http.ResponseWriter, r *http.Request)
- func (s *ImageServer) CollectionHandler(w http.ResponseWriter, r *http.Request)
- func (s *ImageServer) DeckHandler(w http.ResponseWriter, r *http.Request)
- func (s *ImageServer) GameHandler(w http.ResponseWriter, r *http.Request)
- type ReplaceServer
- type SearchServer
- type SystemServer
- func (s *SystemServer) GetSettingsHandler(w http.ResponseWriter, _ *http.Request)
- func (s *SystemServer) GetVersionHandler(w http.ResponseWriter, _ *http.Request)
- func (s *SystemServer) QuitHandler(w http.ResponseWriter, _ *http.Request)
- func (s *SystemServer) StatusHandler(w http.ResponseWriter, _ *http.Request)
- func (s *SystemServer) StopQuit()
- func (s *SystemServer) UpdateSettingsHandler(w http.ResponseWriter, r *http.Request)
- type TTSServer
Constants ¶
View Source
const (
DestroyTimer = time.Second * 60
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardServer ¶
type CardServer struct {
// contains filtered or unexported fields
}
func NewCardServer ¶
func NewCardServer(cardService service.ICardService, systemServer *SystemServer) *CardServer
func (*CardServer) CreateHandler ¶
func (s *CardServer) CreateHandler(w http.ResponseWriter, r *http.Request)
func (*CardServer) DeleteHandler ¶
func (s *CardServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
func (*CardServer) ItemHandler ¶
func (s *CardServer) ItemHandler(w http.ResponseWriter, r *http.Request)
func (*CardServer) ListHandler ¶
func (s *CardServer) ListHandler(w http.ResponseWriter, r *http.Request)
func (*CardServer) UpdateHandler ¶
func (s *CardServer) UpdateHandler(w http.ResponseWriter, r *http.Request)
type CollectionServer ¶
type CollectionServer struct {
// contains filtered or unexported fields
}
func NewCollectionServer ¶
func NewCollectionServer(collectionService service.ICollectionService, systemServer *SystemServer) *CollectionServer
func (*CollectionServer) CreateHandler ¶
func (s *CollectionServer) CreateHandler(w http.ResponseWriter, r *http.Request)
func (*CollectionServer) DeleteHandler ¶
func (s *CollectionServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
func (*CollectionServer) ItemHandler ¶
func (s *CollectionServer) ItemHandler(w http.ResponseWriter, r *http.Request)
func (*CollectionServer) ListHandler ¶
func (s *CollectionServer) ListHandler(w http.ResponseWriter, r *http.Request)
func (*CollectionServer) UpdateHandler ¶
func (s *CollectionServer) UpdateHandler(w http.ResponseWriter, r *http.Request)
type DeckServer ¶
type DeckServer struct {
// contains filtered or unexported fields
}
func NewDeckServer ¶
func NewDeckServer(deckService service.IDeckService, systemServer *SystemServer) *DeckServer
func (*DeckServer) AllDecksHandler ¶
func (s *DeckServer) AllDecksHandler(w http.ResponseWriter, r *http.Request)
func (*DeckServer) CreateHandler ¶
func (s *DeckServer) CreateHandler(w http.ResponseWriter, r *http.Request)
func (*DeckServer) DeleteHandler ¶
func (s *DeckServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
func (*DeckServer) ItemHandler ¶
func (s *DeckServer) ItemHandler(w http.ResponseWriter, r *http.Request)
func (*DeckServer) ListHandler ¶
func (s *DeckServer) ListHandler(w http.ResponseWriter, r *http.Request)
func (*DeckServer) UpdateHandler ¶
func (s *DeckServer) UpdateHandler(w http.ResponseWriter, r *http.Request)
type GameServer ¶
type GameServer struct {
// contains filtered or unexported fields
}
func NewGameServer ¶
func NewGameServer(gameService service.IGameService, systemServer *SystemServer) *GameServer
func (*GameServer) CreateHandler ¶
func (s *GameServer) CreateHandler(w http.ResponseWriter, r *http.Request)
func (*GameServer) DeleteHandler ¶
func (s *GameServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
func (*GameServer) DuplicateHandler ¶
func (s *GameServer) DuplicateHandler(w http.ResponseWriter, r *http.Request)
func (*GameServer) ExportHandler ¶
func (s *GameServer) ExportHandler(w http.ResponseWriter, r *http.Request)
func (*GameServer) ImportHandler ¶
func (s *GameServer) ImportHandler(w http.ResponseWriter, r *http.Request)
func (*GameServer) ItemHandler ¶
func (s *GameServer) ItemHandler(w http.ResponseWriter, r *http.Request)
func (*GameServer) ListHandler ¶
func (s *GameServer) ListHandler(w http.ResponseWriter, r *http.Request)
func (*GameServer) UpdateHandler ¶
func (s *GameServer) UpdateHandler(w http.ResponseWriter, r *http.Request)
type GeneratorServer ¶
type GeneratorServer struct {
// contains filtered or unexported fields
}
func NewGeneratorServer ¶
func NewGeneratorServer(generatorService service.IGeneratorService) *GeneratorServer
func (*GeneratorServer) GameHandler ¶
func (s *GeneratorServer) GameHandler(w http.ResponseWriter, r *http.Request)
type ImageServer ¶
type ImageServer struct {
// contains filtered or unexported fields
}
func NewImageServer ¶
func NewImageServer(gameService service.IGameService, collectionService service.ICollectionService, deckService service.IDeckService, cardService service.ICardService) *ImageServer
func (*ImageServer) CardHandler ¶
func (s *ImageServer) CardHandler(w http.ResponseWriter, r *http.Request)
func (*ImageServer) CollectionHandler ¶
func (s *ImageServer) CollectionHandler(w http.ResponseWriter, r *http.Request)
func (*ImageServer) DeckHandler ¶
func (s *ImageServer) DeckHandler(w http.ResponseWriter, r *http.Request)
func (*ImageServer) GameHandler ¶
func (s *ImageServer) GameHandler(w http.ResponseWriter, r *http.Request)
type ReplaceServer ¶ added in v0.2.3
type ReplaceServer struct {
// contains filtered or unexported fields
}
func NewReplaceServer ¶ added in v0.2.3
func NewReplaceServer(replaceService service.IReplaceService) *ReplaceServer
func (*ReplaceServer) PrepareHandler ¶ added in v0.2.3
func (s *ReplaceServer) PrepareHandler(w http.ResponseWriter, r *http.Request)
func (*ReplaceServer) ReplaceHandler ¶ added in v0.2.3
func (s *ReplaceServer) ReplaceHandler(w http.ResponseWriter, r *http.Request)
type SearchServer ¶ added in v0.2.3
type SearchServer struct {
// contains filtered or unexported fields
}
func NewSearchServer ¶ added in v0.2.3
func NewSearchServer(searchService service.ISearchService) *SearchServer
func (*SearchServer) CollectionHandler ¶ added in v0.2.3
func (s *SearchServer) CollectionHandler(w http.ResponseWriter, r *http.Request)
func (*SearchServer) GameHandler ¶ added in v0.2.3
func (s *SearchServer) GameHandler(w http.ResponseWriter, r *http.Request)
func (*SearchServer) RootHandler ¶ added in v0.2.3
func (s *SearchServer) RootHandler(w http.ResponseWriter, r *http.Request)
type SystemServer ¶
type SystemServer struct {
// contains filtered or unexported fields
}
func NewSystemServer ¶
func NewSystemServer(cfg *config.Config, systemService service.ISystemService) *SystemServer
func (*SystemServer) GetSettingsHandler ¶
func (s *SystemServer) GetSettingsHandler(w http.ResponseWriter, _ *http.Request)
func (*SystemServer) GetVersionHandler ¶
func (s *SystemServer) GetVersionHandler(w http.ResponseWriter, _ *http.Request)
func (*SystemServer) QuitHandler ¶
func (s *SystemServer) QuitHandler(w http.ResponseWriter, _ *http.Request)
func (*SystemServer) StatusHandler ¶
func (s *SystemServer) StatusHandler(w http.ResponseWriter, _ *http.Request)
func (*SystemServer) StopQuit ¶
func (s *SystemServer) StopQuit()
func (*SystemServer) UpdateSettingsHandler ¶
func (s *SystemServer) UpdateSettingsHandler(w http.ResponseWriter, r *http.Request)
type TTSServer ¶ added in v0.2.3
type TTSServer struct {
// contains filtered or unexported fields
}
func NewTTSServer ¶ added in v0.2.3
func NewTTSServer(ttsService service.ITTSService) *TTSServer
func (*TTSServer) DataHandler ¶ added in v0.2.3
func (s *TTSServer) DataHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.