Documentation ¶
Overview ¶
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Index ¶
- func TimeToTimestamp(t time.Time) *timestamppb.Timestamp
- func TimeToTimestampTZ(t time.Time) *icbt.TimestampTZ
- func ToConnectRpcError(src errs.Error) *connect.Error
- func ToPbEarmark(ctx context.Context, svc service.Servicer, src *model.Earmark) (*icbt.Earmark, error)
- func ToPbEvent(src *model.Event) *icbt.Event
- func ToPbEventItem(src *model.EventItem) *icbt.EventItem
- func ToPbList[T any, V any](converter func(*T) *V, in []*T) []*V
- func ToPbListWithService[T any, V any](ctx context.Context, ...) ([]*V, error)
- func ToPbNotification(src *model.Notification) *icbt.Notification
- func ToPbPagination(src *service.Pagination) *icbt.PaginationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeToTimestamp ¶
func TimeToTimestamp(t time.Time) *timestamppb.Timestamp
func TimeToTimestampTZ ¶
func TimeToTimestampTZ(t time.Time) *icbt.TimestampTZ
func ToPbEarmark ¶
func ToPbListWithService ¶
func ToPbNotification ¶
func ToPbNotification(src *model.Notification) *icbt.Notification
func ToPbPagination ¶
func ToPbPagination(src *service.Pagination) *icbt.PaginationResult
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.