Documentation ¶
Index ¶
- type CreateRequest
- type Service
- func (s Service[Arg, OutT]) Create(ctx context.Context, in CreateRequest[Arg]) (out OutT, err error)
- func (s Service[Arg, OutT]) Delete(ctx context.Context, in WithResourceId) (_ *commonpb.Empty, err error)
- func (s Service[Arg, OutT]) Read(ctx context.Context, in WithResourceId) (out OutT, err error)
- func (s Service[Arg, OutT]) Update(ctx context.Context, in UpdateRequest[Arg]) (out OutT, err error)
- type UpdateRequest
- type WithResourceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type Service ¶
type Service[Arg proto.Message, OutT proto.Message] struct { Db *db.Database Converters converter.ResourceConverters[Arg, OutT] ResourceName string }
func (Service[Arg, OutT]) Create ¶
func (s Service[Arg, OutT]) Create(ctx context.Context, in CreateRequest[Arg]) (out OutT, err error)
type UpdateRequest ¶
type UpdateRequest[Arg proto.Message] interface { GetResource() Arg WithResourceId }
type WithResourceId ¶
Click to show internal directories.
Click to hide internal directories.