service auth registration
This commit is contained in:
parent
6eda67db60
commit
287b1f5a30
7 changed files with 478 additions and 0 deletions
228
pkg/externalRegistration/v1/serviceRegistration.pb.go
Normal file
228
pkg/externalRegistration/v1/serviceRegistration.pb.go
Normal file
|
|
@ -0,0 +1,228 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc v6.33.1
|
||||
// source: proto/serviceRegistration.proto
|
||||
|
||||
package externalRegV1
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type RegistrationRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
ServiceCode int32 `protobuf:"varint,3,opt,name=service_code,json=serviceCode,proto3" json:"service_code,omitempty"`
|
||||
ServiceEndCode int32 `protobuf:"varint,4,opt,name=service_end_code,json=serviceEndCode,proto3" json:"service_end_code,omitempty"`
|
||||
Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
|
||||
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RegistrationRequest) Reset() {
|
||||
*x = RegistrationRequest{}
|
||||
mi := &file_proto_serviceRegistration_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RegistrationRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RegistrationRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RegistrationRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_serviceRegistration_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RegistrationRequest.ProtoReflect.Descriptor instead.
|
||||
func (*RegistrationRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_serviceRegistration_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *RegistrationRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RegistrationRequest) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RegistrationRequest) GetServiceCode() int32 {
|
||||
if x != nil {
|
||||
return x.ServiceCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RegistrationRequest) GetServiceEndCode() int32 {
|
||||
if x != nil {
|
||||
return x.ServiceEndCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RegistrationRequest) GetSecret() string {
|
||||
if x != nil {
|
||||
return x.Secret
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RegistrationRequest) GetStatus() string {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type RegistrationResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
ServiceId int32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
|
||||
AlreadyRegistered bool `protobuf:"varint,2,opt,name=already_registered,json=alreadyRegistered,proto3" json:"already_registered,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RegistrationResponse) Reset() {
|
||||
*x = RegistrationResponse{}
|
||||
mi := &file_proto_serviceRegistration_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RegistrationResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RegistrationResponse) ProtoMessage() {}
|
||||
|
||||
func (x *RegistrationResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_serviceRegistration_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RegistrationResponse.ProtoReflect.Descriptor instead.
|
||||
func (*RegistrationResponse) Descriptor() ([]byte, []int) {
|
||||
return file_proto_serviceRegistration_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *RegistrationResponse) GetServiceId() int32 {
|
||||
if x != nil {
|
||||
return x.ServiceId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RegistrationResponse) GetAlreadyRegistered() bool {
|
||||
if x != nil {
|
||||
return x.AlreadyRegistered
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var File_proto_serviceRegistration_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_proto_serviceRegistration_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1fproto/serviceRegistration.proto\x12\x11auth.registration\"\xc8\x01\n" +
|
||||
"\x13RegistrationRequest\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
|
||||
"\vdescription\x18\x02 \x01(\tR\vdescription\x12!\n" +
|
||||
"\fservice_code\x18\x03 \x01(\x05R\vserviceCode\x12(\n" +
|
||||
"\x10service_end_code\x18\x04 \x01(\x05R\x0eserviceEndCode\x12\x16\n" +
|
||||
"\x06secret\x18\x05 \x01(\tR\x06secret\x12\x16\n" +
|
||||
"\x06status\x18\x06 \x01(\tR\x06status\"d\n" +
|
||||
"\x14RegistrationResponse\x12\x1d\n" +
|
||||
"\n" +
|
||||
"service_id\x18\x01 \x01(\x05R\tserviceId\x12-\n" +
|
||||
"\x12already_registered\x18\x02 \x01(\bR\x11alreadyRegistered2\x81\x01\n" +
|
||||
"\x14ExternalRegistration\x12i\n" +
|
||||
"\x16AuthenticateOrRegister\x12&.auth.registration.RegistrationRequest\x1a'.auth.registration.RegistrationResponseB,Z*/pkg/externalRegistration/v1;externalRegV1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_proto_serviceRegistration_proto_rawDescOnce sync.Once
|
||||
file_proto_serviceRegistration_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_proto_serviceRegistration_proto_rawDescGZIP() []byte {
|
||||
file_proto_serviceRegistration_proto_rawDescOnce.Do(func() {
|
||||
file_proto_serviceRegistration_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_serviceRegistration_proto_rawDesc), len(file_proto_serviceRegistration_proto_rawDesc)))
|
||||
})
|
||||
return file_proto_serviceRegistration_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_proto_serviceRegistration_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_proto_serviceRegistration_proto_goTypes = []any{
|
||||
(*RegistrationRequest)(nil), // 0: auth.registration.RegistrationRequest
|
||||
(*RegistrationResponse)(nil), // 1: auth.registration.RegistrationResponse
|
||||
}
|
||||
var file_proto_serviceRegistration_proto_depIdxs = []int32{
|
||||
0, // 0: auth.registration.ExternalRegistration.AuthenticateOrRegister:input_type -> auth.registration.RegistrationRequest
|
||||
1, // 1: auth.registration.ExternalRegistration.AuthenticateOrRegister:output_type -> auth.registration.RegistrationResponse
|
||||
1, // [1:2] is the sub-list for method output_type
|
||||
0, // [0:1] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_proto_serviceRegistration_proto_init() }
|
||||
func file_proto_serviceRegistration_proto_init() {
|
||||
if File_proto_serviceRegistration_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_serviceRegistration_proto_rawDesc), len(file_proto_serviceRegistration_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_proto_serviceRegistration_proto_goTypes,
|
||||
DependencyIndexes: file_proto_serviceRegistration_proto_depIdxs,
|
||||
MessageInfos: file_proto_serviceRegistration_proto_msgTypes,
|
||||
}.Build()
|
||||
File_proto_serviceRegistration_proto = out.File
|
||||
file_proto_serviceRegistration_proto_goTypes = nil
|
||||
file_proto_serviceRegistration_proto_depIdxs = nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue