-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.go
40 lines (31 loc) · 777 Bytes
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package main
import (
"net/http"
"github.com/gorilla/mux"
)
type APIsever struct {
listenAddr string
}
func NewAPIServer(listenAddr string) *APIServer {
return &APIServer {
listenAddr: listenAddr,
}
}
func (s *APIServer) Run() {
router := mux.NewRouter()
}
func (s *APIServer) handleAccount(w http.ResponseWriter, r *http.Request) error {
return nil
}
func (s *APIServer) handleGetAccount(w http.ResponseWriter, r *http.Request) error {
return nil
}
func (s *APIServer) handleCreateAccount(w http.ResponseWriter, r *http.Request) error {
return nil
}
func (s *APIServer) handleDeleteAccount(w http.ResponseWriter, r *http.Request) error {
return nil
}
func (s *APIServer) handleTransferAccount(w http.ResponseWriter, r *http.Request) error {
return nil
}