togrpc

package
v0.0.0-...-d280c18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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

Event converts a Go event type to a gRPC event type.

func 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL