Skip to content

Repository files navigation

complyapi

Go library providing event contract types for the ComplyTime ecosystem.

Events use CloudEvents v1.0 envelopes with JSON-encoded payloads. The canonical event contract is defined in the AsyncAPI 3.0 spec; the Go types in this library must match that spec.

Installation

go get github.com/complytime/complyapi

Usage

package main

import (
	"fmt"
	"log"

	"github.com/complytime/complyapi/events"
)

func main() {
	data := events.EvidenceIngestedData{
		ContentDigest: "sha256:abc123...",
		ArtifactType:  "application/vnd.gemara.evaluation-log+json",
		SubjectID:     "my-app-v1",
	}

	e, err := events.NewEvidenceIngestedEvent("my-service", "my-app-v1", data)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(e.Type()) // dev.complytime.evidence.ingested
}

Event Types

Type Constant Description
dev.complytime.evidence.ingested events.TypeEvidenceIngested Evidence accepted for processing

License

Apache-2.0

About

A push-based evidence API for ComplyTime.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages