Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 890 Bytes

File metadata and controls

21 lines (17 loc) · 890 Bytes

structure_cmd.md: Service Entry Points (cmd/)

Purpose

Contains the main entry points for each microservice in the BaSyx Go Components project. Each subfolder represents a service, e.g., aasregistryservice, submodelrepositoryservice.

Typical Contents

  • main.go: Service startup and configuration
  • config.yaml: Service-specific configuration
  • Dockerfile: Containerization instructions
  • HEALTHCHECK in Dockerfile: Container health checks
  • resources/, config/: Additional service resources

Example: submodelrepositoryservice

  • Handles HTTP requests for submodel repository operations
  • Loads configuration from config.yaml
  • Exposes REST API as defined in cmd/submodelrepositoryservice/openapi.yaml

How to Extend

  • Add new service folders for additional microservices
  • Implement new entry points in main.go
  • Update Dockerfile and configs as needed