aboutsummaryrefslogtreecommitdiffstats
path: root/internal/api/data/ws/ram_handler.go
blob: 072586109fae910250b23e2470c47472ce334e80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Package http websocket handlers
package http

import (
	"fmt"
	"net/http"
)

func RAM(url string) http.Response {
	var res http.Response
	go func() {
		resp, err := http.Get(url)
		if err != nil {
			fmt.Printf("failed to fetch data")
		}
	}()

	return res
}