本文整理汇总了Golang中github.com/golang/protobuf/proto.RegisterExtension函数的典型用法代码示例。如果您正苦于以下问题:Golang RegisterExtension函数的具体用法?Golang RegisterExtension怎么用?Golang RegisterExtension使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RegisterExtension函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: init
func init() {
proto.RegisterExtension(E_SpawnInfo_SpawnInfo)
proto.RegisterExtension(E_CppCompileInfo_CppCompileInfo)
proto.RegisterExtension(E_CppLinkInfo_CppLinkInfo)
proto.RegisterExtension(E_JavaCompileInfo_JavaCompileInfo)
proto.RegisterExtension(E_PythonInfo_PythonInfo)
}
示例2: init
func init() {
proto.RegisterType((*Friend)(nil), "friends_types.Friend")
proto.RegisterType((*FriendInvitation)(nil), "friends_types.FriendInvitation")
proto.RegisterType((*FriendInvitationParams)(nil), "friends_types.FriendInvitationParams")
proto.RegisterExtension(E_FriendInvitation_FriendInvite)
proto.RegisterExtension(E_FriendInvitationParams_FriendParams)
}
示例3: init
func init() {
proto.RegisterEnum("limitd.Response_Type", Response_Type_name, Response_Type_value)
proto.RegisterEnum("limitd.ErrorResponse_Type", ErrorResponse_Type_name, ErrorResponse_Type_value)
proto.RegisterExtension(E_ErrorResponse_Response)
proto.RegisterExtension(E_TakeResponse_Response)
proto.RegisterExtension(E_PutResponse_Response)
}
示例4: 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)
}
示例5: init
func init() {
proto.RegisterEnum("packet.ChannelResult_CommonError", ChannelResult_CommonError_name, ChannelResult_CommonError_value)
proto.RegisterEnum("packet.ContactRequestResponse_Status", ContactRequestResponse_Status_name, ContactRequestResponse_Status_value)
proto.RegisterExtension(E_ClientCookie)
proto.RegisterExtension(E_ServerCookie)
proto.RegisterExtension(E_ContactRequest)
proto.RegisterExtension(E_Response)
}
示例6: init
func init() {
proto.RegisterType((*CMsgProtoBufHeader)(nil), "CMsgProtoBufHeader")
proto.RegisterType((*CMsgMulti)(nil), "CMsgMulti")
proto.RegisterType((*CMsgProtobufWrapped)(nil), "CMsgProtobufWrapped")
proto.RegisterType((*CMsgAuthTicket)(nil), "CMsgAuthTicket")
proto.RegisterType((*CCDDBAppDetailCommon)(nil), "CCDDBAppDetailCommon")
proto.RegisterType((*CMsgAppRights)(nil), "CMsgAppRights")
proto.RegisterExtension(E_MsgpoolSoftLimit)
proto.RegisterExtension(E_MsgpoolHardLimit)
}
示例7: 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)
}
示例8: 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)
}
示例9: init
func init() {
proto.RegisterType((*RichPresence)(nil), "presence_types.RichPresence")
proto.RegisterType((*FieldKey)(nil), "presence_types.FieldKey")
proto.RegisterType((*Field)(nil), "presence_types.Field")
proto.RegisterType((*FieldOperation)(nil), "presence_types.FieldOperation")
proto.RegisterType((*ChannelState)(nil), "presence_types.ChannelState")
proto.RegisterEnum("presence_types.FieldOperation_OperationType", FieldOperation_OperationType_name, FieldOperation_OperationType_value)
proto.RegisterExtension(E_ChannelState_Presence)
}
示例10: init
func init() {
proto.RegisterType((*Request)(nil), "operator.Request")
proto.RegisterType((*Response)(nil), "operator.Response")
proto.RegisterType((*Call)(nil), "operator.Call")
proto.RegisterType((*Source)(nil), "operator.Source")
proto.RegisterType((*Room)(nil), "operator.Room")
proto.RegisterType((*User)(nil), "operator.User")
proto.RegisterEnum("operator.SourceType", SourceType_name, SourceType_value)
proto.RegisterExtension(E_Name)
}
示例11: 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)
}
示例12: init
func init() {
proto.RegisterEnum("EProtoExecutionSite", EProtoExecutionSite_name, EProtoExecutionSite_value)
proto.RegisterExtension(E_Description)
proto.RegisterExtension(E_ServiceDescription)
proto.RegisterExtension(E_ServiceExecutionSite)
proto.RegisterExtension(E_MethodDescription)
proto.RegisterExtension(E_EnumDescription)
proto.RegisterExtension(E_EnumValueDescription)
}
示例13: init
func init() {
proto.RegisterType((*NoResponse)(nil), "NoResponse")
proto.RegisterEnum("EProtoExecutionSite", EProtoExecutionSite_name, EProtoExecutionSite_value)
proto.RegisterExtension(E_Description)
proto.RegisterExtension(E_ServiceDescription)
proto.RegisterExtension(E_ServiceExecutionSite)
proto.RegisterExtension(E_MethodDescription)
proto.RegisterExtension(E_EnumDescription)
proto.RegisterExtension(E_EnumValueDescription)
}
示例14: init
func init() {
proto.RegisterEnum("example.Corpus", Corpus_name, Corpus_value)
proto.RegisterExtension(E_F1)
}
示例15: init
func init() {
proto.RegisterType((*Extension)(nil), "grpc.testing.Extension")
proto.RegisterExtension(E_Bar)
proto.RegisterExtension(E_Baz)
}