当前位置: 首页>>代码示例>>Golang>>正文


Golang proto.RegisterType函数代码示例

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


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


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