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.
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.
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) (dst *icbt.Earmark, err error)
- func ToPbEvent(src *model.Event) (dst *icbt.Event)
- func ToPbEventItem(src *model.EventItem) (dst *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) (dst *icbt.Notification)
- func ToPbPagination(src *service.Pagination) (dst *icbt.PaginationResult)
- type Convergen
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) (dst *icbt.Notification)
func ToPbPagination ¶
func ToPbPagination(src *service.Pagination) (dst *icbt.PaginationResult)
Types ¶
type Convergen ¶
type Convergen interface { // :typecast // :stringer // :case:off // :conv TimeToTimestamp Created Created ToPbNotification(*model.Notification) *icbt.Notification // :typecast // :stringer // :case:off // :conv TimeToTimestamp Created Created // :conv TimeToTimestampTZ When() When ToPbEvent(*model.Event) *icbt.Event // :typecast // :stringer // :case:off // :conv TimeToTimestamp Created Created ToPbEventItem(*model.EventItem) *icbt.EventItem }
Click to show internal directories.
Click to hide internal directories.