api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitCommit string = "3ffc6ace6671100b8a7deb8d14ba48a892d1d806"
	GitBranch string = "master"
	GitTag    string = "v1.0.0"
	BuildTime string = "Tue Apr 14 14:14:33 CEST 2020"
)
View Source
const (
	ContentTypeTextPlain string = "text/plain"
)
View Source
const JSONBody string = `` /* 604-byte string literal not displayed */
View Source
const (
	RequestHeaderKey contextKey = 1 + iota
)

Variables

View Source
var (
	NullError = errors.New("unexpected null value")
	TypeError = errors.New("unexpected type")
)
View Source
var EmptyString = errors.New("string is empty")

Functions

func CreateHttpContext

func CreateHttpContext(header http.Header) context.Context

func HandlerMiddleware

func HandlerMiddleware() routing.Handler

func IsContextPopluated

func IsContextPopluated(ctx context.Context) error

func JSON

func JSON(r io.Reader, v interface{}, required bool) (err error)

func NewHTTPStatusCodeError

func NewHTTPStatusCodeError(status int) xHTTPError

func RouterPanicMiddleware

func RouterPanicMiddleware() routing.Handler

func RouterPopulateContextMiddleware

func RouterPopulateContextMiddleware() routing.Handler

Types

type ActivateViewsSet200Response

type ActivateViewsSet200Response struct{}

Success

func (*ActivateViewsSet200Response) StatusCode

func (r *ActivateViewsSet200Response) StatusCode() int

type ActivateViewsSet403Response

type ActivateViewsSet403Response struct{}

Not authenticated

func (*ActivateViewsSet403Response) StatusCode

func (r *ActivateViewsSet403Response) StatusCode() int

type ActivateViewsSet404Response

type ActivateViewsSet404Response struct{}

Not found

func (*ActivateViewsSet404Response) StatusCode

func (r *ActivateViewsSet404Response) StatusCode() int

type ActivateViewsSetHandler

type ActivateViewsSetHandler func(ctx context.Context, request *ActivateViewsSetRequest) ActivateViewsSetResponse

Make this viewset the active one for the client.

type ActivateViewsSetRequest

type ActivateViewsSetRequest struct {
	ClientId string
	ViewsId  string
	XAuth    string
}

type ActivateViewsSetResponse

type ActivateViewsSetResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type Address

type Address struct {
	City        string `bson:"city,required" json:"city,required" xml:"city,required"`
	Country     string `bson:"country,required" json:"country,required" xml:"country,required"`
	HouseNumber string `bson:"houseNumber,required" json:"houseNumber,required" xml:"houseNumber,required"`
	PostalCode  string `bson:"postalCode,required" json:"postalCode,required" xml:"postalCode,required"`
	Region      string `bson:"region,required" json:"region,required" xml:"region,required"`
	Street      string `bson:"street,required" json:"street,required" xml:"street,required"`
}

type BadRequestHTTPTransport

type BadRequestHTTPTransport struct {
	http.Transport
	Code string
}

func (*BadRequestHTTPTransport) RoundTrip

func (lt *BadRequestHTTPTransport) RoundTrip(req *http.Request) (resp *http.Response, err error)

type BasicTypes

type BasicTypes struct {
	Boolean bool              `bson:"boolean,required" json:"boolean,required" xml:"boolean,required"`
	Integer int64             `bson:"integer,required" json:"integer,required" xml:"integer,required"`
	Map     map[string]string `bson:"map,required" json:"map,required" xml:"map,required"`
	Number  float64           `bson:"number,required" json:"number,required" xml:"number,required"`
	Slice   []string          `bson:"slice,required" json:"slice,required" xml:"slice,required"`
	String  string            `bson:"string,required" json:"string,required" xml:"string,required"`
}

type Booking

type Booking struct {
	BookingID *string `bson:"bookingID,omitempty" json:"bookingID,omitempty" xml:"bookingID,omitempty"`
}

type Client

type Client struct {
	ActivePresets *string `bson:"activePresets,omitempty" json:"activePresets,omitempty" xml:"activePresets,omitempty"`
	Configuration Object1 `bson:"configuration,omitempty" json:"configuration,omitempty" xml:"configuration,omitempty"`
	Id            string  `bson:"id,required" json:"id,required" xml:"id,required"`
	Name          string  `bson:"name,required" json:"name,required" xml:"name,required"`
}

type Code200Response

type Code200Response struct {
	Body string
}

TBD

func (*Code200Response) StatusCode

func (r *Code200Response) StatusCode() int

type Code400Response

type Code400Response struct{}

status 400

func (*Code400Response) StatusCode

func (r *Code400Response) StatusCode() int

type Code401Response

type Code401Response struct{}

Unauthorized Session code

func (*Code401Response) StatusCode

func (r *Code401Response) StatusCode() int

type Code404Response

type Code404Response struct{}

Resource Not Found

func (*Code404Response) StatusCode

func (r *Code404Response) StatusCode() int

type Code500Response

type Code500Response struct{}

Malfunction (internal requirements not fulfilled)

func (*Code500Response) StatusCode

func (r *Code500Response) StatusCode() int

type CodeHandler

type CodeHandler func(ctx context.Context, request *CodeRequest) CodeResponse

type CodeRequest

type CodeRequest struct {
	Session      string
	State        []int64
	ResponseMode *string
	Code         string
}

type CodeResponse

type CodeResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func Code

func Code(ctx context.Context, request *CodeRequest) CodeResponse

type ComponentTypes

type ComponentTypes string

ID of the request in UUIDv4 format A list of component types separated by a comma case insensitive. If nothing is defined all component types are returned.

const (
	ComponentTypesWHEELS           ComponentTypes = "WHEELS"
	ComponentTypesPAINTS           ComponentTypes = "PAINTS"
	ComponentTypesUPHOLSTERIES     ComponentTypes = "UPHOLSTERIES"
	ComponentTypesTRIMS            ComponentTypes = "TRIMS"
	ComponentTypesPACKAGES         ComponentTypes = "PACKAGES"
	ComponentTypesLINES            ComponentTypes = "LINES"
	ComponentTypesSPECIALEDITION   ComponentTypes = "SPECIAL_EDITION"
	ComponentTypesSPECIALEQUIPMENT ComponentTypes = "SPECIAL_EQUIPMENT"
)

type CreateCustomerSession201Response

type CreateCustomerSession201Response struct {
	Body Session
}

Session successful created

func (*CreateCustomerSession201Response) StatusCode

func (r *CreateCustomerSession201Response) StatusCode() int

type CreateCustomerSession401Response

type CreateCustomerSession401Response struct{}

Invalid OpenID authentication token

func (*CreateCustomerSession401Response) StatusCode

func (r *CreateCustomerSession401Response) StatusCode() int

type CreateCustomerSession403Response

type CreateCustomerSession403Response struct{}

Create session with authentication token is forbidden (e.g. Token already used)

func (*CreateCustomerSession403Response) StatusCode

func (r *CreateCustomerSession403Response) StatusCode() int

type CreateCustomerSession422Response

type CreateCustomerSession422Response struct {
	Body ValidationErrors
}

Invalid request data

func (*CreateCustomerSession422Response) StatusCode

func (r *CreateCustomerSession422Response) StatusCode() int

type CreateCustomerSession500Response

type CreateCustomerSession500Response struct{}

Internal server error (e.g. unexpected condition occurred)

func (*CreateCustomerSession500Response) StatusCode

func (r *CreateCustomerSession500Response) StatusCode() int

type CreateCustomerSessionHandler

type CreateCustomerSessionHandler func(ctx context.Context, request *CreateCustomerSessionRequest) CreateCustomerSessionResponse

Creates a customer session for a given OpenID authentication token.

type CreateCustomerSessionRequest

type CreateCustomerSessionRequest struct {
	XRequestID *string
	Code       string  `validate:"max=255"`
	Locale     *string `validate:"omitempty,regex7,max=255"`
}

type CreateCustomerSessionResponse

type CreateCustomerSessionResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type CreateOrUpdateClient200Response

type CreateOrUpdateClient200Response struct{}

Updated

func (*CreateOrUpdateClient200Response) StatusCode

func (r *CreateOrUpdateClient200Response) StatusCode() int

type CreateOrUpdateClient201Response

type CreateOrUpdateClient201Response struct{}

Created

func (*CreateOrUpdateClient201Response) StatusCode

func (r *CreateOrUpdateClient201Response) StatusCode() int

type CreateOrUpdateClient400Response

type CreateOrUpdateClient400Response struct{}

Malformed request body

func (*CreateOrUpdateClient400Response) StatusCode

func (r *CreateOrUpdateClient400Response) StatusCode() int

type CreateOrUpdateClient403Response

type CreateOrUpdateClient403Response struct{}

Not authenticated

func (*CreateOrUpdateClient403Response) StatusCode

func (r *CreateOrUpdateClient403Response) StatusCode() int

type CreateOrUpdateClient405Response

type CreateOrUpdateClient405Response struct{}

Not allowed

func (*CreateOrUpdateClient405Response) StatusCode

func (r *CreateOrUpdateClient405Response) StatusCode() int

type CreateOrUpdateClientRequest

type CreateOrUpdateClientRequest struct {
	ClientId string
	XAuth    string
	Body     Client
}

type CreateOrUpdateClientResponse

type CreateOrUpdateClientResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type CreateOrUpdateUser200Response

type CreateOrUpdateUser200Response struct{}

Updated

func (*CreateOrUpdateUser200Response) StatusCode

func (r *CreateOrUpdateUser200Response) StatusCode() int

type CreateOrUpdateUser201Response

type CreateOrUpdateUser201Response struct{}

Created

func (*CreateOrUpdateUser201Response) StatusCode

func (r *CreateOrUpdateUser201Response) StatusCode() int

type CreateOrUpdateUser400Response

type CreateOrUpdateUser400Response struct{}

Malformed request body

func (*CreateOrUpdateUser400Response) StatusCode

func (r *CreateOrUpdateUser400Response) StatusCode() int

type CreateOrUpdateUser403Response

type CreateOrUpdateUser403Response struct{}

Not authenticated

func (*CreateOrUpdateUser403Response) StatusCode

func (r *CreateOrUpdateUser403Response) StatusCode() int

type CreateOrUpdateUser405Response

type CreateOrUpdateUser405Response struct{}

Not allowed

func (*CreateOrUpdateUser405Response) StatusCode

func (r *CreateOrUpdateUser405Response) StatusCode() int

type CreateOrUpdateUserHandler

type CreateOrUpdateUserHandler func(ctx context.Context, request *CreateOrUpdateUserRequest) CreateOrUpdateUserResponse

type CreateOrUpdateUserRequest

type CreateOrUpdateUserRequest struct {
	UserId  string
	AllKeys *bool
	XAuth   string
	Body    User
}

type CreateOrUpdateUserResponse

type CreateOrUpdateUserResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type CreateOrUpdateViewsSet200Response

type CreateOrUpdateViewsSet200Response struct{}

Updated

func (*CreateOrUpdateViewsSet200Response) StatusCode

func (r *CreateOrUpdateViewsSet200Response) StatusCode() int

type CreateOrUpdateViewsSet201Response

type CreateOrUpdateViewsSet201Response struct{}

Created

func (*CreateOrUpdateViewsSet201Response) StatusCode

func (r *CreateOrUpdateViewsSet201Response) StatusCode() int

type CreateOrUpdateViewsSet400Response

type CreateOrUpdateViewsSet400Response struct{}

Malformed request body

func (*CreateOrUpdateViewsSet400Response) StatusCode

func (r *CreateOrUpdateViewsSet400Response) StatusCode() int

type CreateOrUpdateViewsSet403Response

type CreateOrUpdateViewsSet403Response struct{}

Not authenticated

func (*CreateOrUpdateViewsSet403Response) StatusCode

func (r *CreateOrUpdateViewsSet403Response) StatusCode() int

type CreateOrUpdateViewsSet405Response

type CreateOrUpdateViewsSet405Response struct{}

Not allowed

func (*CreateOrUpdateViewsSet405Response) StatusCode

func (r *CreateOrUpdateViewsSet405Response) StatusCode() int

type CreateOrUpdateViewsSetRequest

type CreateOrUpdateViewsSetRequest struct {
	ClientId string
	ViewsId  string
	XAuth    string
	Body     ViewsSet
}

type CreateOrUpdateViewsSetResponse

type CreateOrUpdateViewsSetResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type CreateSession200Response

type CreateSession200Response struct {
	XAuth string
}

Authentication successful

func (*CreateSession200Response) StatusCode

func (r *CreateSession200Response) StatusCode() int

type CreateSession400Response

type CreateSession400Response struct {
	Body ValidationErrors
}

Malformed request body

func (*CreateSession400Response) StatusCode

func (r *CreateSession400Response) StatusCode() int

type CreateSession401Response

type CreateSession401Response struct{}

Authentication not successful

func (*CreateSession401Response) StatusCode

func (r *CreateSession401Response) StatusCode() int

type CreateSessionHandler

type CreateSessionHandler func(ctx context.Context, request *CreateSessionRequest) CreateSessionResponse

type CreateSessionRequest

type CreateSessionRequest struct {
	Body Object2
}

type CreateSessionResponse

type CreateSessionResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type DeleteClient200Response

type DeleteClient200Response struct{}

Success

func (*DeleteClient200Response) StatusCode

func (r *DeleteClient200Response) StatusCode() int

type DeleteClient403Response

type DeleteClient403Response struct{}

Not authenticated

func (*DeleteClient403Response) StatusCode

func (r *DeleteClient403Response) StatusCode() int

type DeleteClient404Response

type DeleteClient404Response struct{}

Not found

func (*DeleteClient404Response) StatusCode

func (r *DeleteClient404Response) StatusCode() int

type DeleteClientHandler

type DeleteClientHandler func(ctx context.Context, request *DeleteClientRequest) DeleteClientResponse

type DeleteClientRequest

type DeleteClientRequest struct {
	ClientId string
	XAuth    string
}

type DeleteClientResponse

type DeleteClientResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type DeleteCustomerSession204Response

type DeleteCustomerSession204Response struct{}

Session successful deleted

func (*DeleteCustomerSession204Response) StatusCode

func (r *DeleteCustomerSession204Response) StatusCode() int

type DeleteCustomerSession401Response

type DeleteCustomerSession401Response struct{}

Invalid session token

func (*DeleteCustomerSession401Response) StatusCode

func (r *DeleteCustomerSession401Response) StatusCode() int

type DeleteCustomerSession500Response

type DeleteCustomerSession500Response struct{}

Internal server error (e.g. unexpected condition occurred)

func (*DeleteCustomerSession500Response) StatusCode

func (r *DeleteCustomerSession500Response) StatusCode() int

type DeleteCustomerSessionHandler

type DeleteCustomerSessionHandler func(ctx context.Context, request *DeleteCustomerSessionRequest) DeleteCustomerSessionResponse

Deletes the user session matching the *X-Auth* header.

type DeleteCustomerSessionRequest

type DeleteCustomerSessionRequest struct {
	XRequestID *string
	XSessionID string
}

type DeleteCustomerSessionResponse

type DeleteCustomerSessionResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type DeleteUser200Response

type DeleteUser200Response struct{}

Success

func (*DeleteUser200Response) StatusCode

func (r *DeleteUser200Response) StatusCode() int

type DeleteUser403Response

type DeleteUser403Response struct{}

Not authenticated

func (*DeleteUser403Response) StatusCode

func (r *DeleteUser403Response) StatusCode() int

type DeleteUser404Response

type DeleteUser404Response struct{}

Not found

func (*DeleteUser404Response) StatusCode

func (r *DeleteUser404Response) StatusCode() int

type DeleteUserHandler

type DeleteUserHandler func(ctx context.Context, request *DeleteUserRequest) DeleteUserResponse

type DeleteUserRequest

type DeleteUserRequest struct {
	UserId  string
	AllKeys *bool
	XAuth   string
}

type DeleteUserResponse

type DeleteUserResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type DeleteViewsSet200Response

type DeleteViewsSet200Response struct{}

Success

func (*DeleteViewsSet200Response) StatusCode

func (r *DeleteViewsSet200Response) StatusCode() int

type DeleteViewsSet403Response

type DeleteViewsSet403Response struct{}

Not authenticated

func (*DeleteViewsSet403Response) StatusCode

func (r *DeleteViewsSet403Response) StatusCode() int

type DeleteViewsSet404Response

type DeleteViewsSet404Response struct{}

Not found

func (*DeleteViewsSet404Response) StatusCode

func (r *DeleteViewsSet404Response) StatusCode() int

type DeleteViewsSetHandler

type DeleteViewsSetHandler func(ctx context.Context, request *DeleteViewsSetRequest) DeleteViewsSetResponse

type DeleteViewsSetRequest

type DeleteViewsSetRequest struct {
	ClientId string
	ViewsId  string
	XAuth    string
}

type DeleteViewsSetResponse

type DeleteViewsSetResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type DestroySession200Response

type DestroySession200Response struct{}

Session destroyed

func (*DestroySession200Response) StatusCode

func (r *DestroySession200Response) StatusCode() int

type DestroySession404Response

type DestroySession404Response struct{}

Session not found

func (*DestroySession404Response) StatusCode

func (r *DestroySession404Response) StatusCode() int

type DestroySessionHandler

type DestroySessionHandler func(ctx context.Context, request *DestroySessionRequest) DestroySessionResponse

type DestroySessionRequest

type DestroySessionRequest struct {
	XAuth string
}

type DestroySessionResponse

type DestroySessionResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type DownloadFile200Response

type DownloadFile200Response struct {
	Body        io.ReadCloser
	ContentType string
}

file to download

func (*DownloadFile200Response) StatusCode

func (r *DownloadFile200Response) StatusCode() int

type DownloadFileHandler

type DownloadFileHandler func(ctx context.Context, request *DownloadFileRequest) DownloadFileResponse

Retrieve a file

type DownloadFileRequest

type DownloadFileRequest struct {
	File string
}

type DownloadFileResponse

type DownloadFileResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func DownloadFile

func DownloadFile(ctx context.Context, request *DownloadFileRequest) DownloadFileResponse

type DownloadImage200Response

type DownloadImage200Response struct {
	Body        io.ReadCloser
	ContentType string
}

image to download

func (*DownloadImage200Response) StatusCode

func (r *DownloadImage200Response) StatusCode() int

type DownloadImage500Response

type DownloadImage500Response struct{}

Malfunction (internal requirements not fulfilled)

func (*DownloadImage500Response) StatusCode

func (r *DownloadImage500Response) StatusCode() int

type DownloadImageHandler

type DownloadImageHandler func(ctx context.Context, request *DownloadImageRequest) DownloadImageResponse

Retrieve a image

type DownloadImageRequest

type DownloadImageRequest struct {
	Image string
}

type DownloadImageResponse

type DownloadImageResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type DownloadNestedFile200Response

type DownloadNestedFile200Response struct {
	Body NestedFileStructure
}

Nested file structure

func (*DownloadNestedFile200Response) StatusCode

func (r *DownloadNestedFile200Response) StatusCode() int

type DownloadNestedFileHandler

type DownloadNestedFileHandler func(ctx context.Context, request *DownloadNestedFileRequest) DownloadNestedFileResponse

Downloads a file that is a property within a nested structure in the response body

type DownloadNestedFileRequest

type DownloadNestedFileRequest struct{}

type DownloadNestedFileResponse

type DownloadNestedFileResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type DriveConcept

type DriveConcept string

The kind of drive concept of a vehicle. Where UNDEFINED is used as the default and/or error case.

const (
	DriveConceptCOMBUSTOR DriveConcept = "COMBUSTOR"
	DriveConceptHYBRID    DriveConcept = "HYBRID"
	DriveConceptELECTRIC  DriveConcept = "ELECTRIC"
	DriveConceptFUELCELL  DriveConcept = "FUELCELL"
	DriveConceptUNDEFINED DriveConcept = "UNDEFINED"
)

type EmptySlice

type EmptySlice struct {
	EmptySlice []Price `bson:"EmptySlice,omitempty" json:"EmptySlice,omitempty" validate:"omitempty,gt=0,dive" xml:"EmptySlice,omitempty"`
}

type ErrorHandler

type ErrorHandler func(v ...interface{})

type GenericFileDownload200Response

type GenericFileDownload200Response struct {
	Body        io.ReadCloser
	ContentType string
	Pragma      string
}

file to download

func (*GenericFileDownload200Response) StatusCode

func (r *GenericFileDownload200Response) StatusCode() int

type GenericFileDownload500Response

type GenericFileDownload500Response struct{}

Malfunction (internal requirements not fulfilled)

func (*GenericFileDownload500Response) StatusCode

func (r *GenericFileDownload500Response) StatusCode() int

type GenericFileDownloadHandler

type GenericFileDownloadHandler func(ctx context.Context, request *GenericFileDownloadRequest) GenericFileDownloadResponse

Retrieve a file

type GenericFileDownloadRequest

type GenericFileDownloadRequest struct {
	Ext string
}

type GenericFileDownloadResponse

type GenericFileDownloadResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type GetBooking200Response

type GetBooking200Response struct {
	Body string
}

status 200

func (*GetBooking200Response) StatusCode

func (r *GetBooking200Response) StatusCode() int

type GetBooking400Response

type GetBooking400Response struct{}

status 400

func (*GetBooking400Response) StatusCode

func (r *GetBooking400Response) StatusCode() int

type GetBooking401Response

type GetBooking401Response struct{}

Unauthorized Session Token

func (*GetBooking401Response) StatusCode

func (r *GetBooking401Response) StatusCode() int

type GetBooking404Response

type GetBooking404Response struct{}

Resource Not Found

func (*GetBooking404Response) StatusCode

func (r *GetBooking404Response) StatusCode() int

type GetBooking500Response

type GetBooking500Response struct{}

Malfunction (internal requirements not fulfilled)

func (*GetBooking500Response) StatusCode

func (r *GetBooking500Response) StatusCode() int

type GetBookingHandler

type GetBookingHandler func(ctx context.Context, request *GetBookingRequest) GetBookingResponse

Get booking of session owner

type GetBookingRequest

type GetBookingRequest struct {
	XSessionID string
}

type GetBookingResponse

type GetBookingResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetBooking

func GetBooking(ctx context.Context, request *GetBookingRequest) GetBookingResponse

type GetBookings200Response

type GetBookings200Response struct {
	Body []Booking `validate:"dive"`
}

Success List Booking History

func (*GetBookings200Response) StatusCode

func (r *GetBookings200Response) StatusCode() int

type GetBookings400Response

type GetBookings400Response struct{}

