converter

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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 ToBizApp added in v0.0.10

func ToBizApp(a *librarian.App) *modelgebura.App

func ToBizAppPackage added in v0.0.10

func ToBizAppPackage(a *librarian.AppPackage) *modelgebura.AppPackage

func ToBizAppPackageBinary added in v0.0.10

func ToBizAppPackageBinary(a *librarian.AppPackageBinary) *modelgebura.AppPackageBinary

func ToBizAppPackageSourceList added in v0.0.10

func ToBizAppPackageSourceList(a []librarian.AppPackageSource) []modelgebura.AppPackageSource

func ToBizAppSourceList added in v0.0.10

func ToBizAppSourceList(a []librarian.AppSource) []modelgebura.AppSource

func ToBizAppType

func ToBizAppType(t librarian.AppType) modelgebura.AppType

func ToBizAppTypeList added in v0.0.10

func ToBizAppTypeList(a []librarian.AppType) []modelgebura.AppType

func ToBizDuration added in v0.0.9

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

func ToBizFeedConfig added in v0.0.10

func ToBizFeedConfig(a *pb.FeedConfig) *modelyesod.FeedConfig

func ToBizFeedConfigSourceList added in v0.0.10

func ToBizFeedConfigSourceList(a []pb.FeedConfigSource) []modelyesod.FeedConfigSource

func ToBizFeedConfigStatusList added in v0.0.10

func ToBizFeedConfigStatusList(a []pb.FeedConfigStatus) []modelyesod.FeedConfigStatus

func ToBizGroupFeedItemsBy added in v0.0.9

func ToBizInternalID

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

func ToBizInternalIDList added in v0.0.10

func ToBizInternalIDList(a []*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 ToBizTimeRange added in v0.0.10

func ToBizTimeRange(a *librarian.TimeRange) *model.TimeRange

func ToBizUser added in v0.0.10

func ToBizUser(a *pb.User) *modeltiphereth.User

func ToBizUserStatus

func ToBizUserStatus(s pb.UserStatus) modeltiphereth.UserStatus

func ToBizUserStatusList added in v0.0.10

func ToBizUserStatusList(a []pb.UserStatus) []modeltiphereth.UserStatus

func ToLibAuthUserType

func ToLibAuthUserType(u pb.UserType) libauth.UserType

func ToLibAuthUserTypeList added in v0.0.10

func ToLibAuthUserTypeList(a []pb.UserType) []libauth.UserType

func ToPBAccount added in v0.0.10

func ToPBAccount(a *modeltiphereth.Account) *librarian.Account

func ToPBAccountList added in v0.0.10

func ToPBAccountList(a []*modeltiphereth.Account) []*librarian.Account

func ToPBApp added in v0.0.10

func ToPBApp(a *modelgebura.App) *librarian.App

func ToPBAppList added in v0.0.10

func ToPBAppList(a []*modelgebura.App) []*librarian.App

func ToPBAppPackage added in v0.0.10

func ToPBAppPackage(a *modelgebura.AppPackage) *librarian.AppPackage

func ToPBAppPackageBinary added in v0.0.10

func ToPBAppPackageBinary(a *modelgebura.AppPackageBinary) *librarian.AppPackageBinary

func ToPBAppPackageList added in v0.0.10

func ToPBAppPackageList(a []*modelgebura.AppPackage) []*librarian.AppPackage

func ToPBAppType

func ToPBAppType(t modelgebura.AppType) librarian.AppType

func ToPBDuration

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

func ToPBEnclosure added in v0.0.10

func ToPBEnclosure(a *modelfeed.Enclosure) *librarian.FeedEnclosure

func ToPBFeed added in v0.0.10

func ToPBFeed(a *modelfeed.Feed) *librarian.Feed

func ToPBFeedConfig added in v0.0.10

func ToPBFeedConfig(a *modelyesod.FeedConfig) *pb.FeedConfig

func ToPBFeedImage added in v0.0.10

func ToPBFeedImage(a *modelfeed.Image) *librarian.FeedImage

func ToPBFeedItem added in v0.0.10

func ToPBFeedItem(a *modelfeed.Item) *librarian.FeedItem

func ToPBFeedItemList added in v0.0.10

func ToPBFeedItemList(a []*modelfeed.Item) []*librarian.FeedItem

func ToPBFeedWithConfig added in v0.0.10

func ToPBFeedWithConfigList added in v0.0.10

func ToPBInternalID

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

func ToPBInternalIDList added in v0.0.10

func ToPBInternalIDList(a []model.InternalID) []*librarian.InternalID

func ToPBItemIDWithFeedID added in v0.0.10

func ToPBItemIDWithFeedID(a *modelyesod.FeedItemIDWithFeedID) *pb.FeedItemIDWithFeedID

func ToPBItemIDWithFeedIDList added in v0.0.10

func ToPBItemIDWithFeedIDList(a []*modelyesod.FeedItemIDWithFeedID) []*pb.FeedItemIDWithFeedID

func ToPBTime

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

func ToPBTimePtr

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

func ToPBTimeRange added in v0.0.10

func ToPBTimeRange(a *model.TimeRange) *librarian.TimeRange

func ToPBUser added in v0.0.10

func ToPBUser(a *modeltiphereth.User) *pb.User

func ToPBUserList added in v0.0.10

func ToPBUserList(a []*modeltiphereth.User) []*pb.User

func ToPBUserStatus

func ToPBUserStatus(s modeltiphereth.UserStatus) pb.UserStatus

func ToPBUserType

func ToPBUserType(u libauth.UserType) pb.UserType

Types

This section is empty.

Jump to

Keyboard shortcuts

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