converter

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 14 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 *pb.App) *modelgebura.App

func ToBizAppBinaryList added in v0.2.3

func ToBizAppBinaryList(a []*pb.AppBinary) []*modelgebura.AppBinary

func ToBizAppInfo added in v0.2.3

func ToBizAppInfo(a *librarian.AppInfo) *modelgebura.AppInfo

func ToBizAppInfoID added in v0.2.3

func ToBizAppInfoID(a *librarian.AppInfoID) *modelgebura.AppInfoID

func ToBizAppInfoIDList added in v0.2.3

func ToBizAppInfoIDList(a []*librarian.AppInfoID) []*modelgebura.AppInfoID

func ToBizAppInfoList added in v0.2.7

func ToBizAppInfoList(a []*librarian.AppInfo) []*modelgebura.AppInfo

func ToBizAppInst added in v0.2.3

func ToBizAppInst(a *pb.AppInst) *modelgebura.AppInst

func ToBizAppTypeList added in v0.0.10

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

func ToBizDeviceInfo added in v0.2.1

func ToBizDeviceInfo(a *pb.DeviceInfo) *modeltiphereth.DeviceInfo

func ToBizDuration added in v0.0.9

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

func ToBizFeedActionSet added in v0.2.10

func ToBizFeedActionSet(a *pb.FeedActionSet) *modelyesod.FeedActionSet

func ToBizFeedConfig added in v0.0.10

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

func ToBizFeedConfigStatusList added in v0.0.10

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

func ToBizFeedItem added in v0.2.10

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

func ToBizFeedItemCollection added in v0.2.10

func ToBizFeedItemCollection(a *pb.FeedItemCollection) *modelyesod.FeedItemCollection

func ToBizFileMetadata added in v0.1.3

func ToBizFileMetadata(a *pb.FileMetadata) *modelbinah.FileMetadata

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 ToBizNotifyFlow added in v0.1.0

func ToBizNotifyFlow(a *pb.NotifyFlow) *modelnetzach.NotifyFlow

func ToBizNotifyTarget added in v0.1.0

func ToBizNotifyTarget(a *pb.NotifyTarget) *modelnetzach.NotifyTarget

func ToBizNotifyTargetStatusList added in v0.1.0

func ToBizNotifyTargetStatusList(a []pb.NotifyTargetStatus) []modelnetzach.NotifyTargetStatus

func ToBizPorterFeatureSummary added in v0.2.0

func ToBizPorterFeatureSummary(a *porter.PorterFeatureSummary) *modeltiphereth.PorterFeatureSummary

func ToBizPorterPrivilege added in v0.2.0

func ToBizPorterPrivilege(a *pb.PorterPrivilege) *modeltiphereth.PorterInstancePrivilege

func ToBizPorterStatus added in v0.2.0

func ToBizPorterStatus(s pb.UserStatus) modeltiphereth.PorterInstanceStatus

func ToBizSystemNotificationLevelList added in v0.2.10

func ToBizSystemNotificationLevelList(a []pb.SystemNotificationLevel) []modelnetzach.SystemNotificationLevel

func ToBizSystemNotificationStatusList added in v0.2.10

func ToBizSystemNotificationStatusList(a []pb.SystemNotificationStatus) []modelnetzach.SystemNotificationStatus

func ToBizSystemNotificationTypeList added in v0.2.10

func ToBizSystemNotificationTypeList(a []pb.SystemNotificationType) []modelnetzach.SystemNotificationType

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 ToBizUserStatusList added in v0.0.10

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

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) *pb.App

func ToPBAppBinary added in v0.2.3

func ToPBAppBinary(a *modelgebura.AppBinary) *pb.AppBinary

func ToPBAppInfo added in v0.2.3

func ToPBAppInfo(a *modelgebura.AppInfo) *librarian.AppInfo

func ToPBAppInfoList added in v0.2.3

func ToPBAppInfoList(a []*modelgebura.AppInfo) []*librarian.AppInfo

func ToPBAppInfoMixed added in v0.2.3

func ToPBAppInfoMixed(a *modelgebura.AppInfoMixed) *librarian.AppInfoMixed

func ToPBAppInfoMixedList added in v0.2.3

func ToPBAppInfoMixedList(a []*modelgebura.AppInfoMixed) []*librarian.AppInfoMixed

func ToPBAppInstList added in v0.2.3

func ToPBAppInstList(a []*modelgebura.AppInst) []*pb.AppInst

func ToPBAppList added in v0.0.10

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

func ToPBDeviceInfo added in v0.2.1

func ToPBDeviceInfo(a *modeltiphereth.DeviceInfo) *pb.DeviceInfo

func ToPBDeviceInfoList added in v0.2.1

func ToPBDeviceInfoList(a []*modeltiphereth.DeviceInfo) []*pb.DeviceInfo

func ToPBDuration

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

func ToPBEnclosure added in v0.0.10

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

func ToPBFeatureRequest added in v0.2.10

func ToPBFeatureRequest(a *modeltiphereth.FeatureRequest) *librarian.FeatureRequest

func ToPBFeed added in v0.0.10

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

func ToPBFeedActionSetList added in v0.2.10

func ToPBFeedActionSetList(a []*modelyesod.FeedActionSet) []*pb.FeedActionSet

func ToPBFeedConfig added in v0.0.10

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

func ToPBFeedConfigPullStatus added in v0.2.10

func ToPBFeedConfigPullStatus(s modelyesod.FeedConfigPullStatus) *pb.FeedConfigPullStatus

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 ToPBFeedItemCollectionList added in v0.2.10

func ToPBFeedItemCollectionList(a []*modelyesod.FeedItemCollection) []*pb.FeedItemCollection

func ToPBFeedItemDigestList added in v0.1.6

func ToPBFeedItemDigestList(a []*modelyesod.FeedItemDigest) []*pb.FeedItemDigest

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.FeedItemDigest) *pb.FeedItemDigest

func ToPBNotifyFlow added in v0.1.0

func ToPBNotifyFlow(a *modelnetzach.NotifyFlow) *pb.NotifyFlow

func ToPBNotifyFlowList added in v0.1.0

func ToPBNotifyFlowList(a []*modelnetzach.NotifyFlow) []*pb.NotifyFlow

func ToPBNotifyTarget added in v0.1.0

func ToPBNotifyTarget(a *modelnetzach.NotifyTarget) *pb.NotifyTarget

func ToPBNotifyTargetList added in v0.1.0

func ToPBNotifyTargetList(a []*modelnetzach.NotifyTarget) []*pb.NotifyTarget

func ToPBPorterList added in v0.2.0

func ToPBPorterList(a []*modeltiphereth.PorterInstance) []*pb.Porter

func ToPBPorterStatus added in v0.2.0

func ToPBServerFeatureSummary added in v0.2.0

func ToPBServerFeatureSummary(a *modeltiphereth.ServerFeatureSummary) *pb.ServerFeatureSummary

func ToPBSystemNotificationList added in v0.2.10

func ToPBSystemNotificationList(a []*modelnetzach.SystemNotification) []*pb.SystemNotification

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 ToPBUserSessionList added in v0.2.1

func ToPBUserSessionList(a []*modeltiphereth.UserSession) []*pb.UserSession

Types

This section is empty.

Jump to

Keyboard shortcuts

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