status 400

func (*GetBookings400Response) StatusCode

func (r *GetBookings400Response) StatusCode() int

type GetBookings401Response

type GetBookings401Response struct{}

Unauthorized Session Token

func (*GetBookings401Response) StatusCode

func (r *GetBookings401Response) StatusCode() int

type GetBookings404Response

type GetBookings404Response struct{}

Resource Not Found

func (*GetBookings404Response) StatusCode

func (r *GetBookings404Response) StatusCode() int

type GetBookings500Response

type GetBookings500Response struct{}

Malfunction (internal requirements not fulfilled)

func (*GetBookings500Response) StatusCode

func (r *GetBookings500Response) StatusCode() int

type GetBookingsHandler

type GetBookingsHandler func(ctx context.Context, request *GetBookingsRequest) GetBookingsResponse

Get bookings of session owner

type GetBookingsRequest

type GetBookingsRequest struct {
	Ids        []int64
	Date       *string
	XSessionID string
}

type GetBookingsResponse

type GetBookingsResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetBookings

func GetBookings(ctx context.Context, request *GetBookingsRequest) GetBookingsResponse

type GetClasses200Response

type GetClasses200Response struct {
	Body string
}

Successful response

func (*GetClasses200Response) StatusCode

func (r *GetClasses200Response) StatusCode() int

type GetClasses400Response

type GetClasses400Response struct {
	Body string
}

Successful response

func (*GetClasses400Response) StatusCode

func (r *GetClasses400Response) StatusCode() int

type GetClassesHandler

type GetClassesHandler func(ctx context.Context, request *GetClassesRequest) GetClassesResponse

type GetClassesRequest

type GetClassesRequest struct {
	ProductGroup   ProductGroup
	ComponentTypes []ComponentTypes
}

type GetClassesResponse

type GetClassesResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetClasses

func GetClasses(ctx context.Context, request *GetClassesRequest) GetClassesResponse

type GetClient200Response

type GetClient200Response struct {
	Body Client
}

Success

func (*GetClient200Response) StatusCode

func (r *GetClient200Response) StatusCode() int

type GetClient403Response

type GetClient403Response struct{}

Not authenticated

func (*GetClient403Response) StatusCode

func (r *GetClient403Response) StatusCode() int

type GetClient404Response

type GetClient404Response struct{}

Not found

func (*GetClient404Response) StatusCode

func (r *GetClient404Response) StatusCode() int

type GetClientHandler

type GetClientHandler func(ctx context.Context, request *GetClientRequest) GetClientResponse

type GetClientRequest

type GetClientRequest struct {
	ClientId string
	XAuth    string
}

type GetClientResponse

type GetClientResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetClient

func GetClient(ctx context.Context, request *GetClientRequest) GetClientResponse

type GetClients200Response

type GetClients200Response struct {
	Body []Client `validate:"dive"`
}

Status 200

func (*GetClients200Response) StatusCode

func (r *GetClients200Response) StatusCode() int

type GetClients204Response

type GetClients204Response struct{}

Status 201

func (*GetClients204Response) StatusCode

func (r *GetClients204Response) StatusCode() int

type GetClients403Response

type GetClients403Response struct{}

Not authenticated

func (*GetClients403Response) StatusCode

func (r *GetClients403Response) StatusCode() int

type GetClientsHandler

type GetClientsHandler func(ctx context.Context, request *GetClientsRequest) GetClientsResponse

type GetClientsRequest

type GetClientsRequest struct {
	XAuth string
}

type GetClientsResponse

type GetClientsResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type GetPermissions200Response

type GetPermissions200Response struct {
	Body []string
}

Status 200

func (*GetPermissions200Response) StatusCode

func (r *GetPermissions200Response) StatusCode() int

type GetPermissions403Response

type GetPermissions403Response struct{}

Not authenticated

func (*GetPermissions403Response) StatusCode

func (r *GetPermissions403Response) StatusCode() int

type GetPermissionsHandler

type GetPermissionsHandler func(ctx context.Context, request *GetPermissionsRequest) GetPermissionsResponse

Get the list of permissions a user can grant to other users.

type GetPermissionsRequest

type GetPermissionsRequest struct {
	XAuth string
}

type GetPermissionsResponse

type GetPermissionsResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type GetRental200Response

type GetRental200Response struct{}

status 200

func (*GetRental200Response) StatusCode

func (r *GetRental200Response) StatusCode() int

type GetRental400Response

type GetRental400Response struct {
	Body ValidationErrors
}

status 400

func (*GetRental400Response) StatusCode

func (r *GetRental400Response) StatusCode() int

type GetRentalHandler

type GetRentalHandler func(ctx context.Context, request *GetRentalRequest) GetRentalResponse

get rental

type GetRentalRequest

type GetRentalRequest struct {
	Body Rental
}

type GetRentalResponse

type GetRentalResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetRental

func GetRental(ctx context.Context, request *GetRentalRequest) GetRentalResponse

type GetShoes200Response

type GetShoes200Response struct {
	Body Shoes
}

Successful

func (*GetShoes200Response) StatusCode

func (r *GetShoes200Response) StatusCode() int

type GetShoesHandler

type GetShoesHandler func(ctx context.Context, request *GetShoesRequest) GetShoesResponse

type GetShoesRequest

type GetShoesRequest struct{}

type GetShoesResponse

type GetShoesResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetShoes

func GetShoes(ctx context.Context, req *GetShoesRequest) GetShoesResponse

type GetUser200Response

type GetUser200Response struct {
	Body User
}

Success

func (*GetUser200Response) StatusCode

func (r *GetUser200Response) StatusCode() int

type GetUser403Response

type GetUser403Response struct{}

Not authenticated

func (*GetUser403Response) StatusCode

func (r *GetUser403Response) StatusCode() int

type GetUser404Response

type GetUser404Response struct{}

Not found

func (*GetUser404Response) StatusCode

func (r *GetUser404Response) StatusCode() int

type GetUserHandler

type GetUserHandler func(ctx context.Context, request *GetUserRequest) GetUserResponse

type GetUserInfo200Response

type GetUserInfo200Response struct {
	Body User
}

Status 200

func (*GetUserInfo200Response) StatusCode

func (r *GetUserInfo200Response) StatusCode() int

type GetUserInfo400Response

type GetUserInfo400Response struct {
	Body ValidationErrors
}

Malformed request body

func (*GetUserInfo400Response) StatusCode

func (r *GetUserInfo400Response) StatusCode() int

type GetUserInfo403Response

type GetUserInfo403Response struct{}

Not authenticatedq

func (*GetUserInfo403Response) StatusCode

func (r *GetUserInfo403Response) StatusCode() int

type GetUserInfoHandler

type GetUserInfoHandler func(ctx context.Context, request *GetUserInfoRequest) GetUserInfoResponse

type GetUserInfoRequest

type GetUserInfoRequest struct {
	XAuth string `validate:"max=255"`
	SubID *int64 `validate:"omitempty,max=255"`
}

type GetUserInfoResponse

type GetUserInfoResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetUserInfo

func GetUserInfo(ctx context.Context, request *GetUserInfoRequest) GetUserInfoResponse

type GetUserRequest

type GetUserRequest struct {
	UserId  string
	AllKeys *bool
	XAuth   string
}

type GetUserResponse

type GetUserResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type GetUsers200Response

type GetUsers200Response struct {
	Body []User `validate:"dive"`
}

Success

func (*GetUsers200Response) StatusCode

func (r *GetUsers200Response) StatusCode() int

type GetUsers403Response

type GetUsers403Response struct{}

Not authenticated

func (*GetUsers403Response) StatusCode

