• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Golang proto.RegisterType函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Golang中github.com/golang/protobuf/proto.RegisterType函数的典型用法代码示例。如果您正苦于以下问题:Golang RegisterType函数的具体用法?Golang RegisterType怎么用?Golang RegisterType使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了RegisterType函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。

示例1: init

func init() {
	proto.RegisterType((*JobInfo)(nil), "pachyderm.pps.persist.JobInfo")
	proto.RegisterType((*JobInfos)(nil), "pachyderm.pps.persist.JobInfos")
	proto.RegisterType((*JobOutput)(nil), "pachyderm.pps.persist.JobOutput")
	proto.RegisterType((*PipelineInfo)(nil), "pachyderm.pps.persist.PipelineInfo")
	proto.RegisterType((*PipelineInfos)(nil), "pachyderm.pps.persist.PipelineInfos")
}
开发者ID:klucar,项目名称:pachyderm,代码行数:7,代码来源:persist.pb.go


示例2: init

func init() {
	proto.RegisterType((*NotLeader)(nil), "errorpb.NotLeader")
	proto.RegisterType((*RegionNotFound)(nil), "errorpb.RegionNotFound")
	proto.RegisterType((*KeyNotInRegion)(nil), "errorpb.KeyNotInRegion")
	proto.RegisterType((*StaleEpoch)(nil), "errorpb.StaleEpoch")
	proto.RegisterType((*Error)(nil), "errorpb.Error")
}
开发者ID:anywhy,项目名称:tidb,代码行数:7,代码来源:errorpb.pb.go


示例3: init

func init() {
	proto.RegisterType((*Point)(nil), "routeguide.Point")
	proto.RegisterType((*Rectangle)(nil), "routeguide.Rectangle")
	proto.RegisterType((*Feature)(nil), "routeguide.Feature")
	proto.RegisterType((*RouteNote)(nil), "routeguide.RouteNote")
	proto.RegisterType((*RouteSummary)(nil), "routeguide.RouteSummary")
}
开发者ID:CocoaWang,项目名称:grpc-go,代码行数:7,代码来源:route_guide.pb.go


示例4: init

func init() {
	proto.RegisterType((*SubMessage)(nil), "SubMessage")
	proto.RegisterType((*Message)(nil), "Message")
	proto.RegisterType((*Address)(nil), "Address")
	proto.RegisterType((*User)(nil), "User")
	proto.RegisterEnum("Enum", Enum_name, Enum_value)
}
开发者ID:tiziano88,项目名称:gelm,代码行数:7,代码来源:gelm.pb.go


示例5: init

func init() {
	proto.RegisterType((*ColumnDefinition)(nil), "shim.ColumnDefinition")
	proto.RegisterType((*Table)(nil), "shim.Table")
	proto.RegisterType((*Column)(nil), "shim.Column")
	proto.RegisterType((*Row)(nil), "shim.Row")
	proto.RegisterEnum("shim.ColumnDefinition_Type", ColumnDefinition_Type_name, ColumnDefinition_Type_value)
}
开发者ID:hyperledger,项目名称:fabric,代码行数:7,代码来源:table.pb.go


示例6: init

func init() {
	proto.RegisterType((*PrefixesRequest)(nil), "lorawan.PrefixesRequest")
	proto.RegisterType((*PrefixesResponse)(nil), "lorawan.PrefixesResponse")
	proto.RegisterType((*PrefixesResponse_PrefixMapping)(nil), "lorawan.PrefixesResponse.PrefixMapping")
	proto.RegisterType((*DevAddrRequest)(nil), "lorawan.DevAddrRequest")
	proto.RegisterType((*DevAddrResponse)(nil), "lorawan.DevAddrResponse")
}
开发者ID:TheThingsNetwork,项目名称:ttn,代码行数:7,代码来源:device_address.pb.go


示例7: init

func init() {
	proto.RegisterType((*Blob)(nil), "contester.proto.Blob")
	proto.RegisterType((*Blob_CompressionInfo)(nil), "contester.proto.Blob.CompressionInfo")
	proto.RegisterType((*Module)(nil), "contester.proto.Module")
	proto.RegisterType((*FileBlob)(nil), "contester.proto.FileBlob")
	proto.RegisterEnum("contester.proto.Blob_CompressionInfo_CompressionType", Blob_CompressionInfo_CompressionType_name, Blob_CompressionInfo_CompressionType_value)
}
开发者ID:contester,项目名称:runlib,代码行数:7,代码来源:Blobs.pb.go


