httpserver

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apiv1

type Apiv1 interface {
	Status(ctx context.Context, req *apiv1_status.StatusRequest) (*apiv1_status.StatusReply, error)

	// Token Status List endpoints
	TokenStatusLists(ctx context.Context, req *apiv1.TokenStatusListsRequest) (*apiv1.TokenStatusListsResponse, error)
	TokenStatusListAggregation(ctx context.Context) (*apiv1.TokenStatusListAggregationResponse, error)

	// Admin GUI endpoints
	SearchPerson(ctx context.Context, req *apiv1.SearchPersonRequest) (*apiv1.SearchPersonReply, error)
	UpdateStatus(ctx context.Context, req *apiv1.UpdateStatusRequest) error
}

Apiv1 interface

type HTMLResponse

type HTMLResponse string

HTMLResponse wraps an HTML string for rendering

type Service

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

Service is the service object for httpserver

func New

func New(ctx context.Context, cfg *model.Cfg, api *apiv1.Client, tracer *trace.Tracer, cacheService *cache.Service, log *logger.Log) (*Service, error)

New creates a new httpserver service

func (*Service) Close

func (s *Service) Close(ctx context.Context) error

Close closing httpserver

Jump to

Keyboard shortcuts

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