servers

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IServer

type IServer interface {
	Get(path string, v interface{}) error
	Post(path string, body interface{}) (*http.Response, error)
	Delete(path string) error
}

IServer is the interface of the TestTrack API client

func New

func New() (IServer, error)

New returns a live TestTrack for use in API calls

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the live implementation of the TestTrack API client

func (*Server) Delete

func (s *Server) Delete(path string) error

Delete makes an authenticated DELETE to the TestTrack API

func (*Server) Get

func (s *Server) Get(path string, v interface{}) error

Get makes an authenticated GET to the TestTrack API

func (*Server) Post

func (s *Server) Post(path string, body interface{}) (*http.Response, error)

Post makes an authenticated POST to the TestTrack API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL