Files
zeekay 1943f1c093 Hanzo Commerce
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans,
usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0.

Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
2026-09-23 21:52:16 -07:00

22 lines
471 B
Go

package iface
// Key is the interface for datastore keys.
// This is compatible with both the legacy appengine datastore
// and the new db.Key interface.
type Key interface {
AppID() string
Encode() string
Equal(o Key) bool
GobDecode(buf []byte) error
GobEncode() ([]byte, error)
Incomplete() bool
IntID() int64
Kind() string
MarshalJSON() ([]byte, error)
Namespace() string
Parent() Key
String() string
StringID() string
UnmarshalJSON(buf []byte) error
}