Debian Codegraph @

manager_user_types.go

raw
1 package proton
2
3 type TokenType string
4
5 const (
6 EmailTokenType TokenType = "email"
7 SMSTokenType TokenType = "sms"
8 )
9
10 type SendVerificationCodeReq struct {
11 Username string
12 Type TokenType
13 Destination TokenDestination
14 }
15
16 type TokenDestination struct {
17 Address string
18 Phone string
19 }
20
21 type UserType int
22
23 const (
24 MailUserType UserType = iota + 1
25 VPNUserType
26 )
27
28 type CreateUserReq struct {
29 Type UserType
30 Username string
31 Domain string
32 Auth AuthVerifier
33 }