admin

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package admin contains the implementation of the Transiter admin API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements the Transiter admin API.

func New

func New(pool *pgxpool.Pool, scheduler scheduler.Scheduler, logger *slog.Logger, levelVar *slog.LevelVar, monitoring monitoring.Monitoring) *Service

func (*Service) DeleteSystem

func (s *Service) DeleteSystem(ctx context.Context, req *api.DeleteSystemRequest) (*api.DeleteSystemReply, error)

func (*Service) GetLogLevel

func (s *Service) GetLogLevel(ctx context.Context, req *api.GetLogLevelRequest) (*api.GetLogLevelReply, error)

func (*Service) GetSchedulerStatus

func (*Service) GetSystemConfig

func (s *Service) GetSystemConfig(ctx context.Context, req *api.GetSystemConfigRequest) (*api.SystemConfig, error)

func (*Service) InstallOrUpdateSystem

func (*Service) ResetScheduler

func (s *Service) ResetScheduler(ctx context.Context, req *api.ResetSchedulerRequest) (*api.ResetSchedulerReply, error)

func (*Service) SetLogLevel

func (s *Service) SetLogLevel(ctx context.Context, req *api.SetLogLevelRequest) (*api.SetLogLevelReply, error)

func (*Service) UpdateFeed

func (s *Service) UpdateFeed(ctx context.Context, req *api.UpdateFeedRequest) (*api.UpdateFeedReply, error)

Jump to

Keyboard shortcuts

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