Versions in this module Expand all Collapse all v0 v0.2.0 Apr 20, 2026 Changes in this version + type CacheOptions struct + Capacity uint64 + TTL time.Duration + type Media struct + func NewMedia(opts MediaOptions) *Media + func (m *Media) GetRenderedTTNINJS(ctx context.Context, docURI string, _ []byte) (ttninjs.Document, error) + type MediaOptions struct + Cache *CacheOptions + Client *http.Client + Host string + Logger *slog.Logger + type TTNINJSErrorCause string + const TTNINJSErrorCauseInvalidBody + const TTNINJSErrorCauseInvalidDoc + const TTNINJSErrorCauseInvalidURI + const TTNINJSErrorCauseNotFound + type TTNINJSPermanentError struct + Cause TTNINJSErrorCause + func (err TTNINJSPermanentError) Error() string v0.1.0 Jan 12, 2026