本文整理汇总了Golang中github.com/gogo/protobuf/proto.RegisterType函数的典型用法代码示例。如果您正苦于以下问题:Golang RegisterType函数的具体用法?Golang RegisterType怎么用?Golang RegisterType使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RegisterType函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: init
func init() {
proto.RegisterType((*Job)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.Job")
proto.RegisterType((*JobCondition)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.JobCondition")
proto.RegisterType((*JobList)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.JobList")
proto.RegisterType((*JobSpec)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.JobSpec")
proto.RegisterType((*JobStatus)(nil), "k8s.io.kubernetes.pkg.apis.batch.v1.JobStatus")
}
示例2: init
func init() {
proto.RegisterType((*CertificateSigningRequest)(nil), "k8s.io.kubernetes.pkg.apis.certificates.v1alpha1.CertificateSigningRequest")
proto.RegisterType((*CertificateSigningRequestCondition)(nil), "k8s.io.kubernetes.pkg.apis.certificates.v1alpha1.CertificateSigningRequestCondition")
proto.RegisterType((*CertificateSigningRequestList)(nil), "k8s.io.kubernetes.pkg.apis.certificates.v1alpha1.CertificateSigningRequestList")
proto.RegisterType((*CertificateSigningRequestSpec)(nil), "k8s.io.kubernetes.pkg.apis.certificates.v1alpha1.CertificateSigningRequestSpec")
proto.RegisterType((*CertificateSigningRequestStatus)(nil), "k8s.io.kubernetes.pkg.apis.certificates.v1alpha1.CertificateSigningRequestStatus")
}
示例3: init
func init() {
proto.RegisterType((*ProviderGetRequest)(nil), "otsimo.ProviderGetRequest")
proto.RegisterType((*ProviderItem)(nil), "otsimo.ProviderItem")
proto.RegisterType((*ProviderItems)(nil), "otsimo.ProviderItems")
proto.RegisterType((*ProviderInfoRequest)(nil), "otsimo.ProviderInfoRequest")
proto.RegisterType((*ProviderInfo)(nil), "otsimo.ProviderInfo")
}
示例4: init
func init() {
proto.RegisterType((*RaftCommand)(nil), "cockroach.roachpb.RaftCommand")
proto.RegisterType((*RaftTruncatedState)(nil), "cockroach.roachpb.RaftTruncatedState")
proto.RegisterType((*RaftTombstone)(nil), "cockroach.roachpb.RaftTombstone")
proto.RegisterType((*RaftSnapshotData)(nil), "cockroach.roachpb.RaftSnapshotData")
proto.RegisterType((*RaftSnapshotData_KeyValue)(nil), "cockroach.roachpb.RaftSnapshotData.KeyValue")
}
示例5: init
func init() {
proto.RegisterType((*Country)(nil), "pb.geo.Country")
proto.RegisterType((*LatLng)(nil), "pb.geo.LatLng")
proto.RegisterType((*PostalAddress)(nil), "pb.geo.PostalAddress")
proto.RegisterType((*SimplePostalAddress)(nil), "pb.geo.SimplePostalAddress")
proto.RegisterEnum("pb.geo.StreetDirection", StreetDirection_name, StreetDirection_value)
}
示例6: init
func init() {
proto.RegisterType((*BootstrapInfo)(nil), "cockroach.gossip.BootstrapInfo")
proto.RegisterType((*Node)(nil), "cockroach.gossip.Node")
proto.RegisterType((*Request)(nil), "cockroach.gossip.Request")
proto.RegisterType((*Response)(nil), "cockroach.gossip.Response")
proto.RegisterType((*Info)(nil), "cockroach.gossip.Info")
}
示例7: init
func init() {
proto.RegisterType((*ExtraValue)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.ExtraValue")
proto.RegisterType((*TokenReview)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.TokenReview")
proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.TokenReviewSpec")
proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.TokenReviewStatus")
proto.RegisterType((*UserInfo)(nil), "k8s.io.kubernetes.pkg.apis.authentication.v1beta1.UserInfo")
}
示例8: init
func init() {
proto.RegisterType((*StoreRequestHeader)(nil), "cockroach.storage.StoreRequestHeader")
proto.RegisterType((*PollFrozenRequest)(nil), "cockroach.storage.PollFrozenRequest")
proto.RegisterType((*PollFrozenResponse)(nil), "cockroach.storage.PollFrozenResponse")
proto.RegisterType((*CollectChecksumRequest)(nil), "cockroach.storage.CollectChecksumRequest")
proto.RegisterType((*CollectChecksumResponse)(nil), "cockroach.storage.CollectChecksumResponse")
}
示例9: init
func init() {
proto.RegisterType((*StoreRequestHeader)(nil), "cockroach.storage.StoreRequestHeader")
proto.RegisterType((*PollFrozenRequest)(nil), "cockroach.storage.PollFrozenRequest")
proto.RegisterType((*PollFrozenResponse)(nil), "cockroach.storage.PollFrozenResponse")
proto.RegisterType((*ReservationRequest)(nil), "cockroach.storage.ReservationRequest")
proto.RegisterType((*ReservationResponse)(nil), "cockroach.storage.ReservationResponse")
}
示例10: 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")
}
示例11: init
func init() {
proto.RegisterType((*Project)(nil), "github.com.openshift.origin.pkg.project.api.v1.Project")
proto.RegisterType((*ProjectList)(nil), "github.com.openshift.origin.pkg.project.api.v1.ProjectList")
proto.RegisterType((*ProjectRequest)(nil), "github.com.openshift.origin.pkg.project.api.v1.ProjectRequest")
proto.RegisterType((*ProjectSpec)(nil), "github.com.openshift.origin.pkg.project.api.v1.ProjectSpec")
proto.RegisterType((*ProjectStatus)(nil), "github.com.openshift.origin.pkg.project.api.v1.ProjectStatus")
}
示例12: init
func init() {
proto.RegisterType((*Eviction)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.Eviction")
proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudget")
proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetList")
proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetSpec")
proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetStatus")
}
示例13: init
func init() {
proto.RegisterType((*NidOptEnum)(nil), "enumstringer.NidOptEnum")
proto.RegisterType((*NinOptEnum)(nil), "enumstringer.NinOptEnum")
proto.RegisterType((*NidRepEnum)(nil), "enumstringer.NidRepEnum")
proto.RegisterType((*NinRepEnum)(nil), "enumstringer.NinRepEnum")
proto.RegisterEnum("enumstringer.TheTestEnum", TheTestEnum_name, TheTestEnum_value)
}
示例14: init
func init() {
proto.RegisterType((*Artist)(nil), "proto2.Artist")
proto.RegisterType((*Song)(nil), "proto2.Song")
proto.RegisterType((*Album)(nil), "proto2.Album")
proto.RegisterEnum("proto2.Instrument", Instrument_name, Instrument_value)
proto.RegisterEnum("proto2.Genre", Genre_name, Genre_value)
}
示例15: init
func init() {
proto.RegisterType((*EmitRequest)(nil), "apipb.EmitRequest")
proto.RegisterType((*EmitResponse)(nil), "apipb.EmitResponse")
proto.RegisterType((*WatchRequest)(nil), "apipb.WatchRequest")
proto.RegisterType((*WatchEvent)(nil), "apipb.WatchEvent")
proto.RegisterType((*WatchResponse)(nil), "apipb.WatchResponse")
proto.RegisterEnum("apipb.WatchEvent_EventType", WatchEvent_EventType_name, WatchEvent_EventType_value)
}