func (r *GetUsers403Response) StatusCode() int

type GetUsersHandler

type GetUsersHandler func(ctx context.Context, request *GetUsersRequest) GetUsersResponse

type GetUsersRequest

type GetUsersRequest struct {
	XAuth string
}

type GetUsersResponse

type GetUsersResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetUsers

func GetUsers(ctx context.Context, request *GetUsersRequest) GetUsersResponse

type GetViewsSet200Response

type GetViewsSet200Response struct {
	Body ViewsSet
}

Success

func (*GetViewsSet200Response) StatusCode

func (r *GetViewsSet200Response) StatusCode() int

type GetViewsSet403Response

type GetViewsSet403Response struct{}

Not authenticated

func (*GetViewsSet403Response) StatusCode

func (r *GetViewsSet403Response) StatusCode() int

type GetViewsSet404Response

type GetViewsSet404Response struct{}

Not found

func (*GetViewsSet404Response) StatusCode

func (r *GetViewsSet404Response) StatusCode() int

type GetViewsSetHandler

type GetViewsSetHandler func(ctx context.Context, request *GetViewsSetRequest) GetViewsSetResponse

type GetViewsSetRequest

type GetViewsSetRequest struct {
	ClientId string
	ViewsId  string
	Page     string
	XAuth    string
}

type GetViewsSetResponse

type GetViewsSetResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type GetViewsSets200Response

type GetViewsSets200Response struct {
	Body []ViewsSet `validate:"dive"`
}

Success

func (*GetViewsSets200Response) StatusCode

func (r *GetViewsSets200Response) StatusCode() int

type GetViewsSets403Response

type GetViewsSets403Response struct{}

Not authenticated

func (*GetViewsSets403Response) StatusCode

func (r *GetViewsSets403Response) StatusCode() int

type GetViewsSetsHandler

type GetViewsSetsHandler func(ctx context.Context, request *GetViewsSetsRequest) GetViewsSetsResponse

type GetViewsSetsRequest

type GetViewsSetsRequest struct {
	ClientId string
	XAuth    string
}

type GetViewsSetsResponse

type GetViewsSetsResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type HooksClient

type HooksClient struct {
	OnUnknownResponseCode func(response *http.Response, request *http.Request) string
}

func DevHook

func DevHook() HooksClient

type HttpContext

type HttpContext interface {
	GetHTTPRequestHeaders() (http.Header, bool)
}

type HttpJsonError

type HttpJsonError struct {
	Message interface{}
	// contains filtered or unexported fields
}

func (*HttpJsonError) Error

func (e *HttpJsonError) Error() string

func (*HttpJsonError) StatusCode

func (e *HttpJsonError) StatusCode() int
type Link struct {
	Href string `bson:"href,required" json:"href,required" xml:"href,required"`
}
type Links struct {
	Self Link `bson:"self,required" json:"self,required" xml:"self,required"`
}

type ListElements200Response

type ListElements200Response struct {
	Body        string
	XTotalCount int64
}

Status 200

func (*ListElements200Response) StatusCode

func (r *ListElements200Response) StatusCode() int

type ListElements500Response

type ListElements500Response struct{}

Status 500

func (*ListElements500Response) StatusCode

func (r *ListElements500Response) StatusCode() int

type ListElementsHandler

type ListElementsHandler func(ctx context.Context, request *ListElementsRequest) ListElementsResponse

type ListElementsRequest

type ListElementsRequest struct {
	Page    *int64
	PerPage *int64
}

type ListElementsResponse

type ListElementsResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func ListElement

func ListElement(ctx context.Context, request *ListElementsRequest) ListElementsResponse

type ListModels200Response

type ListModels200Response struct {
	Body []Model `validate:"dive"`
}

Ok

func (*ListModels200Response) StatusCode

func (r *ListModels200Response) StatusCode() int

type ListModelsHandler

type ListModelsHandler func(ctx context.Context, request *ListModelsRequest) ListModelsResponse

type ListModelsRequest

type ListModelsRequest struct {
	BrandId      string
	DriveConcept *DriveConcept
	LanguageId   *string
	ClassId      *string
	LineId       *string
	Ids          []int64
}

type ListModelsResponse

type ListModelsResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func GetBrands

func GetBrands(ctx context.Context, request *ListModelsRequest) ListModelsResponse

type Middleware

type Middleware struct {
	Handler routing.Handler
	After   bool
}

type MimeFile

type MimeFile struct {
	Header  *multipart.FileHeader
	Content io.ReadCloser
}

type Model

type Model struct {
	DriveConcept         *DriveConcept        `bson:"driveConcept,omitempty" json:"driveConcept,omitempty" xml:"driveConcept,omitempty"`
	Price                Price                `bson:"price,required" json:"price,required" xml:"price,required"`
	TechnicalInformation TechnicalInformation `bson:"technicalInformation,required" json:"technicalInformation,required" xml:"technicalInformation,required"`
}

type NestedFileStructure

type NestedFileStructure struct {
	Data *string `bson:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"`
}

type NewRequest

type NewRequest func(string, io.Reader) (*http.Request, error)

type Object1

type Object1 struct {
	BbdCEBaseUrl            *string  `bson:"bbdCEBaseUrl,omitempty" json:"bbdCEBaseUrl,omitempty" xml:"bbdCEBaseUrl,omitempty"`
	BbdCallerIdentifier     *string  `bson:"bbdCallerIdentifier,omitempty" json:"bbdCallerIdentifier,omitempty" xml:"bbdCallerIdentifier,omitempty"`
	BbdDataSupply           *string  `bson:"bbdDataSupply,omitempty" json:"bbdDataSupply,omitempty" xml:"bbdDataSupply,omitempty"`
	BbdImageBackground      *string  `bson:"bbdImageBackground,omitempty" json:"bbdImageBackground,omitempty" xml:"bbdImageBackground,omitempty"`
	BbdImagePerspective     *string  `bson:"bbdImagePerspective,omitempty" json:"bbdImagePerspective,omitempty" xml:"bbdImagePerspective,omitempty"`
	BbdImageType            *string  `bson:"bbdImageType,omitempty" json:"bbdImageType,omitempty" xml:"bbdImageType,omitempty"`
	BbdPassword             *string  `bson:"bbdPassword,omitempty" json:"bbdPassword,omitempty" xml:"bbdPassword,omitempty"`
	BbdProductGroup         *string  `bson:"bbdProductGroup,omitempty" json:"bbdProductGroup,omitempty" xml:"bbdProductGroup,omitempty"`
	BbdSoapMediaProviderUrl *string  `bson:"bbdSoapMediaProviderUrl,omitempty" json:"bbdSoapMediaProviderUrl,omitempty" xml:"bbdSoapMediaProviderUrl,omitempty"`
	BbdUser                 *string  `bson:"bbdUser,omitempty" json:"bbdUser,omitempty" xml:"bbdUser,omitempty"`
	CcoreServiceUrl         *string  `bson:"ccoreServiceUrl,omitempty" json:"ccoreServiceUrl,omitempty" xml:"ccoreServiceUrl,omitempty"`
	CryptKeys               []string `bson:"cryptKeys,omitempty" json:"cryptKeys,omitempty" xml:"cryptKeys,omitempty"`
	HealConfigurations      *bool    `bson:"healConfigurations,omitempty" json:"healConfigurations,omitempty" xml:"healConfigurations,omitempty"`
}

type Object2

type Object2 struct {
	Id       string `bson:"id,required" json:"id,required" validate:"min=1" xml:"id,required"`
	Password string `bson:"password,required" json:"password,required" validate:"min=1" xml:"password,required"`
}

type Opts

type Opts struct {
	Hooks HooksClient
	Ctx   context.Context
}

type PostUpload200Response

type PostUpload200Response struct{}

Status 200

func (*PostUpload200Response) StatusCode

func (r *PostUpload200Response) StatusCode() int

type PostUpload500Response

type PostUpload500Response struct{}

Status 500

func (*PostUpload500Response) StatusCode

func (r *PostUpload500Response) StatusCode() int

type PostUploadHandler

type PostUploadHandler func(ctx context.Context, request *PostUploadRequest) PostUploadResponse

type PostUploadRequest

type PostUploadRequest struct {
	FormData PostUploadRequestFormData
}

type PostUploadRequestFormData

type PostUploadRequestFormData struct {
	Upfile *MimeFile
	Note   *string
}

type PostUploadResponse

type PostUploadResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

func PostUpload

func PostUpload(ctx context.Context, request *PostUploadRequest) PostUploadResponse

type Price

type Price struct {
	Currency string  `bson:"currency,required" json:"currency,required" xml:"currency,required"`
	Value    float64 `bson:"value,required" json:"value,required" xml:"value,required"`
}

type ProductGroup

type ProductGroup string

The productGroup of a vehicle case insensitive.

const (
	ProductGroupPKW           ProductGroup = "PKW"
	ProductGroupGELAENDEWAGEN ProductGroup = "GELAENDEWAGEN"
	ProductGroupVAN           ProductGroup = "VAN"
	ProductGroupSPRINTER      ProductGroup = "SPRINTER"
	ProductGroupCITAN         ProductGroup = "CITAN"
	ProductGroupSMART         ProductGroup = "SMART"
)

type PrometheusHandler

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

func NewPrometheusHandler

func NewPrometheusHandler(namespace *string) *PrometheusHandler

func (*PrometheusHandler) HandleRequest

func (h *PrometheusHandler) HandleRequest(path, method string, status int, duration time.Duration)

func (*PrometheusHandler) InitMetric

func (h *PrometheusHandler) InitMetric(path, method string)

type ReadCloserBuffer

type ReadCloserBuffer struct {
	*bytes.Buffer
}

func (*ReadCloserBuffer) Close

func (cb *ReadCloserBuffer) Close() (err error)

type Rental

type Rental struct {
	Class           string  `bson:"class,required" json:"class,required" validate:"min=3,max=20" xml:"class,required"`
	Color           *string `bson:"color,omitempty" json:"color,omitempty" validate:"omitempty,min=3,max=20" xml:"color,omitempty"`
	HomeID          *string `bson:"homeID,omitempty" json:"homeID,omitempty" validate:"omitempty,regex1" xml:"homeID,omitempty"`
	Id              string  `bson:"id,required" json:"id,required" validate:"regex2" xml:"id,required"`
	IdOptional      *string `bson:"idOptional,omitempty" json:"idOptional,omitempty" validate:"omitempty,regex3" xml:"idOptional,omitempty"`
	LockStatus      int32   `bson:"lockStatus,required" json:"lockStatus,required" validate:"min=1,max=100" xml:"lockStatus,required"`
	MaxDoors        int64   `bson:"maxDoors,required" json:"maxDoors,required" validate:"max=5" xml:"maxDoors,required"`
	MinDoors        int64   `bson:"minDoors,required" json:"minDoors,required" validate:"min=5" xml:"minDoors,required"`
	OptionalInt     *int64  `bson:"optionalInt,omitempty" json:"optionalInt,omitempty" xml:"optionalInt,omitempty"`
	State           *int64  `bson:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"`
	StationID       string  `bson:"stationID,required" json:"stationID,required" validate:"regex4" xml:"stationID,required"`
	Status          int64   `bson:"status,required" json:"status,required" validate:"min=46,max=49" xml:"status,required"`
	Valid           *string `bson:"valid,omitempty" json:"valid,omitempty" validate:"omitempty,max=255" xml:"valid,omitempty"`
	Website         string  `bson:"website,required" json:"website,required" validate:"regex5" xml:"website,required"`
	WebsiteOptional *string `` /* 133-byte string literal not displayed */
}

type RouteDescription

type RouteDescription struct {
	Path       string
	Handler    routing.Handler
	Middleware []Middleware
	Method     string
}

type Server

type Server struct {
	ErrorLogger func(v ...interface{})

	SwaggerSpec string
	Router      *routing.Router
	OnStart     func(router *routing.Router)
	// contains filtered or unexported fields
}

func (*Server) Start

func (server *Server) Start(port int, routes []RouteDescription) error

func (*Server) Stop

func (server *Server) Stop() error

type ServerOpts

type ServerOpts struct {
	ErrorHandler ErrorHandler
	Middleware   []Middleware
	OnStart      func(router *routing.Router)
}

type Session

type Session struct {
	Registered bool   `bson:"Registered,required" json:"Registered,required" xml:"Registered,required"`
	Token      string `bson:"Token,required" json:"Token,required" xml:"Token,required"`
}

type Shoe

type Shoe struct {
	Links Links   `bson:"_links,required" json:"_links,required" xml:"_links,required"`
	Color string  `bson:"color,required" json:"color,required" xml:"color,required"`
	Name  string  `bson:"name,required" json:"name,required" xml:"name,required"`
	Size  float64 `bson:"size,required" json:"size,required" xml:"size,required"`
}

type Shoes

type Shoes struct {
	Embedded ShoesEmbedded `bson:"_embedded,required" json:"_embedded,required" xml:"_embedded,required"`
	Links    Links         `bson:"_links,required" json:"_links,required" xml:"_links,required"`
	Id       string        `bson:"id,required" json:"id,required" xml:"id,required"`
}

type ShoesEmbedded

type ShoesEmbedded struct {
	ShopShoes []Shoe `bson:"shop:shoes,required" json:"shop:shoes,required" validate:"dive" xml:"shop:shoes,required"`
}

type ShowVehicleInView200Response

type ShowVehicleInView200Response struct{}

Success

func (*ShowVehicleInView200Response) StatusCode

func (r *ShowVehicleInView200Response) StatusCode() int

type ShowVehicleInView403Response

type ShowVehicleInView403Response struct{}

Not authenticated

func (*ShowVehicleInView403Response) StatusCode

func (r *ShowVehicleInView403Response) StatusCode() int

type ShowVehicleInView404Response

type ShowVehicleInView404Response struct{}

Not found

func (*ShowVehicleInView404Response) StatusCode

func (r *ShowVehicleInView404Response) StatusCode() int

type ShowVehicleInViewHandler

type ShowVehicleInViewHandler func(ctx context.Context, request *ShowVehicleInViewRequest) ShowVehicleInViewResponse

type ShowVehicleInViewRequest

type ShowVehicleInViewRequest struct {
	ClientId   string
	ViewsId    string
	View       string
	Breakpoint string
	Spec       string
	XAuth      string
}

type ShowVehicleInViewResponse

type ShowVehicleInViewResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type TechnicalInformation

type TechnicalInformation struct {
	Transmission string `bson:"transmission,required" json:"transmission,required" xml:"transmission,required"`
}

type User

type User struct {
	Address                []Address         `bson:"Address,omitempty" json:"Address,omitempty" validate:"omitempty,gt=0,dive" xml:"Address,omitempty"`
	Email                  *string           `bson:"email,omitempty" json:"email,omitempty" validate:"omitempty,email,max=255" xml:"email,omitempty"`
	GrantedProtocolMappers map[string]string `bson:"grantedProtocolMappers,omitempty" json:"grantedProtocolMappers,omitempty" xml:"grantedProtocolMappers,omitempty"`
	Id                     string            `bson:"id,required" json:"id,required" xml:"id,required"`
	Password               string            `bson:"password,required" json:"password,required" xml:"password,required"`
	Permissions            []string          `bson:"permissions,omitempty" json:"permissions,omitempty" xml:"permissions,omitempty"`
}

