server

package
v0.0.0-...-1718746 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

func NewTestAPIServer

func NewTestAPIServer() *APIServer

NewTestAPIServer creates a Test API Server

don't forget to call Close method

func (*APIServer) Close

func (s *APIServer) Close()

Close closes internal http server

func (*APIServer) GetHost

func (s *APIServer) GetHost() string

GetHost returns the actual address for using without the schema

func (*APIServer) GetURL

func (s *APIServer) GetURL() string

GetURL returns url like http://localhost:randomPortNumber

type CreateCustomerReq

type CreateCustomerReq struct {
	Customer fortnox.Customer `json:"Customer"`
}

type CreateCustomerResp

type CreateCustomerResp struct {
	Customer fortnox.Customer `json:"Customer"`
}

type CreateInvoiceReq

type CreateInvoiceReq struct {
	Invoice fortnox.Invoice `json:"Invoice"`
}

type CreateInvoiceResp

type CreateInvoiceResp struct {
	Invoice fortnox.Invoice `json:"Invoice"`
}

type GetCustomerResp

type GetCustomerResp struct {
	Customer fortnox.Customer `json:"Customer"`
}

type GetInvoiceResp

type GetInvoiceResp struct {
	Invoice fortnox.Invoice `json:"Invoice"`
}

type UpdateCustomerReq

type UpdateCustomerReq struct {
	Customer fortnox.Customer `json:"Customer"`
}

type UpdateCustomerResp

type UpdateCustomerResp struct {
	Customer fortnox.Customer `json:"Customer"`
}

type UpdateInvoiceReq

type UpdateInvoiceReq struct {
	Invoice fortnox.Invoice `json:"Invoice"`
}

type UpdateInvoiceResp

type UpdateInvoiceResp struct {
	Invoice fortnox.Invoice `json:"Invoice"`
}

Jump to

Keyboard shortcuts

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