Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeObject ¶
type NodeObject struct { Name string `json:"name"` Thing1 string `json:"thing1"` Thing2 string `json:"thing2"` Numbers int `json:"numbers"` Time time.Time `json:"time"` }
NodeObject is a object struct
type Server ¶
Server is the proxy server struct
func NewServer ¶
func NewServer(endpointIP, serviceName, datacenter, backendAddr string, backend regStore.Backend, endpointPort int) (*Server, error)
NewServer initializes a new Server
func (*Server) HandleServeArray ¶
func (e *Server) HandleServeArray(w http.ResponseWriter, r *http.Request)
HandleServeArray serves an array back to the Http Endpoint
func (*Server) HandleServeObject ¶
func (e *Server) HandleServeObject(w http.ResponseWriter, r *http.Request)
HandleServeObject serves an object back to the Http Endpint
func (*Server) HandleTest ¶
func (e *Server) HandleTest(w http.ResponseWriter, r *http.Request)
HandleTest is....well a test
Click to show internal directories.
Click to hide internal directories.