Documentation
¶
Overview ¶
Package testserver implements HTTP server to test datamodifier service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestServer ¶
type TestServer struct {
// contains filtered or unexported fields
}
TestServer represents a third-party WebAPI server for testing datamodifier server.
func NewTestServer ¶
func NewTestServer(employeePath, absencePath, port, token string, u *entity.User, ad *entity.UserAbsenceData) *TestServer
NewTestServer returns TestServer with configured routes.
func (*TestServer) ServeHTTP ¶
func (s *TestServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handles request.
func (*TestServer) StartTestServer ¶
func (s *TestServer) StartTestServer() error
StartTestServer starts listen and handle requests.
Click to show internal directories.
Click to hide internal directories.