form3

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClient

func NewHttpClient(config *ClientConfig) *http.Client

Types

type AddHeaderTransport

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

func (*AddHeaderTransport) RoundTrip

func (adt *AddHeaderTransport) RoundTrip(req *http.Request) (*http.Response, error)

type ClientConfig

type ClientConfig struct {
	ClientId     string
	ClientSecret string
	HostUrl      *url.URL
	InitialToken string

	UnderlyingTransport http.RoundTripper
	// contains filtered or unexported fields
}

func NewClientConfig

func NewClientConfig(clientId, clientSecret string, hostUrl *url.URL) *ClientConfig

func (*ClientConfig) WithInitialToken

func (c *ClientConfig) WithInitialToken(token string) *ClientConfig

func (*ClientConfig) WithUnderlyingTransport

func (c *ClientConfig) WithUnderlyingTransport(underlyingTransport http.RoundTripper) *ClientConfig

type Config added in v1.0.0

type Config struct {
	Host           string
	ClientId       string
	ClientSecret   string
	OrganisationId string
	HttpDebug      bool
	// contains filtered or unexported fields
}

func NewConfig added in v1.0.0

func NewConfig(host, clientID, secret, organisationID string) Config

type F3

type F3 struct {
	client.Form3Public
	Defaults *TestDefaults
}

func New

func New() *F3

func NewWithConfig

func NewWithConfig(config Config) *F3

type TestDefaults

type TestDefaults struct {
	OrganisationId *strfmt.UUID
}

func NewTestDefaults

func NewTestDefaults() *TestDefaults

func (*TestDefaults) GetBool

func (*TestDefaults) GetBool(objectName, attributeName string) bool

func (*TestDefaults) GetBoolPtr

func (*TestDefaults) GetBoolPtr(objectName, attributeName string) *bool

func (*TestDefaults) GetInt32

func (*TestDefaults) GetInt32(objectName, attributeName string) int32

func (*TestDefaults) GetInt64

func (*TestDefaults) GetInt64(objectName, attributeName string) int64

func (*TestDefaults) GetInt64Ptr

func (*TestDefaults) GetInt64Ptr(objectName, attributeName string) *int64

func (*TestDefaults) GetStrfmtDate

func (*TestDefaults) GetStrfmtDate(objectName, attributeName string) strfmt.Date

func (*TestDefaults) GetStrfmtDatePtr

func (*TestDefaults) GetStrfmtDatePtr(objectName, attributeName string) *strfmt.Date

func (*TestDefaults) GetStrfmtDateTime

func (*TestDefaults) GetStrfmtDateTime(objectName, attributeName string) strfmt.DateTime

func (*TestDefaults) GetStrfmtDateTimePtr

func (*TestDefaults) GetStrfmtDateTimePtr(objectName, attributeName string) *strfmt.DateTime

func (*TestDefaults) GetStrfmtURI

func (*TestDefaults) GetStrfmtURI(objectName, attributeName string) strfmt.URI

func (*TestDefaults) GetStrfmtURIPtr

func (*TestDefaults) GetStrfmtURIPtr(objectName, attributeName string) *strfmt.URI

func (*TestDefaults) GetStrfmtUUID

func (*TestDefaults) GetStrfmtUUID(objectName, attributeName string) strfmt.UUID

func (*TestDefaults) GetStrfmtUUIDPtr

func (d *TestDefaults) GetStrfmtUUIDPtr(objectName, attributeName string) *strfmt.UUID

func (*TestDefaults) GetString

func (*TestDefaults) GetString(objectName, attributeName string) string

func (*TestDefaults) GetStringArray

func (*TestDefaults) GetStringArray(objectName, attributeName string) []string

func (*TestDefaults) GetStringPtr

func (*TestDefaults) GetStringPtr(objectName, attributeName string) *string

Jump to

Keyboard shortcuts

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