Skip to content

Commit 6487b51

Browse files
committed
build.go: WIP
1 parent 99be14a commit 6487b51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ import (
44
"github.com/domainr/epp2/schema/epp"
55
)
66

7-
func Greeting(cfg *Config) (*epp.Greeting, error) {
7+
func Greeting(cfg *Config) (epp.Body, error) {
88
return &epp.Greeting{}, nil // TODO
99
}
1010

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) {
1212
return &epp.Command{
1313
Action: action,
1414
Extensions: extensions,
1515
ClientTransactionID: cfg.TransactionID(),
1616
}, nil
1717
}
1818

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) {
2020
return Command(cfg, &epp.Login{
2121
ClientID: clientID,
2222
Password: password,
@@ -27,10 +27,10 @@ func LoginCommand(cfg *Config, clientID, password string, newPassword *string) (
2727
})
2828
}
2929

30-
func LogoutCommand(cfg *Config) (*epp.Command, error) {
30+
func Logout(cfg *Config) (epp.Body, error) {
3131
return Command(cfg, &epp.Logout{})
3232
}
3333

34-
func ErrorResponse(cfg *Config, err error) *epp.Response {
34+
func ErrorResponse(cfg *Config, err error) epp.Body {
3535
return nil // TODO
3636
}

0 commit comments

Comments
 (0)