// Code generated by protoc-gen-go. DO NOT EDIT. // source: userdb.proto package userdb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ProtoDB struct { Users map[string]*Password `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ProtoDB) Reset() { *m = ProtoDB{} } func (m *ProtoDB) String() string { return proto.CompactTextString(m) } func (*ProtoDB) ProtoMessage() {} func (*ProtoDB) Descriptor() ([]byte, []int) { return fileDescriptor_1492f046cfa19579, []int{0} } func (m *ProtoDB) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ProtoDB.Unmarshal(m, b) } func (m *ProtoDB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ProtoDB.Marshal(b, m, deterministic) } func (m *ProtoDB) XXX_Merge(src proto.Message) { xxx_messageInfo_ProtoDB.Merge(m, src) } func (m *ProtoDB) XXX_Size() int { return xxx_messageInfo_ProtoDB.Size(m) } func (m *ProtoDB) XXX_DiscardUnknown() { xxx_messageInfo_ProtoDB.DiscardUnknown(m) } var xxx_messageInfo_ProtoDB proto.InternalMessageInfo func (m *ProtoDB) GetUsers() map[string]*Password { if m != nil { return m.Users } return nil } type Password struct { // Types that are valid to be assigned to Scheme: // *Password_Scrypt // *Password_Plain Scheme isPassword_Scheme `protobuf_oneof:"scheme"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Password) Reset() { *m = Password{} } func (m *Password) String() string { return proto.CompactTextString(m) } func (*Password) ProtoMessage() {} func (*Password) Descriptor() ([]byte, []int) { return fileDescriptor_1492f046cfa19579, []int{1} } func (m *Password) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Password.Unmarshal(m, b) } func (m *Password) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Password.Marshal(b, m, deterministic) } func (m *Password) XXX_Merge(src proto.Message) { xxx_messageInfo_Password.Merge(m, src) } func (m *Password) XXX_Size() int { return xxx_messageInfo_Password.Size(m) } func (m *Password) XXX_DiscardUnknown() { xxx_messageInfo_Password.DiscardUnknown(m) } var xxx_messageInfo_Password proto.InternalMessageInfo type isPassword_Scheme interface { isPassword_Scheme() } type Password_Scrypt struct { Scrypt *Scrypt `protobuf:"bytes,2,opt,name=scrypt,proto3,oneof"` } type Password_Plain struct { Plain *Plain `protobuf:"bytes,3,opt,name=plain,proto3,oneof"` } func (*Password_Scrypt) isPassword_Scheme() {} func (*Password_Plain) isPassword_Scheme() {} func (m *Password) GetScheme() isPassword_Scheme { if m != nil { return m.Scheme } return nil } func (m *Password) GetScrypt() *Scrypt { if x, ok := m.GetScheme().(*Password_Scrypt); ok { return x.Scrypt } return nil } func (m *Password) GetPlain() *Plain { if x, ok := m.GetScheme().(*Password_Plain); ok { return x.Plain } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*Password) XXX_OneofWrappers() []interface{} { return []interface{}{ (*Password_Scrypt)(nil), (*Password_Plain)(nil), } } type Scrypt struct { LogN uint64 `protobuf:"varint,1,opt,name=logN,proto3" json:"logN,omitempty"` R int32 `protobuf:"varint,2,opt,name=r,proto3" json:"r,omitempty"` P int32 `protobuf:"varint,3,opt,name=p,proto3" json:"p,omitempty"` KeyLen int32 `protobuf:"varint,4,opt,name=keyLen,proto3" json:"keyLen,omitempty"` Salt []byte `protobuf:"bytes,5,opt,name=salt,proto3" json:"salt,omitempty"` Encrypted []byte `protobuf:"bytes,6,opt,name=encrypted,proto3" json:"encrypted,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Scrypt) Reset() { *m = Scrypt{} } func (m *Scrypt) String() string { return proto.CompactTextString(m) } func (*Scrypt) ProtoMessage() {} func (*Scrypt) Descriptor() ([]byte, []int) { return fileDescriptor_1492f046cfa19579, []int{2} } func (m *Scrypt) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Scrypt.Unmarshal(m, b) } func (m *Scrypt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Scrypt.Marshal(b, m, deterministic) } func (m *Scrypt) XXX_Merge(src proto.Message) { xxx_messageInfo_Scrypt.Merge(m, src) } func (m *Scrypt) XXX_Size() int { return xxx_messageInfo_Scrypt.Size(m) } func (m *Scrypt) XXX_DiscardUnknown() { xxx_messageInfo_Scrypt.DiscardUnknown(m) } var xxx_messageInfo_Scrypt proto.InternalMessageInfo func (m *Scrypt) GetLogN() uint64 { if m != nil { return m.LogN } return 0 } func (m *Scrypt) GetR() int32 { if m != nil { return m.R } return 0 } func (m *Scrypt) GetP() int32 { if m != nil { return m.P } return 0 } func (m *Scrypt) GetKeyLen() int32 { if m != nil { return m.KeyLen } return 0 } func (m *Scrypt) GetSalt() []byte { if m != nil { return m.Salt } return nil } func (m *Scrypt) GetEncrypted() []byte { if m != nil { return m.Encrypted } return nil } type Plain struct { Password []byte `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Plain) Reset() { *m = Plain{} } func (m *Plain) String() string { return proto.CompactTextString(m) } func (*Plain) ProtoMessage() {} func (*Plain) Descriptor() ([]byte, []int) { return fileDescriptor_1492f046cfa19579, []int{3} } func (m *Plain) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Plain.Unmarshal(m, b) } func (m *Plain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Plain.Marshal(b, m, deterministic) } func (m *Plain) XXX_Merge(src proto.Message) { xxx_messageInfo_Plain.Merge(m, src) } func (m *Plain) XXX_Size() int { return xxx_messageInfo_Plain.Size(m) } func (m *Plain) XXX_DiscardUnknown() { xxx_messageInfo_Plain.DiscardUnknown(m) } var xxx_messageInfo_Plain proto.InternalMessageInfo func (m *Plain) GetPassword() []byte { if m != nil { return m.Password } return nil } func init() { proto.RegisterType((*ProtoDB)(nil), "userdb.ProtoDB") proto.RegisterMapType((map[string]*Password)(nil), "userdb.ProtoDB.UsersEntry") proto.RegisterType((*Password)(nil), "userdb.Password") proto.RegisterType((*Scrypt)(nil), "userdb.Scrypt") proto.RegisterType((*Plain)(nil), "userdb.Plain") } func init() { proto.RegisterFile("userdb.proto", fileDescriptor_1492f046cfa19579) } var fileDescriptor_1492f046cfa19579 = []byte{ // 292 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x91, 0x41, 0x4b, 0xc3, 0x40, 0x10, 0x85, 0xbb, 0x6d, 0x77, 0x6d, 0xa7, 0x51, 0xca, 0x1c, 0x64, 0x29, 0x1e, 0x42, 0x44, 0xc9, 0x29, 0x48, 0xbd, 0x88, 0xc7, 0xa2, 0x50, 0x44, 0x44, 0x56, 0xfc, 0x01, 0xa9, 0x59, 0x54, 0x1a, 0x93, 0x65, 0x37, 0x55, 0x72, 0xf5, 0xe2, 0xdf, 0x96, 0x9d, 0x6c, 0xd3, 0xdb, 0xbc, 0xef, 0xcd, 0xbc, 0x99, 0x65, 0x21, 0xda, 0x39, 0x6d, 0x8b, 0x4d, 0x66, 0x6c, 0xdd, 0xd4, 0x28, 0x3a, 0x95, 0xfc, 0x31, 0x38, 0x7a, 0xf6, 0xe4, 0x6e, 0x85, 0x57, 0xc0, 0x3d, 0x75, 0x92, 0xc5, 0xa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