Documentation
¶
Overview ¶
Package appmeta exposes read-only views of a Feishu app's published version, subscribed event types, and scopes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
APIClient aliases event.APIClient so one concrete adapter satisfies event, appmeta, and consume.
type AppVersion ¶
type AppVersion struct {
VersionID string
Version string
EventTypes []string
TenantScopes []string
}
AppVersion is the projected subset of one /app_versions item preflight cares about.
func FetchCurrentPublished ¶
func FetchCurrentPublished(ctx context.Context, client APIClient, appID string) (*AppVersion, error)
FetchCurrentPublished returns the most recently published version of appID, or (nil, nil) if never published. page_size=2 suffices: Feishu disallows a new version while an in-progress one exists, so the first status==1 item with publish_time is the live one.
Click to show internal directories.
Click to hide internal directories.