本文整理汇总了Golang中github.com/gogo/protobuf/proto.RegisterExtension函数的典型用法代码示例。如果您正苦于以下问题:Golang RegisterExtension函数的具体用法?Golang RegisterExtension怎么用?Golang RegisterExtension使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RegisterExtension函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: init
func init() {
proto.RegisterType((*Container)(nil), "prototests.Container")
proto.RegisterType((*Small)(nil), "prototests.Small")
proto.RegisterType((*Big)(nil), "prototests.Big")
proto.RegisterType((*BigContainer)(nil), "prototests.BigContainer")
proto.RegisterExtension(E_FieldA)
proto.RegisterExtension(E_FieldB)
proto.RegisterExtension(E_FieldC)
}
开发者ID:katydid,项目名称:katydid,代码行数:9,代码来源:extensions.pb.go
示例2: init
func init() {
proto.RegisterEnum("my.test.HatType", HatType_name, HatType_value)
proto.RegisterEnum("my.test.Days", Days_name, Days_value)
proto.RegisterEnum("my.test.Request_Color", Request_Color_name, Request_Color_value)
proto.RegisterEnum("my.test.Reply_Entry_Game", Reply_Entry_Game_name, Reply_Entry_Game_value)
proto.RegisterExtension(E_ReplyExtensions_Time)
proto.RegisterExtension(E_ReplyExtensions_Carrot)
proto.RegisterExtension(E_ReplyExtensions_Donut)
proto.RegisterExtension(E_Tag)
proto.RegisterExtension(E_Donut)
}
开发者ID:yunkai,项目名称:protobuf,代码行数:11,代码来源:test.pb.go
示例3: init
func init() {
proto.RegisterType((*Simple)(nil), "jsonpb.Simple")
proto.RegisterType((*Repeats)(nil), "jsonpb.Repeats")
proto.RegisterType((*Widget)(nil), "jsonpb.Widget")
proto.RegisterType((*Maps)(nil), "jsonpb.Maps")
proto.RegisterType((*MsgWithOneof)(nil), "jsonpb.MsgWithOneof")
proto.RegisterType((*Real)(nil), "jsonpb.Real")
proto.RegisterType((*Complex)(nil), "jsonpb.Complex")
proto.RegisterEnum("jsonpb.Widget_Color", Widget_Color_name, Widget_Color_value)
proto.RegisterExtension(E_Complex_RealExtension)
proto.RegisterExtension(E_Name)
}
开发者ID:otsimo,项目名称:otsimoctl,代码行数:12,代码来源:test_objects.pb.go
示例4: init
func init() {
proto.RegisterType((*Request)(nil), "my.test.Request")
proto.RegisterType((*Request_SomeGroup)(nil), "my.test.Request.SomeGroup")
proto.RegisterType((*Reply)(nil), "my.test.Reply")
proto.RegisterType((*Reply_Entry)(nil), "my.test.Reply.Entry")
proto.RegisterType((*OtherBase)(nil), "my.test.OtherBase")
proto.RegisterType((*ReplyExtensions)(nil), "my.test.ReplyExtensions")
proto.RegisterType((*OtherReplyExtensions)(nil), "my.test.OtherReplyExtensions")
proto.RegisterType((*OldReply)(nil), "my.test.OldReply")
proto.RegisterType((*Communique)(nil), "my.test.Communique")
proto.RegisterType((*Communique_SomeGroup)(nil), "my.test.Communique.SomeGroup")
proto.RegisterType((*Communique_Delta)(nil), "my.test.Communique.Delta")
proto.RegisterEnum("my.test.HatType", HatType_name, HatType_value)
proto.RegisterEnum("my.test.Days", Days_name, Days_value)
proto.RegisterEnum("my.test.Request_Color", Request_Color_name, Request_Color_value)
proto.RegisterEnum("my.test.Reply_Entry_Game", Reply_Entry_Game_name, Reply_Entry_Game_value)
proto.RegisterExtension(E_ReplyExtensions_Time)
proto.RegisterExtension(E_ReplyExtensions_Carrot)
proto.RegisterExtension(E_ReplyExtensions_Donut)
proto.RegisterExtension(E_Tag)
proto.RegisterExtension(E_Donut)
}
开发者ID:stevvooe,项目名称:protobuf,代码行数:22,代码来源:test.pb.go
示例5: init
func init() {
proto.RegisterExtension(E_GoprotoEnumPrefix)
proto.RegisterExtension(E_GoprotoEnumStringer)
proto.RegisterExtension(E_EnumStringer)
proto.RegisterExtension(E_GoprotoGettersAll)
proto.RegisterExtension(E_GoprotoEnumPrefixAll)
proto.RegisterExtension(E_GoprotoStringerAll)
proto.RegisterExtension(E_VerboseEqualAll)
proto.RegisterExtension(E_FaceAll)
proto.RegisterExtension(E_GostringAll)
proto.RegisterExtension(E_PopulateAll)
proto.RegisterExtension(E_StringerAll)
proto.RegisterExtension(E_OnlyoneAll)
proto.RegisterExtension(E_EqualAll)
proto.RegisterExtension(E_DescriptionAll)
proto.RegisterExtension(E_TestgenAll)
proto.RegisterExtension(E_BenchgenAll)
proto.RegisterExtension(E_MarshalerAll)
proto.RegisterExtension(E_UnmarshalerAll)
proto.RegisterExtension(E_SizerAll)
proto.RegisterExtension(E_GoprotoEnumStringerAll)
proto.RegisterExtension(E_EnumStringerAll)
proto.RegisterExtension(E_UnsafeMarshalerAll)
proto.RegisterExtension(E_UnsafeUnmarshalerAll)
proto.RegisterExtension(E_GoprotoExtensionsMapAll)
proto.RegisterExtension(E_GoprotoUnrecognizedAll)
proto.RegisterExtension(E_GogoprotoImport)
proto.RegisterExtension(E_GoprotoGetters)
proto.RegisterExtension(E_GoprotoStringer)
proto.RegisterExtension(E_VerboseEqual)
proto.RegisterExtension(E_Face)
proto.RegisterExtension(E_Gostring)
proto.RegisterExtension(E_Populate)
proto.RegisterExtension(E_Stringer)
proto.RegisterExtension(E_Onlyone)
proto.RegisterExtension(E_Equal)
proto.RegisterExtension(E_Description)
proto.RegisterExtension(E_Testgen)
proto.RegisterExtension(E_Benchgen)
proto.RegisterExtension(E_Marshaler)
proto.RegisterExtension(E_Unmarshaler)
proto.RegisterExtension(E_Sizer)
proto.RegisterExtension(E_UnsafeMarshaler)
proto.RegisterExtension(E_UnsafeUnmarshaler)
proto.RegisterExtension(E_GoprotoExtensionsMap)
proto.RegisterExtension(E_GoprotoUnrecognized)
proto.RegisterExtension(E_Nullable)
proto.RegisterExtension(E_Embed)
proto.RegisterExtension(E_Customtype)
proto.RegisterExtension(E_Customname)
proto.RegisterExtension(E_Jsontag)
proto.RegisterExtension(E_Moretags)
proto.RegisterExtension(E_Casttype)
proto.RegisterExtension(E_Castkey)
proto.RegisterExtension(E_Castvalue)
}
开发者ID:pankita,项目名称:kubernetes,代码行数:56,代码来源:gogo.pb.go
示例6: init
func init() {
proto.RegisterExtension(E_Http)
}
开发者ID:peter-edge,项目名称:protoeasy-go,代码行数:3,代码来源:annotations.pb.go
示例7: init
func init() {
proto.RegisterType((*TLSAuthorization)(nil), "docker.protobuf.plugin.TLSAuthorization")
proto.RegisterExtension(E_Deepcopy)
proto.RegisterExtension(E_TlsAuthorization)
}
开发者ID:SUSE,项目名称:docker.mirror,代码行数:5,代码来源:plugin.pb.go
示例8: init
func init() {
proto.RegisterEnum("internal.Command_Type", Command_Type_name, Command_Type_value)
proto.RegisterExtension(E_CreateNodeCommand_Command)
proto.RegisterExtension(E_DeleteNodeCommand_Command)
proto.RegisterExtension(E_CreateDatabaseCommand_Command)
proto.RegisterExtension(E_DropDatabaseCommand_Command)
proto.RegisterExtension(E_CreateRetentionPolicyCommand_Command)
proto.RegisterExtension(E_DropRetentionPolicyCommand_Command)
proto.RegisterExtension(E_SetDefaultRetentionPolicyCommand_Command)
proto.RegisterExtension(E_UpdateRetentionPolicyCommand_Command)
proto.RegisterExtension(E_CreateShardGroupCommand_Command)
proto.RegisterExtension(E_DeleteShardGroupCommand_Command)
proto.RegisterExtension(E_CreateContinuousQueryCommand_Command)
proto.RegisterExtension(E_DropContinuousQueryCommand_Command)
proto.RegisterExtension(E_CreateUserCommand_Command)
proto.RegisterExtension(E_DropUserCommand_Command)
proto.RegisterExtension(E_UpdateUserCommand_Command)
proto.RegisterExtension(E_SetPrivilegeCommand_Command)
proto.RegisterExtension(E_SetDataCommand_Command)
}
开发者ID:nolenroyalty,项目名称:bangarang,代码行数:20,代码来源:meta.pb.go
示例9: init
func init() {
proto.RegisterExtension(E_Primary)
proto.RegisterExtension(E_Index)
}
开发者ID:pascaldekloe,项目名称:colfer,代码行数:4,代码来源:proto3ext.pb.go
注:本文中的github.com/gogo/protobuf/proto.RegisterExtension函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论