converter

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationPBToDuration

func DurationPBToDuration(t *durationpb.Duration) time.Duration

func PtrToString

func PtrToString(u *string) string

func ToBizAppType

func ToBizAppType(t librarian.AppType) modelgebura.AppType

func ToBizDuration added in v0.0.9

func ToBizDuration(d *durationpb.Duration) time.Duration

func ToBizGroupFeedItemsBy added in v0.0.9

func ToBizInternalID

func ToBizInternalID(id *librarian.InternalID) model.InternalID

func ToBizInternalIDPtr

func ToBizInternalIDPtr(id *librarian.InternalID) *model.InternalID

func ToBizTime added in v0.0.9

func ToBizTime(t *timestamppb.Timestamp) time.Time

func ToBizUserStatus

func ToBizUserStatus(s pb.UserStatus) modeltiphereth.UserStatus

func ToLibAuthUserType

func ToLibAuthUserType(u pb.UserType) libauth.UserType

func ToPBAppType

func ToPBAppType(t modelgebura.AppType) librarian.AppType

func ToPBDuration

func ToPBDuration(d time.Duration) *durationpb.Duration

func ToPBInternalID

func ToPBInternalID(id model.InternalID) *librarian.InternalID

func ToPBTime

func ToPBTime(t time.Time) *timestamppb.Timestamp

func ToPBTimePtr

func ToPBTimePtr(t *time.Time) *timestamppb.Timestamp

func ToPBUserStatus

func ToPBUserStatus(s modeltiphereth.UserStatus) pb.UserStatus

func ToPBUserType

func ToPBUserType(u libauth.UserType) pb.UserType

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func NewConverter

func NewConverter() Converter

Jump to

Keyboard shortcuts

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