Documentation
¶
Index ¶
- Constants
- Variables
- type LoginType
- type OauthProvider
- func (x *OauthProvider) GetName() string
- func (x *OauthProvider) GetProviderUrl() string
- func (*OauthProvider) ProtoMessage()
- func (x *OauthProvider) ProtoReflect() protoreflect.Message
- func (x *OauthProvider) Reset()
- func (x *OauthProvider) SetName(v string)
- func (x *OauthProvider) SetProviderUrl(v string)
- func (x *OauthProvider) String() string
- type OauthProvider_builder
- type Token
- func (x *Token) GetAccessToken() string
- func (x *Token) GetRefreshToken() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) SetAccessToken(v string)
- func (x *Token) SetRefreshToken(v string)
- func (x *Token) String() string
- type Token_builder
- type UserIdentifier
- func (x *UserIdentifier) ClearEmail()
- func (x *UserIdentifier) ClearIdentifier()
- func (x *UserIdentifier) ClearPhoneNumber()
- func (x *UserIdentifier) ClearUsername()
- func (x *UserIdentifier) GetEmail() string
- func (x *UserIdentifier) GetIdentifier() isUserIdentifier_Identifier
- func (x *UserIdentifier) GetPhoneNumber() string
- func (x *UserIdentifier) GetUsername() string
- func (x *UserIdentifier) HasEmail() bool
- func (x *UserIdentifier) HasIdentifier() bool
- func (x *UserIdentifier) HasPhoneNumber() bool
- func (x *UserIdentifier) HasUsername() bool
- func (*UserIdentifier) ProtoMessage()
- func (x *UserIdentifier) ProtoReflect() protoreflect.Message
- func (x *UserIdentifier) Reset()
- func (x *UserIdentifier) SetEmail(v string)
- func (x *UserIdentifier) SetPhoneNumber(v string)
- func (x *UserIdentifier) SetUsername(v string)
- func (x *UserIdentifier) String() string
- func (x *UserIdentifier) WhichIdentifier() case_UserIdentifier_Identifier
- type UserIdentifier_Email
- type UserIdentifier_PhoneNumber
- type UserIdentifier_Username
- type UserIdentifier_builder
- type UserInfo
- func (x *UserInfo) ClearCreatedAt()
- func (x *UserInfo) GetCreatedAt() *timestamppb.Timestamp
- func (x *UserInfo) GetEmail() string
- func (x *UserInfo) GetGroups() []*group.Entry
- func (x *UserInfo) GetPhoneNumber() string
- func (x *UserInfo) GetUsername() string
- func (x *UserInfo) HasCreatedAt() bool
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) SetCreatedAt(v *timestamppb.Timestamp)
- func (x *UserInfo) SetEmail(v string)
- func (x *UserInfo) SetGroups(v []*group.Entry)
- func (x *UserInfo) SetPhoneNumber(v string)
- func (x *UserInfo) SetUsername(v string)
- func (x *UserInfo) String() string
- type UserInfo_builder
Constants ¶
View Source
const UserIdentifier_Email_case case_UserIdentifier_Identifier = 2
View Source
const UserIdentifier_Identifier_not_set_case case_UserIdentifier_Identifier = 0
View Source
const UserIdentifier_PhoneNumber_case case_UserIdentifier_Identifier = 3
View Source
const UserIdentifier_Username_case case_UserIdentifier_Identifier = 1
Variables ¶
View Source
var ( LoginType_name = map[int32]string{ 0: "LOGIN_TYPE_UNSPECIFIED", 1: "LOGIN_TYPE_EMAIL_PASSWORD", 2: "LOGIN_TYPE_PHONE_PASSWORD", 3: "LOGIN_TYPE_USERNAME_PASSWORD", } LoginType_value = map[string]int32{ "LOGIN_TYPE_UNSPECIFIED": 0, "LOGIN_TYPE_EMAIL_PASSWORD": 1, "LOGIN_TYPE_PHONE_PASSWORD": 2, "LOGIN_TYPE_USERNAME_PASSWORD": 3, } )
Enum value maps for LoginType.
View Source
var File_nuntio_sdk_model_auth_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type LoginType ¶
type LoginType int32
func (LoginType) Descriptor ¶
func (LoginType) Descriptor() protoreflect.EnumDescriptor
func (LoginType) Number ¶
func (x LoginType) Number() protoreflect.EnumNumber
func (LoginType) Type ¶
func (LoginType) Type() protoreflect.EnumType
type OauthProvider ¶
type OauthProvider struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ProviderUrl string `protobuf:"bytes,2,opt,name=provider_url,json=providerUrl,proto3" json:"provider_url,omitempty"`
// contains filtered or unexported fields
}
func (*OauthProvider) GetName ¶
func (x *OauthProvider) GetName() string
func (*OauthProvider) GetProviderUrl ¶
func (x *OauthProvider) GetProviderUrl() string
func (*OauthProvider) ProtoMessage ¶
func (*OauthProvider) ProtoMessage()
func (*OauthProvider) ProtoReflect ¶
func (x *OauthProvider) ProtoReflect() protoreflect.Message
func (*OauthProvider) Reset ¶
func (x *OauthProvider) Reset()
func (*OauthProvider) SetName ¶
func (x *OauthProvider) SetName(v string)
func (*OauthProvider) SetProviderUrl ¶
func (x *OauthProvider) SetProviderUrl(v string)
func (*OauthProvider) String ¶
func (x *OauthProvider) String() string
type OauthProvider_builder ¶
type OauthProvider_builder struct {
Name string
ProviderUrl string
// contains filtered or unexported fields
}
func (OauthProvider_builder) Build ¶
func (b0 OauthProvider_builder) Build() *OauthProvider
type Token ¶
type Token struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
// contains filtered or unexported fields
}
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type Token_builder ¶
type Token_builder struct {
AccessToken string
RefreshToken string
// contains filtered or unexported fields
}
func (Token_builder) Build ¶
func (b0 Token_builder) Build() *Token
type UserIdentifier ¶
type UserIdentifier struct {
// Types that are valid to be assigned to Identifier:
//
// *UserIdentifier_Username
// *UserIdentifier_Email
// *UserIdentifier_PhoneNumber
Identifier isUserIdentifier_Identifier `protobuf_oneof:"identifier"`
// contains filtered or unexported fields
}
func (*UserIdentifier) ClearEmail ¶
func (x *UserIdentifier) ClearEmail()
func (*UserIdentifier) ClearIdentifier ¶
func (x *UserIdentifier) ClearIdentifier()
func (*UserIdentifier) ClearPhoneNumber ¶
func (x *UserIdentifier) ClearPhoneNumber()
func (*UserIdentifier) ClearUsername ¶
func (x *UserIdentifier) ClearUsername()
func (*UserIdentifier) GetEmail ¶
func (x *UserIdentifier) GetEmail() string
func (*UserIdentifier) GetIdentifier ¶
func (x *UserIdentifier) GetIdentifier() isUserIdentifier_Identifier
func (*UserIdentifier) GetPhoneNumber ¶
func (x *UserIdentifier) GetPhoneNumber() string
func (*UserIdentifier) GetUsername ¶
func (x *UserIdentifier) GetUsername() string
func (*UserIdentifier) HasEmail ¶
func (x *UserIdentifier) HasEmail() bool
func (*UserIdentifier) HasIdentifier ¶
func (x *UserIdentifier) HasIdentifier() bool
func (*UserIdentifier) HasPhoneNumber ¶
func (x *UserIdentifier) HasPhoneNumber() bool
func (*UserIdentifier) HasUsername ¶
func (x *UserIdentifier) HasUsername() bool
func (*UserIdentifier) ProtoMessage ¶
func (*UserIdentifier) ProtoMessage()
func (*UserIdentifier) ProtoReflect ¶
func (x *UserIdentifier) ProtoReflect() protoreflect.Message
func (*UserIdentifier) Reset ¶
func (x *UserIdentifier) Reset()
func (*UserIdentifier) SetEmail ¶
func (x *UserIdentifier) SetEmail(v string)
func (*UserIdentifier) SetPhoneNumber ¶
func (x *UserIdentifier) SetPhoneNumber(v string)
func (*UserIdentifier) SetUsername ¶
func (x *UserIdentifier) SetUsername(v string)
func (*UserIdentifier) String ¶
func (x *UserIdentifier) String() string
func (*UserIdentifier) WhichIdentifier ¶
func (x *UserIdentifier) WhichIdentifier() case_UserIdentifier_Identifier
type UserIdentifier_Email ¶
type UserIdentifier_Email struct {
Email string `protobuf:"bytes,2,opt,name=email,proto3,oneof"`
}
type UserIdentifier_PhoneNumber ¶
type UserIdentifier_PhoneNumber struct {
PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3,oneof"`
}
type UserIdentifier_Username ¶
type UserIdentifier_Username struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3,oneof"`
}
type UserIdentifier_builder ¶
type UserIdentifier_builder struct {
// Fields of oneof Identifier:
Username *string
Email *string
PhoneNumber *string
// contains filtered or unexported fields
}
func (UserIdentifier_builder) Build ¶
func (b0 UserIdentifier_builder) Build() *UserIdentifier
type UserInfo ¶
type UserInfo struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
Groups []*group.Entry `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"`
// contains filtered or unexported fields
}
func (*UserInfo) GetCreatedAt ¶
func (x *UserInfo) GetCreatedAt() *timestamppb.Timestamp
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
func (*UserInfo) SetCreatedAt ¶
func (x *UserInfo) SetCreatedAt(v *timestamppb.Timestamp)
Source Files
¶
- user.pb.go
Click to show internal directories.
Click to hide internal directories.