api

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GENERIC_PATH = "otrs/nph-genericinterface.pl/Webservice"
View Source
var GETTER = "ticket/get"
View Source
var UPDATE = "ticket/update"

Functions

This section is empty.

Types

type GetterResponse added in v0.0.5

type GetterResponse struct {
	Error   model.Error    `json:"Error"`
	Tickets []model.Ticket `json:"Ticket"`
}

type OTRS added in v0.0.5

type OTRS struct {
	Host               string
	Webservice         string
	InsecureSkipVerify bool
}

func New added in v0.0.5

func New(Host, Webservice string, InsecureSkipVerify bool) *OTRS

func (OTRS) GetTickets added in v0.0.5

func (OTRS OTRS) GetTickets(id string, o url.Values, resp *GetterResponse) error

func (OTRS) Getter added in v0.0.5

func (OTRS OTRS) Getter(id string, o url.Values) (Body io.ReadCloser, err error)

Getter Getter

func (OTRS) Update added in v0.0.5

func (OTRS OTRS) Update(id string, req model.Update, o url.Values) (Body io.ReadCloser, err error)

type Opts added in v0.0.5

type Opts struct {
	DynamicFields bool
	AllArticles   bool
	Attachments   bool
}

Jump to

Keyboard shortcuts

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