Directories
¶
| Path | Synopsis |
|---|---|
|
Package auth provides authentication and authorization functionality.
|
Package auth provides authentication and authorization functionality. |
|
config
Package config provides adapters for auth configuration.
|
Package config provides adapters for auth configuration. |
|
errors
Package errors provides comprehensive error handling for the auth module.
|
Package errors provides comprehensive error handling for the auth module. |
|
jwt
Package jwt provides JWT token handling for the auth module.
|
Package jwt provides JWT token handling for the auth module. |
|
middleware
Package middleware provides HTTP middleware for authentication.
|
Package middleware provides HTTP middleware for authentication. |
|
oidc
Package oidc provides OpenID Connect integration for the auth module.
|
Package oidc provides OpenID Connect integration for the auth module. |
|
service
Package service provides authorization services for the auth module.
|
Package service provides authorization services for the auth module. |
|
Package cache provides functionality for caching frequently accessed data.
|
Package cache provides functionality for caching frequently accessed data. |
|
Package circuit provides functionality for circuit breaking on external dependencies.
|
Package circuit provides functionality for circuit breaking on external dependencies. |
|
Package config provides generic configuration interfaces and adapters.
|
Package config provides generic configuration interfaces and adapters. |
|
interfaces
Package interfaces provides generic configuration interfaces that can be used across different applications.
|
Package interfaces provides generic configuration interfaces that can be used across different applications. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
Package context provides utilities for working with Go's context package.
|
Package context provides utilities for working with Go's context package. |
|
Package date provides utilities for working with dates and times.
|
Package date provides utilities for working with dates and times. |
|
Package db provides utilities for working with databases.
|
Package db provides utilities for working with databases. |
|
interfaces
Package interfaces provides database interfaces for the db package.
|
Package interfaces provides database interfaces for the db package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
Package di provides a generic dependency injection container that can be used across different applications.
|
Package di provides a generic dependency injection container that can be used across different applications. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
Package env provides utilities for working with environment variables.
|
Package env provides utilities for working with environment variables. |
|
Package errors provides error handling utilities for the servicelib package.
|
Package errors provides error handling utilities for the servicelib package. |
|
app
Package app provides application-level error types for the application.
|
Package app provides application-level error types for the application. |
|
core
Package core provides the core error handling functionality for the application.
|
Package core provides the core error handling functionality for the application. |
|
domain
Package domain provides domain-specific error types for the application.
|
Package domain provides domain-specific error types for the application. |
|
http
Package http provides HTTP-related error utilities for the application.
|
Package http provides HTTP-related error utilities for the application. |
|
infra
Package infra provides infrastructure-related error types for the application.
|
Package infra provides infrastructure-related error types for the application. |
|
log
Package log provides logging integration for the error handling system.
|
Package log provides logging integration for the error handling system. |
|
metrics
Package metrics provides metrics integration for the error handling system.
|
Package metrics provides metrics integration for the error handling system. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
trace
Package trace provides tracing integration for the error handling system.
|
Package trace provides tracing integration for the error handling system. |
|
types
Package types provides specific error types for the errors package.
|
Package types provides specific error types for the errors package. |
|
This example demonstrates how to use the error handling system in servicelib.
|
This example demonstrates how to use the error handling system in servicelib. |
|
auth
Example usage of creating an Auth instance
|
Example usage of creating an Auth instance |
|
cache
command
Example demonstrating basic usage of the cache package
|
Example demonstrating basic usage of the cache package |
|
circuit
command
Example demonstrating basic usage of the circuit package
|
Example demonstrating basic usage of the circuit package |
|
context
Example of basic usage of the context package
|
Example of basic usage of the context package |
|
date
Example of basic usage of the date package
|
Example of basic usage of the date package |
|
db
Example of connecting to different database types
|
Example of connecting to different database types |
|
di
Example of basic usage of the dependency injection package
|
Example of basic usage of the dependency injection package |
|
errors
This example demonstrates how to create different types of errors using the errors package.
|
This example demonstrates how to create different types of errors using the errors package. |
|
graphql
Example demonstrating how to configure the auth service for GraphQL
|
Example demonstrating how to configure the auth service for GraphQL |
|
health
Example of basic usage of the health package
|
Example of basic usage of the health package |
|
logging
Example of basic usage of the logging package
|
Example of basic usage of the logging package |
|
middleware
Example of basic usage of the middleware package
|
Example of basic usage of the middleware package |
|
rate
command
Example demonstrating basic usage of the rate package
|
Example demonstrating basic usage of the rate package |
|
repository
Example of basic repository implementation
|
Example of basic repository implementation |
|
retry
command
Example demonstrating basic usage of the retry package
|
Example demonstrating basic usage of the retry package |
|
shutdown
Example of basic graceful shutdown
|
Example of basic graceful shutdown |
|
signal
Example of basic signal handling
|
Example of basic signal handling |
|
telemetry
Example of using HTTP instrumentation in the telemetry package
|
Example of using HTTP instrumentation in the telemetry package |
|
transaction
Example of basic saga transaction
|
Example of basic saga transaction |
|
validation
Example of basic validation using the validation package
|
Example of basic validation using the validation package |
|
valueobject/appearance
Example usage of the Color value object
|
Example usage of the Color value object |
|
valueobject/base
Example usage of the base value object types
|
Example usage of the base value object types |
|
valueobject/contact
Example usage of the Email value object
|
Example usage of the Email value object |
|
valueobject/identification
Example usage of the ID value object
|
Example usage of the ID value object |
|
valueobject/location
Example usage of the Coordinate value object
|
Example usage of the Coordinate value object |
|
valueobject/measurement
Example usage of the FileSize value object
|
Example usage of the FileSize value object |
|
valueobject/network
Example usage of the IPAddress value object
|
Example usage of the IPAddress value object |
|
valueobject/temporal
Example usage of the Time value object
|
Example usage of the Time value object |
|
Package graphql provides utilities for working with GraphQL.
|
Package graphql provides utilities for working with GraphQL. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
Package health provides functionality for health checking the application.
|
Package health provides functionality for health checking the application. |
|
Package logging provides centralized logging functionality for services.
|
Package logging provides centralized logging functionality for services. |
|
interfaces
Package interfaces defines the interfaces for the logging package.
|
Package interfaces defines the interfaces for the logging package. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
Package model provides utilities for working with domain models and DTOs.
|
Package model provides utilities for working with domain models and DTOs. |
|
Package rate provides functionality for rate limiting to protect resources.
|
Package rate provides functionality for rate limiting to protect resources. |
|
Package repository provides generic repository interfaces that can be used across different applications.
|
Package repository provides generic repository interfaces that can be used across different applications. |
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
Package retry provides functionality for retrying operations with configurable backoff and jitter.
|
Package retry provides functionality for retrying operations with configurable backoff and jitter. |
|
Package shutdown provides functionality for graceful application shutdown.
|
Package shutdown provides functionality for graceful application shutdown. |
|
Package signal provides utilities for handling OS signals and graceful shutdown.
|
Package signal provides utilities for handling OS signals and graceful shutdown. |
|
Package stringutil provides additional string manipulation utilities beyond what's available in the standard library.
|
Package stringutil provides additional string manipulation utilities beyond what's available in the standard library. |
|
Package telemetry provides functionality for monitoring and tracing application behavior.
|
Package telemetry provides functionality for monitoring and tracing application behavior. |
|
mocks
Package mocks contains mock implementations for telemetry package testing
|
Package mocks contains mock implementations for telemetry package testing |
|
transaction
|
|
|
saga
Package saga provides utilities for implementing the saga pattern for distributed transactions.
|
Package saga provides utilities for implementing the saga pattern for distributed transactions. |
|
valueobject
|
|
|
appearance
Package appearance provides value objects related to appearance information.
|
Package appearance provides value objects related to appearance information. |
|
base
Package base provides common interfaces and utilities for value objects.
|
Package base provides common interfaces and utilities for value objects. |
|
cmd/generate
command
Package main provides a command-line tool for generating value objects.
|
Package main provides a command-line tool for generating value objects. |
|
contact
Package contact provides value objects related to contact information.
|
Package contact provides value objects related to contact information. |
|
generator
Package generator provides code generation tools for value objects.
|
Package generator provides code generation tools for value objects. |
|
identification
Package identification provides value objects related to identification.
|
Package identification provides value objects related to identification. |
|
location
Package location provides value objects related to location information.
|
Package location provides value objects related to location information. |
|
measurement
Package measurement provides value objects related to measurement information.
|
Package measurement provides value objects related to measurement information. |
|
network
Package network provides value objects related to network information.
|
Package network provides value objects related to network information. |
|
temporal
Package temporal provides value objects related to temporal information.
|
Package temporal provides value objects related to temporal information. |
Click to show internal directories.
Click to hide internal directories.