@@ -4,19 +4,19 @@ import (
4
4
"github.com/domainr/epp2/schema/epp"
5
5
)
6
6
7
- func Greeting (cfg * Config ) (* epp.Greeting , error ) {
7
+ func Greeting (cfg * Config ) (epp.Body , error ) {
8
8
return & epp.Greeting {}, nil // TODO
9
9
}
10
10
11
- func Command (cfg * Config , action epp.Action , extensions ... epp.Extension ) (* epp.Command , error ) {
11
+ func Command (cfg * Config , action epp.Action , extensions ... epp.Extension ) (epp.Body , error ) {
12
12
return & epp.Command {
13
13
Action : action ,
14
14
Extensions : extensions ,
15
15
ClientTransactionID : cfg .TransactionID (),
16
16
}, nil
17
17
}
18
18
19
- func LoginCommand (cfg * Config , clientID , password string , newPassword * string ) (* epp.Command , error ) {
19
+ func Login (cfg * Config , clientID , password string , newPassword * string ) (epp.Body , error ) {
20
20
return Command (cfg , & epp.Login {
21
21
ClientID : clientID ,
22
22
Password : password ,
@@ -27,10 +27,10 @@ func LoginCommand(cfg *Config, clientID, password string, newPassword *string) (
27
27
})
28
28
}
29
29
30
- func LogoutCommand (cfg * Config ) (* epp.Command , error ) {
30
+ func Logout (cfg * Config ) (epp.Body , error ) {
31
31
return Command (cfg , & epp.Logout {})
32
32
}
33
33
34
- func ErrorResponse (cfg * Config , err error ) * epp.Response {
34
+ func ErrorResponse (cfg * Config , err error ) epp.Body {
35
35
return nil // TODO
36
36
}
0 commit comments