Documentation ¶
Index ¶
- func EntryPtr(entry *dinkur.Entry) *dinkurapiv1.Entry
- func EntrySlice(slice []dinkur.Entry) []*dinkurapiv1.Entry
- func Event(ev dinkur.EventType) dinkurapiv1.Event
- func Shorthand(s timeutil.TimeSpanShorthand) dinkurapiv1.GetEntryListRequest_Shorthand
- func Status(status dinkur.Status) *dinkurapiv1.Status
- func Timestamp(t time.Time) *timestamppb.Timestamp
- func TimestampPtr(t *time.Time) *timestamppb.Timestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntryPtr ¶
func EntryPtr(entry *dinkur.Entry) *dinkurapiv1.Entry
EntryPtr converts a Go entry pointer to a gRPC entry.
func EntrySlice ¶
func EntrySlice(slice []dinkur.Entry) []*dinkurapiv1.Entry
EntrySlice converts a slice of Go entries to gRPC entries.
func Event ¶
func Event(ev dinkur.EventType) dinkurapiv1.Event
Event converts a Go event type to a gRPC event type.
func Shorthand ¶
func Shorthand(s timeutil.TimeSpanShorthand) dinkurapiv1.GetEntryListRequest_Shorthand
Shorthand converts a timeutil shorthand to a gRPC shorthand.
func Status ¶
func Status(status dinkur.Status) *dinkurapiv1.Status
Status converts a dinkur status to a gRPC status.
func Timestamp ¶
func Timestamp(t time.Time) *timestamppb.Timestamp
Timestamp converts Go time to gRPC timestamp.
func TimestampPtr ¶
func TimestampPtr(t *time.Time) *timestamppb.Timestamp
TimestampPtr converts Go time pointer to gRPC timestamp.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.