mcsdadmin

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: EUPL-1.2 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShortID added in v0.2.0

func ShortID() string

Types

type Component

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

func New

func New(config Config) *Component

func (Component) RegisterHttpHandlers

func (c Component) RegisterHttpHandlers(mux *http.ServeMux, _ *http.ServeMux)

func (Component) Start

func (c Component) Start() error

func (Component) Stop

func (c Component) Stop(_ context.Context) error

type Config

type Config struct {
	FHIRBaseURL string                `koanf:"fhirbaseurl"`
	Auth        httpauth.OAuth2Config `koanf:"auth"`
}

type PaginatedResult added in v0.8.0

type PaginatedResult[T any] struct {
	Items      []T
	Pagination PaginationInfo
}

PaginatedResult contains paginated data and pagination metadata

type PaginationInfo added in v0.8.0

type PaginationInfo struct {
	CurrentPage       int
	PageSize          int
	TotalItems        int
	TotalPages        int
	HasPrev           bool
	HasNext           bool
	PrevPage          int
	NextPage          int
	ShowingFrom       int
	ShowingTo         int
	PageWindow        []int
	ShowFirst         bool
	ShowFirstEllipsis bool
	ShowLast          bool
	ShowLastEllipsis  bool
}

PaginationInfo holds metadata about pagination state

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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