service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Auth           auth.Config           `yaml:"Auth"`
	ChangeDetector changedetector.Config `yaml:"ChangeDetector"`
}

type Repository

type Repository interface {
	Ping(ctx context.Context) error
	GetRoutes(ctx context.Context) ([]*models.ServiceRoute, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(ctx context.Context, cfg *Config, repo Repository, cache cache.Cache) *Service

func (*Service) Ping

func (s *Service) Ping(ctx context.Context) (*models.PingResponse, error)

func (*Service) RouteRequest

func (s *Service) RouteRequest(ctx *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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