services

package
v0.260128.2000-preview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL