Documentation ¶
Index ¶
- func DurationPBToDuration(t *durationpb.Duration) time.Duration
- func PtrToString(u *string) string
- func ToBizAccountPlatform(p librarian.AccountPlatform) modeltiphereth.AccountPlatform
- func ToBizAppPackageSource(a librarian.AppPackageSource) modelgebura.AppPackageSource
- func ToBizAppSource(s librarian.AppSource) modelgebura.AppSource
- func ToBizAppType(t librarian.AppType) modelgebura.AppType
- func ToBizDuration(d *durationpb.Duration) time.Duration
- func ToBizFeedConfigSource(s pb.FeedConfigSource) modelyesod.FeedConfigSource
- func ToBizFeedConfigStatus(s pb.FeedConfigStatus) modelyesod.FeedConfigStatus
- func ToBizGroupFeedItemsBy(by pb.GroupFeedItemsRequest_GroupBy) modelyesod.GroupFeedItemsBy
- func ToBizInternalID(id *librarian.InternalID) model.InternalID
- func ToBizInternalIDPtr(id *librarian.InternalID) *model.InternalID
- func ToBizTime(t *timestamppb.Timestamp) time.Time
- func ToBizUserStatus(s pb.UserStatus) modeltiphereth.UserStatus
- func ToLibAuthUserType(u pb.UserType) libauth.UserType
- func ToPBAccountPlatform(p modeltiphereth.AccountPlatform) librarian.AccountPlatform
- func ToPBAppPackageSource(a modelgebura.AppPackageSource) librarian.AppPackageSource
- func ToPBAppSource(s modelgebura.AppSource) librarian.AppSource
- func ToPBAppType(t modelgebura.AppType) librarian.AppType
- func ToPBDuration(d time.Duration) *durationpb.Duration
- func ToPBFeedConfigSource(s modelyesod.FeedConfigSource) pb.FeedConfigSource
- func ToPBFeedConfigStatus(s modelyesod.FeedConfigStatus) pb.FeedConfigStatus
- func ToPBInternalID(id model.InternalID) *librarian.InternalID
- func ToPBTime(t time.Time) *timestamppb.Timestamp
- func ToPBTimePtr(t *time.Time) *timestamppb.Timestamp
- func ToPBUserStatus(s modeltiphereth.UserStatus) pb.UserStatus
- func ToPBUserType(u libauth.UserType) pb.UserType
- type Converter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationPBToDuration ¶
func DurationPBToDuration(t *durationpb.Duration) time.Duration
func PtrToString ¶
func ToBizAccountPlatform ¶
func ToBizAccountPlatform(p librarian.AccountPlatform) modeltiphereth.AccountPlatform
func ToBizAppPackageSource ¶
func ToBizAppPackageSource(a librarian.AppPackageSource) modelgebura.AppPackageSource
func ToBizAppSource ¶
func ToBizAppSource(s librarian.AppSource) modelgebura.AppSource
func ToBizAppType ¶
func ToBizAppType(t librarian.AppType) modelgebura.AppType
func ToBizDuration ¶ added in v0.0.9
func ToBizDuration(d *durationpb.Duration) time.Duration
func ToBizFeedConfigSource ¶
func ToBizFeedConfigSource(s pb.FeedConfigSource) modelyesod.FeedConfigSource
func ToBizFeedConfigStatus ¶
func ToBizFeedConfigStatus(s pb.FeedConfigStatus) modelyesod.FeedConfigStatus
func ToBizGroupFeedItemsBy ¶ added in v0.0.9
func ToBizGroupFeedItemsBy(by pb.GroupFeedItemsRequest_GroupBy) modelyesod.GroupFeedItemsBy
func ToBizInternalID ¶
func ToBizInternalID(id *librarian.InternalID) model.InternalID
func ToBizInternalIDPtr ¶
func ToBizInternalIDPtr(id *librarian.InternalID) *model.InternalID
func ToBizUserStatus ¶
func ToBizUserStatus(s pb.UserStatus) modeltiphereth.UserStatus
func ToPBAccountPlatform ¶
func ToPBAccountPlatform(p modeltiphereth.AccountPlatform) librarian.AccountPlatform
func ToPBAppPackageSource ¶
func ToPBAppPackageSource(a modelgebura.AppPackageSource) librarian.AppPackageSource
func ToPBAppSource ¶
func ToPBAppSource(s modelgebura.AppSource) librarian.AppSource
func ToPBAppType ¶
func ToPBAppType(t modelgebura.AppType) librarian.AppType
func ToPBDuration ¶
func ToPBDuration(d time.Duration) *durationpb.Duration
func ToPBFeedConfigSource ¶
func ToPBFeedConfigSource(s modelyesod.FeedConfigSource) pb.FeedConfigSource
func ToPBFeedConfigStatus ¶
func ToPBFeedConfigStatus(s modelyesod.FeedConfigStatus) pb.FeedConfigStatus
func ToPBInternalID ¶
func ToPBInternalID(id model.InternalID) *librarian.InternalID
func ToPBTimePtr ¶
func ToPBTimePtr(t *time.Time) *timestamppb.Timestamp
func ToPBUserStatus ¶
func ToPBUserStatus(s modeltiphereth.UserStatus) pb.UserStatus
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func NewConverter ¶
func NewConverter() Converter
Click to show internal directories.
Click to hide internal directories.