client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Predator

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

Predator as Predator API client

func New

func New(hostURL string, client xhttp.Client) *Predator

New to construct Predator client

func (*Predator) Audit

func (p *Predator) Audit(profileID string) (*model.AuditResponse, error)

Audit to call Audit API

func (*Predator) GetProfile

func (p *Predator) GetProfile(profileID string) (*model.ProfileResponse, error)

GetProfile to call get profile result API

func (*Predator) Profile

func (p *Predator) Profile(request *model.ProfileRequest) (*model.ProfileResponse, error)

Profile to call start Profile API

func (*Predator) Upload

func (p *Predator) Upload(gitInfo *protocol.GitInfo) (*model.UploadReport, error)

Upload to upload spec

Jump to

Keyboard shortcuts

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