type ValidationError

type ValidationError struct {
	Code    *string `bson:"Code,omitempty" json:"Code,omitempty" xml:"Code,omitempty"`
	Field   *string `bson:"Field,omitempty" json:"Field,omitempty" xml:"Field,omitempty"`
	Message *string `bson:"Message,omitempty" json:"Message,omitempty" xml:"Message,omitempty"`
}

type ValidationErrorObject

type ValidationErrorObject struct {
	Message string `json:"message"`
	Field   string `json:"field"`
	Code    string `json:"code"`
}

type ValidationErrors

type ValidationErrors struct {
	Errors  []ValidationError `bson:"Errors,omitempty" json:"Errors,omitempty" validate:"omitempty,gt=0,dive" xml:"Errors,omitempty"`
	Message *string           `bson:"Message,omitempty" json:"Message,omitempty" xml:"Message,omitempty"`
}

type ValidationErrorsObject

type ValidationErrorsObject struct {
	Message string                  `json:"message"`
	Errors  []ValidationErrorObject `json:"errors"`
}

type Validator

type Validator struct {
	*validator.Validate
}

func NewValidation

func NewValidation() *Validator

func (*Validator) ValidateRequest

func (v *Validator) ValidateRequest(request interface{}) (*ValidationErrorsObject, error)

type VersionInfo

type VersionInfo struct {
	GoVersion string `json:"go_version"`
	GitTag    string `json:"git_tag"`
	GitCommit string `json:"git_commit"`
	GitBranch string `json:"git_branch"`
	BuildTime string `json:"build_time"`
}

func ApikitVersion

func ApikitVersion() *VersionInfo

func (*VersionInfo) PrintTable

func (vi *VersionInfo) PrintTable() error

type ViewsSet

type ViewsSet struct {
	Id    string  `bson:"id,required" json:"id,required" xml:"id,required"`
	Name  *string `bson:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	Views *string `bson:"views,omitempty" json:"views,omitempty" xml:"views,omitempty"`
}

type VisAdminClient

type VisAdminClient interface {
	GetClients(request *GetClientsRequest) (GetClientsResponse, error)
	DeleteClient(request *DeleteClientRequest) (DeleteClientResponse, error)
	GetClient(request *GetClientRequest) (GetClientResponse, error)
	CreateOrUpdateClient(request *CreateOrUpdateClientRequest) (CreateOrUpdateClientResponse, error)
	GetViewsSets(request *GetViewsSetsRequest) (GetViewsSetsResponse, error)
	DeleteViewsSet(request *DeleteViewsSetRequest) (DeleteViewsSetResponse, error)
	GetViewsSet(request *GetViewsSetRequest) (GetViewsSetResponse, error)
	ActivateViewsSet(request *ActivateViewsSetRequest) (ActivateViewsSetResponse, error)
	CreateOrUpdateViewsSet(request *CreateOrUpdateViewsSetRequest) (CreateOrUpdateViewsSetResponse, error)
	ShowVehicleInView(request *ShowVehicleInViewRequest) (ShowVehicleInViewResponse, error)
	GetPermissions(request *GetPermissionsRequest) (GetPermissionsResponse, error)
	DestroySession(request *DestroySessionRequest) (DestroySessionResponse, error)
	GetUserInfo(request *GetUserInfoRequest) (GetUserInfoResponse, error)
	CreateSession(request *CreateSessionRequest) (CreateSessionResponse, error)
	GetUsers(request *GetUsersRequest) (GetUsersResponse, error)
	DeleteUser(request *DeleteUserRequest) (DeleteUserResponse, error)
	GetUser(request *GetUserRequest) (GetUserResponse, error)
	CreateOrUpdateUser(request *CreateOrUpdateUserRequest) (CreateOrUpdateUserResponse, error)
	GetBooking(request *GetBookingRequest) (GetBookingResponse, error)
	GetBookings(request *GetBookingsRequest) (GetBookingsResponse, error)
	ListModels(request *ListModelsRequest) (ListModelsResponse, error)
	GetClasses(request *GetClassesRequest) (GetClassesResponse, error)
	Code(request *CodeRequest) (CodeResponse, error)
	DeleteCustomerSession(request *DeleteCustomerSessionRequest) (DeleteCustomerSessionResponse, error)
	CreateCustomerSession(request *CreateCustomerSessionRequest) (CreateCustomerSessionResponse, error)
	DownloadNestedFile(request *DownloadNestedFileRequest) (DownloadNestedFileResponse, error)
	DownloadImage(request *DownloadImageRequest) (DownloadImageResponse, error)
	ListElements(request *ListElementsRequest) (ListElementsResponse, error)
	DownloadFile(request *DownloadFileRequest) (DownloadFileResponse, error)
	GenericFileDownload(request *GenericFileDownloadRequest) (GenericFileDownloadResponse, error)
	GetRental(request *GetRentalRequest) (GetRentalResponse, error)
	GetShoes(request *GetShoesRequest) (GetShoesResponse, error)
	PostUpload(request *PostUploadRequest) (PostUploadResponse, error)
}

func NewVisAdminClient

func NewVisAdminClient(httpClient *http.Client, baseUrl string, options Opts) VisAdminClient

type VisAdminServer

type VisAdminServer struct {
	*Server
	Validator *Validator
	// contains filtered or unexported fields
}

func NewVisAdminServer

func NewVisAdminServer(options *ServerOpts) *VisAdminServer

func (*VisAdminServer) ActivateViewsSetHandler

func (server *VisAdminServer) ActivateViewsSetHandler(c *routing.Context) error

func (*VisAdminServer) CodeHandler

func (server *VisAdminServer) CodeHandler(c *routing.Context) error

func (*VisAdminServer) CreateCustomerSessionHandler

func (server *VisAdminServer) CreateCustomerSessionHandler(c *routing.Context) error

func (*VisAdminServer) CreateOrUpdateClientHandler

func (server *VisAdminServer) CreateOrUpdateClientHandler(c *routing.Context) error

func (*VisAdminServer) CreateOrUpdateUserHandler

func (server *VisAdminServer) CreateOrUpdateUserHandler(c *routing.Context) error

func (*VisAdminServer) CreateOrUpdateViewsSetHandler

func (server *VisAdminServer) CreateOrUpdateViewsSetHandler(c *routing.Context) error

func (*VisAdminServer) CreateSessionHandler

func (server *VisAdminServer) CreateSessionHandler(c *routing.Context) error

func (*VisAdminServer) DeleteClientHandler

func (server *VisAdminServer) DeleteClientHandler(c *routing.Context) error

func (*VisAdminServer) DeleteCustomerSessionHandler

func (server *VisAdminServer) DeleteCustomerSessionHandler(c *routing.Context) error

func (*VisAdminServer) DeleteUserHandler

func (server *VisAdminServer) DeleteUserHandler(c *routing.Context) error

func (*VisAdminServer) DeleteViewsSetHandler

func (server *VisAdminServer) DeleteViewsSetHandler(c *routing.Context) error

func (*VisAdminServer) DestroySessionHandler

func (server *VisAdminServer) DestroySessionHandler(c *routing.Context) error

func (*VisAdminServer) DownloadFileHandler

func (server *VisAdminServer) DownloadFileHandler(c *routing.Context) error

func (*VisAdminServer) DownloadImageHandler

func (server *VisAdminServer) DownloadImageHandler(c *routing.Context) error

func (*VisAdminServer) DownloadNestedFileHandler

func (server *VisAdminServer) DownloadNestedFileHandler(c *routing.Context) error

func (*VisAdminServer) GenericFileDownloadHandler

func (server *VisAdminServer) GenericFileDownloadHandler(c *routing.Context) error

func (*VisAdminServer) GetBookingHandler

func (server *VisAdminServer) GetBookingHandler(c *routing.Context) error

func (*VisAdminServer) GetBookingsHandler

func (server *VisAdminServer) GetBookingsHandler(c *routing.Context) error

func (*VisAdminServer) GetClassesHandler

func (server *VisAdminServer) GetClassesHandler(c *routing.Context) error

func (*VisAdminServer) GetClientHandler

func (server *VisAdminServer) GetClientHandler(c *routing.Context) error

func (*VisAdminServer) GetClientsHandler

func (server *VisAdminServer) GetClientsHandler(c *routing.Context) error

func (*VisAdminServer) GetPermissionsHandler

func (server *VisAdminServer) GetPermissionsHandler(c *routing.Context) error

func (*VisAdminServer) GetRentalHandler

func (server *VisAdminServer) GetRentalHandler(c *routing.Context) error

func (*VisAdminServer) GetShoesHandler

func (server *VisAdminServer) GetShoesHandler(c *routing.Context) error

func (*VisAdminServer) GetUserHandler

func (server *VisAdminServer) GetUserHandler(c *routing.Context) error

func (*VisAdminServer) GetUserInfoHandler

func (server *VisAdminServer) GetUserInfoHandler(c *routing.Context) error

func (*VisAdminServer) GetUsersHandler

func (server *VisAdminServer) GetUsersHandler(c *routing.Context) error

func (*VisAdminServer) GetViewsSetHandler

func (server *VisAdminServer) GetViewsSetHandler(c *routing.Context) error

func (*VisAdminServer) GetViewsSetsHandler

func (server *VisAdminServer) GetViewsSetsHandler(c *routing.Context) error

func (*VisAdminServer) ListElementsHandler

func (server *VisAdminServer) ListElementsHandler(c *routing.Context) error

func (*VisAdminServer) ListModelsHandler

func (server *VisAdminServer) ListModelsHandler(c *routing.Context) error

func (*VisAdminServer) PostUploadHandler

func (server *VisAdminServer) PostUploadHandler(c *routing.Context) error

func (*VisAdminServer) SetActivateViewsSetHandler

func (server *VisAdminServer) SetActivateViewsSetHandler(handler ActivateViewsSetHandler, middleware ...Middleware)

func (*VisAdminServer) SetCodeHandler

func (server *VisAdminServer) SetCodeHandler(handler CodeHandler, middleware ...Middleware)

func (*VisAdminServer) SetCreateCustomerSessionHandler

func (server *VisAdminServer) SetCreateCustomerSessionHandler(handler CreateCustomerSessionHandler, middleware ...Middleware)

func (*VisAdminServer) SetCreateOrUpdateClientHandler

func (server *VisAdminServer) SetCreateOrUpdateClientHandler(handler CreateOrUpdateClientHandler, middleware ...Middleware)

func (*VisAdminServer) SetCreateOrUpdateUserHandler

func (server *VisAdminServer) SetCreateOrUpdateUserHandler(handler CreateOrUpdateUserHandler, middleware ...Middleware)

func (*VisAdminServer) SetCreateOrUpdateViewsSetHandler

func (server *VisAdminServer) SetCreateOrUpdateViewsSetHandler(handler CreateOrUpdateViewsSetHandler, middleware ...Middleware)

func (*VisAdminServer) SetCreateSessionHandler

func (server *VisAdminServer) SetCreateSessionHandler(handler CreateSessionHandler, middleware ...Middleware)

func (*VisAdminServer) SetDeleteClientHandler

func (server *VisAdminServer) SetDeleteClientHandler(handler DeleteClientHandler, middleware ...Middleware)

func (*VisAdminServer) SetDeleteCustomerSessionHandler

func (server *VisAdminServer) SetDeleteCustomerSessionHandler(handler DeleteCustomerSessionHandler, middleware ...Middleware)

func (*VisAdminServer) SetDeleteUserHandler

func (server *VisAdminServer) SetDeleteUserHandler(handler DeleteUserHandler, middleware ...Middleware)

func (*VisAdminServer) SetDeleteViewsSetHandler

func (server *VisAdminServer) SetDeleteViewsSetHandler(handler DeleteViewsSetHandler, middleware ...Middleware)

func (*VisAdminServer) SetDestroySessionHandler

func (server *VisAdminServer) SetDestroySessionHandler(handler DestroySessionHandler, middleware ...Middleware)

func (*VisAdminServer) SetDownloadFileHandler

func (server *VisAdminServer) SetDownloadFileHandler(handler DownloadFileHandler, middleware ...Middleware)

func (*VisAdminServer) SetDownloadImageHandler

func (server *VisAdminServer) SetDownloadImageHandler(handler DownloadImageHandler, middleware ...Middleware)

func (*VisAdminServer) SetDownloadNestedFileHandler

func (server *VisAdminServer) SetDownloadNestedFileHandler(handler DownloadNestedFileHandler, middleware ...Middleware)

func (*VisAdminServer) SetGenericFileDownloadHandler

func (server *VisAdminServer) SetGenericFileDownloadHandler(handler GenericFileDownloadHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetBookingHandler

func (server *VisAdminServer) SetGetBookingHandler(handler GetBookingHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetBookingsHandler

func (server *VisAdminServer) SetGetBookingsHandler(handler GetBookingsHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetClassesHandler

func (server *VisAdminServer) SetGetClassesHandler(handler GetClassesHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetClientHandler

func (server *VisAdminServer) SetGetClientHandler(handler GetClientHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetClientsHandler

func (server *VisAdminServer) SetGetClientsHandler(handler GetClientsHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetPermissionsHandler

func (server *VisAdminServer) SetGetPermissionsHandler(handler GetPermissionsHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetRentalHandler

func (server *VisAdminServer) SetGetRentalHandler(handler GetRentalHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetShoesHandler

func (server *VisAdminServer) SetGetShoesHandler(handler GetShoesHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetUserHandler

func (server *VisAdminServer) SetGetUserHandler(handler GetUserHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetUserInfoHandler

func (server *VisAdminServer) SetGetUserInfoHandler(handler GetUserInfoHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetUsersHandler

func (server *VisAdminServer) SetGetUsersHandler(handler GetUsersHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetViewsSetHandler

func (server *VisAdminServer) SetGetViewsSetHandler(handler GetViewsSetHandler, middleware ...Middleware)

func (*VisAdminServer) SetGetViewsSetsHandler

func (server *VisAdminServer) SetGetViewsSetsHandler(handler GetViewsSetsHandler, middleware ...Middleware)

func (*VisAdminServer) SetListElementsHandler

func (server *VisAdminServer) SetListElementsHandler(handler ListElementsHandler, middleware ...Middleware)

func (*VisAdminServer) SetListModelsHandler

func (server *VisAdminServer) SetListModelsHandler(handler ListModelsHandler, middleware ...Middleware)

func (*VisAdminServer) SetPostUploadHandler

func (server *VisAdminServer) SetPostUploadHandler(handler PostUploadHandler, middleware ...Middleware)

func (*VisAdminServer) SetShowVehicleInViewHandler

func (server *VisAdminServer) SetShowVehicleInViewHandler(handler ShowVehicleInViewHandler, middleware ...Middleware)

func (*VisAdminServer) ShowVehicleInViewHandler

func (server *VisAdminServer) ShowVehicleInViewHandler(c *routing.Context) error

func (*VisAdminServer) Start

func (server *VisAdminServer) Start(port int) error

Jump to

Keyboard shortcuts

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