示例8: init

func init() {
	proto.RegisterType((*CorpusRootsRequest)(nil), "kythe.proto.CorpusRootsRequest")
	proto.RegisterType((*CorpusRootsReply)(nil), "kythe.proto.CorpusRootsReply")
	proto.RegisterType((*CorpusRootsReply_Corpus)(nil), "kythe.proto.CorpusRootsReply.Corpus")
	proto.RegisterType((*DirectoryRequest)(nil), "kythe.proto.DirectoryRequest")
	proto.RegisterType((*DirectoryReply)(nil), "kythe.proto.DirectoryReply")
}
开发者ID:bowlofstew,项目名称:kythe,代码行数:7,代码来源:filetree.pb.go


示例9: init

func init() {
	proto.RegisterType((*Request)(nil), "profile.Request")
	proto.RegisterType((*Result)(nil), "profile.Result")
	proto.RegisterType((*Hotel)(nil), "profile.Hotel")
	proto.RegisterType((*Address)(nil), "profile.Address")
	proto.RegisterType((*Image)(nil), "profile.Image")
}
开发者ID:kynrai,项目名称:go-micro-services,代码行数:7,代码来源:profile.pb.go


示例10: init

func init() {
	proto.RegisterType((*Config)(nil), "gamedef.Config")
	proto.RegisterType((*Prop)(nil), "gamedef.Prop")
	proto.RegisterType((*SampleDefine)(nil), "gamedef.SampleDefine")
	proto.RegisterType((*ExpDefine)(nil), "gamedef.ExpDefine")
	proto.RegisterEnum("gamedef.ActorType", ActorType_name, ActorType_value)
}
开发者ID:davyxu,项目名称:tabtoy,代码行数:7,代码来源:Config.pb.go


示例11: init

func init() {
	proto.RegisterType((*StatusRequest)(nil), "kythe.proto.StatusRequest")
	proto.RegisterType((*StatusReply)(nil), "kythe.proto.StatusReply")
	proto.RegisterType((*StatusReply_Origin)(nil), "kythe.proto.StatusReply.Origin")
	proto.RegisterType((*StatusReply_Language)(nil), "kythe.proto.StatusReply.Language")
	proto.RegisterEnum("kythe.proto.StatusReply_Language_Support", StatusReply_Language_Support_name, StatusReply_Language_Support_value)
}
开发者ID:benjyw,项目名称:kythe,代码行数:7,代码来源:status_service.pb.go


示例12: init

func init() {
	proto.RegisterType((*Request)(nil), "brig.transfer.Request")
	proto.RegisterType((*StoreVersionResponse)(nil), "brig.transfer.StoreVersionResponse")
	proto.RegisterType((*FetchResponse)(nil), "brig.transfer.FetchResponse")
	proto.RegisterType((*Response)(nil), "brig.transfer.Response")
	proto.RegisterEnum("brig.transfer.RequestType", RequestType_name, RequestType_value)
}
开发者ID:disorganizer,项目名称:brig,代码行数:7,代码来源:protocol.pb.go


示例13: init

func init() {
	proto.RegisterType((*Authentication)(nil), "google.api.Authentication")
	proto.RegisterType((*AuthenticationRule)(nil), "google.api.AuthenticationRule")
	proto.RegisterType((*AuthProvider)(nil), "google.api.AuthProvider")
	proto.RegisterType((*OAuthRequirements)(nil), "google.api.OAuthRequirements")
	proto.RegisterType((*AuthRequirement)(nil), "google.api.AuthRequirement")
}
开发者ID:golang,项目名称:gddo,代码行数:7,代码来源:auth.pb.go


示例14: init

func init() {
	proto.RegisterType((*Matcher)(nil), "silencepb.Matcher")
	proto.RegisterType((*Comment)(nil), "silencepb.Comment")
	proto.RegisterType((*Silence)(nil), "silencepb.Silence")
	proto.RegisterType((*MeshSilence)(nil), "silencepb.MeshSilence")
	proto.RegisterEnum("silencepb.Matcher_Type", Matcher_Type_name, Matcher_Type_value)
}
开发者ID:farcaller,项目名称:alertmanager,代码行数:7,代码来源:silence.pb.go


