egot

module
v0.0.0-...-b6ec08b Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: CC0-1.0

README

sep-golang

Smart Energy Profile using Go

Setup

Host

Add the server address to your hosts file for local testing:

127.0.0.1   egot.internal.com
SSL

Generate mTLS certificates for local development using the included script (requires openssl):

make ssl-refresh

This creates a self-signed CA and issues a server certificate for egot.internal.com plus a default client certificate, all valid for 1 year. The CA itself is valid for 10 years.

To generate additional numbered client certificates (e.g. 5 clients):

make ssl-clients N=5
# Generates ssl/client-0001.crt ... ssl/client-0005.crt

Note: The original setup used step-cli with a Smallstep CA. The make ssl-refresh approach uses plain openssl and requires no external CA service. See docs/development/microservices.md for details on the generated files.

Go
go mod tidy
go run ./cmd/crawler

Import the SEP 2.0 models package:

import "github.com/Tylores/egot/sep"

Documentation

Topic Location
Microservices (services, ports, building) docs/development/microservices.md
HTTP handlers (patterns, WADL compliance) docs/development/handlers.md
Testing docs/testing/README.md
Testing quick reference docs/testing/quick-reference.md
Route testing docs/testing/routing.md
CI/CD integration docs/testing/ci-cd.md
Scaffold generator docs/tools/scaffold-gen.md
WADL extractor cmd/wadl-extract/README.md
SEP 2 resource paths wadl/RESOURCE_URI_PATHS.md

Directories

Path Synopsis
cmd
client command
crawler command
operator command
scaffold-gen command
wadl-extract command
internal
store
Package store provides a simple persistent key/value store backed by map[string]any with a sync.RWMutex for concurrent access and gob encoding for persistence.
Package store provides a simple persistent key/value store backed by map[string]any with a sync.RWMutex for concurrent access and gob encoding for persistence.
sep
uri
test
tools
implement-tests command
Code generation tool to implement route registration tests for all microservices Usage: go run tools/implement_tests.go
Code generation tool to implement route registration tests for all microservices Usage: go run tools/implement_tests.go

Jump to

Keyboard shortcuts

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