mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
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
22 lines
471 B
Go
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
|
|
}
|