示例15: init

func init() {
	proto.RegisterType((*ContentManifestPayload)(nil), "ContentManifestPayload")
	proto.RegisterType((*ContentManifestPayload_FileMapping)(nil), "ContentManifestPayload.FileMapping")
	proto.RegisterType((*ContentManifestPayload_FileMapping_ChunkData)(nil), "ContentManifestPayload.FileMapping.ChunkData")
	proto.RegisterType((*ContentManifestMetadata)(nil), "ContentManifestMetadata")
	proto.RegisterType((*ContentManifestSignature)(nil), "ContentManifestSignature")
}
开发者ID:Slacki,项目名称:go-steam,代码行数:7,代码来源:content_manifest.pb.go


示例16: init

func init() {
	proto.RegisterType((*ValueTransfer)(nil), "message.ValueTransfer")
	proto.RegisterType((*OpReturnMsg)(nil), "message.OpReturnMsg")
	proto.RegisterType((*TxResult)(nil), "message.TxResult")
	proto.RegisterType((*ProcessedTx)(nil), "message.ProcessedTx")
	proto.RegisterType((*ProcessedBlock)(nil), "message.ProcessedBlock")
}
开发者ID:libreoscar,项目名称:btcwatch,代码行数:7,代码来源:schema.pb.go


示例17: init

func init() {
	proto.RegisterType((*Notification)(nil), "notification_service.Notification")
	proto.RegisterType((*FindClientRequest)(nil), "notification_service.FindClientRequest")
	proto.RegisterType((*FindClientResponse)(nil), "notification_service.FindClientResponse")
	proto.RegisterType((*RegisterClientRequest)(nil), "notification_service.RegisterClientRequest")
	proto.RegisterType((*UnregisterClientRequest)(nil), "notification_service.UnregisterClientRequest")
}
开发者ID:HearthSim,项目名称:hs-proto-go,代码行数:7,代码来源:notification_service.pb.go


示例18: init

func init() {
	proto.RegisterType((*ChannelServiceError)(nil), "appengine.ChannelServiceError")
	proto.RegisterType((*CreateChannelRequest)(nil), "appengine.CreateChannelRequest")
	proto.RegisterType((*CreateChannelResponse)(nil), "appengine.CreateChannelResponse")
	proto.RegisterType((*SendMessageRequest)(nil), "appengine.SendMessageRequest")
	proto.RegisterEnum("appengine.ChannelServiceError_ErrorCode", ChannelServiceError_ErrorCode_name, ChannelServiceError_ErrorCode_value)
}
开发者ID:David-Shibley,项目名称:goPlayground,代码行数:7,代码来源:channel_service.pb.go


示例19: init

func init() {
	proto.RegisterType((*CrawlRequest)(nil), "protos.CrawlRequest")
	proto.RegisterType((*KV)(nil), "protos.KV")
	proto.RegisterType((*CrawlResponse)(nil), "protos.CrawlResponse")
	proto.RegisterType((*Metadata)(nil), "protos.Metadata")
	proto.RegisterEnum("protos.Method", Method_name, Method_value)
}
开发者ID:vkey24,项目名称:zerg,代码行数:7,代码来源:crawl.pb.go


示例20: init

func init() {
	proto.RegisterType((*ChannelInvitation)(nil), "channel_invitation_types.ChannelInvitation")
	proto.RegisterType((*ChannelInvitationParams)(nil), "channel_invitation_types.ChannelInvitationParams")
	proto.RegisterType((*InvitationCollection)(nil), "channel_invitation_types.InvitationCollection")
	proto.RegisterExtension(E_ChannelInvitation_ChannelInvitation)
	proto.RegisterExtension(E_ChannelInvitationParams_ChannelParams)
}
开发者ID:HearthSim,项目名称:hs-proto-go,代码行数:7,代码来源:channel_invitation_types.pb.go



注:本文中的github.com/golang/protobuf/proto.RegisterType函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Golang proto.SetExtension函数代码示例发布时间:2022-05-23
下一篇:
Golang proto.RegisterFile函数代码示例发布时间:2022-05-23
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap