Documentation
¶
Index ¶
- type GreetService
- type TinglyService
- func (s *TinglyService) GetGinEngine() *gin.Engine
- func (s *TinglyService) GetPort() int
- func (s *TinglyService) GetUserAuthToken() string
- func (s *TinglyService) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *TinglyService) ServiceShutdown(ctx context.Context) error
- func (s *TinglyService) ServiceStartup(ctx context.Context, options application.ServiceOptions) error
- func (s *TinglyService) Start(ctx context.Context) error
- func (s *TinglyService) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GreetService ¶
type GreetService struct{}
func (*GreetService) Greet ¶
func (g *GreetService) Greet(name string) string
type TinglyService ¶
type TinglyService struct {
// contains filtered or unexported fields
}
TinglyService manages the web UI and HTTP server functionality
func NewTinglyService ¶
func NewTinglyService(configDir string, port int, debug bool) (*TinglyService, error)
NewTinglyService creates a new UI service instance
func (*TinglyService) GetGinEngine ¶
func (s *TinglyService) GetGinEngine() *gin.Engine
func (*TinglyService) GetPort ¶
func (s *TinglyService) GetPort() int
func (*TinglyService) GetUserAuthToken ¶
func (s *TinglyService) GetUserAuthToken() string
func (*TinglyService) ServeHTTP ¶
func (s *TinglyService) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the http.Handler interface
func (*TinglyService) ServiceShutdown ¶
func (s *TinglyService) ServiceShutdown(ctx context.Context) error
ServiceShutdown is called when the service shuts down
func (*TinglyService) ServiceStartup ¶
func (s *TinglyService) ServiceStartup(ctx context.Context, options application.ServiceOptions) error
ServiceStartup is called when the service starts
func (*TinglyService) Start ¶
func (s *TinglyService) Start(ctx context.Context) error
Start starts the UI service synchronously and returns any error
func (*TinglyService) Stop ¶
func (s *TinglyService) Stop() error
Stop stops the UI service gracefully
Click to show internal directories.
Click to hide internal directories.