Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDInContext ¶
type IDInContext[CtxKey, EntityIDType any] struct{}
func (IDInContext[CtxKey, EntityIDType]) ContextLookupID ¶
func (cm IDInContext[CtxKey, EntityIDType]) ContextLookupID(ctx context.Context) (EntityIDType, bool)
func (IDInContext[CtxKey, EntityIDType]) ContextWithID ¶
func (cm IDInContext[CtxKey, EntityIDType]) ContextWithID(ctx context.Context, id EntityIDType) context.Context
type SetIDByExtIDTag ¶
type SetIDByExtIDTag[Entity, ID any] struct{}
func (SetIDByExtIDTag[Entity, ID]) LookupID ¶
func (m SetIDByExtIDTag[Entity, ID]) LookupID(ent Entity) (ID, bool)
func (SetIDByExtIDTag[Entity, ID]) SetID ¶
func (m SetIDByExtIDTag[Entity, ID]) SetID(ptr *Entity, id ID)
Click to show internal directories.
Click to hide internal directories.