op

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const CashOKCode int = 200

CashOKCode is the HTTP code returned for type CashOK

View Source
const DigOKCode int = 200

DigOKCode is the HTTP code returned for type DigOK

View Source
const ExploreAreaOKCode int = 200

ExploreAreaOKCode is the HTTP code returned for type ExploreAreaOK

View Source
const GetBalanceOKCode int = 200

GetBalanceOKCode is the HTTP code returned for type GetBalanceOK

View Source
const HealthCheckOKCode int = 200

HealthCheckOKCode is the HTTP code returned for type HealthCheckOK

View Source
const IssueLicenseOKCode int = 200

IssueLicenseOKCode is the HTTP code returned for type IssueLicenseOK

View Source
const ListLicensesOKCode int = 200

ListLicensesOKCode is the HTTP code returned for type ListLicensesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type Cash

type Cash struct {
	Context *middleware.Context
	Handler CashHandler
}

Cash swagger:route POST /cash cash

Exchange provided treasure for money.

func NewCash

func NewCash(ctx *middleware.Context, handler CashHandler) *Cash

NewCash creates a new http.Handler for the cash operation

func (*Cash) ServeHTTP

func (o *Cash) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CashDefault

type CashDefault struct {

	/*
	  In: Body
	*/
	Payload *model.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CashDefault - 409.1003: treasure is not digged

swagger:response cashDefault

func NewCashDefault

func NewCashDefault(code int) *CashDefault

NewCashDefault creates CashDefault with default headers values

func (*CashDefault) CashResponder

func (o *CashDefault) CashResponder()

func (*CashDefault) SetPayload

func (o *CashDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the cash default response

func (*CashDefault) SetStatusCode

func (o *CashDefault) SetStatusCode(code int)

SetStatusCode sets the status to the cash default response

func (*CashDefault) WithPayload

func (o *CashDefault) WithPayload(payload *model.Error) *CashDefault

WithPayload adds the payload to the cash default response

func (*CashDefault) WithStatusCode

func (o *CashDefault) WithStatusCode(code int) *CashDefault

WithStatusCode adds the status to the cash default response

func (*CashDefault) WriteResponse

func (o *CashDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CashHandler

type CashHandler interface {
	Handle(CashParams) CashResponder
}

CashHandler interface for that can handle valid cash params

type CashHandlerFunc

type CashHandlerFunc func(CashParams) CashResponder

CashHandlerFunc turns a function with the right signature into a cash handler

func (CashHandlerFunc) Handle

func (fn CashHandlerFunc) Handle(params CashParams) CashResponder

Handle executing the request and returning a response

type CashNotImplementedResponder

type CashNotImplementedResponder struct {
	middleware.Responder
}

func (*CashNotImplementedResponder) CashResponder

func (*CashNotImplementedResponder) CashResponder()

type CashOK

type CashOK struct {

	/*
	  In: Body
	*/
	Payload model.Wallet `json:"body,omitempty"`
}

CashOK Payment for treasure.

swagger:response cashOK

func NewCashOK

func NewCashOK() *CashOK

NewCashOK creates CashOK with default headers values

func (*CashOK) CashResponder

func (o *CashOK) CashResponder()

func (*CashOK) SetPayload

func (o *CashOK) SetPayload(payload model.Wallet)

SetPayload sets the payload to the cash o k response

func (*CashOK) WithPayload

func (o *CashOK) WithPayload(payload model.Wallet) *CashOK

WithPayload adds the payload to the cash o k response

func (*CashOK) WriteResponse

func (o *CashOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CashParams

type CashParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Treasure for exchange.
	  Required: true
	  In: body
	*/
	Args model.Treasure
}

CashParams contains all the bound params for the cash operation typically these are obtained from a http.Request

swagger:parameters cash

func NewCashParams

func NewCashParams() CashParams

NewCashParams creates a new CashParams object no default values defined in spec.

func (*CashParams) BindRequest

func (o *CashParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCashParams() beforehand.

type CashResponder

type CashResponder interface {
	middleware.Responder
	CashResponder()
}

func CashNotImplemented

func CashNotImplemented() CashResponder

type CashURL

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

CashURL generates an URL for the cash operation

func (*CashURL) Build

func (o *CashURL) Build() (*url.URL, error)

Build a url path and query string

func (*CashURL) BuildFull

func (o *CashURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CashURL) Must

func (o *CashURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CashURL) SetBasePath

func (o *CashURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CashURL) String

func (o *CashURL) String() string

String returns the string representation of the path with query string

func (*CashURL) StringFull

func (o *CashURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CashURL) WithBasePath

func (o *CashURL) WithBasePath(bp string) *CashURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type Dig

type Dig struct {
	Context *middleware.Context
	Handler DigHandler
}

Dig swagger:route POST /dig dig

Dig at given point and depth, returns found treasures.

func NewDig

func NewDig(ctx *middleware.Context, handler DigHandler) *Dig

NewDig creates a new http.Handler for the dig operation

func (*Dig) ServeHTTP

func (o *Dig) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DigDefault

type DigDefault struct {

	/*
	  In: Body
	*/
	Payload *model.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DigDefault - 422.1000: wrong coordinates - 422.1001: wrong depth

swagger:response digDefault

func NewDigDefault

func NewDigDefault(code int) *DigDefault

NewDigDefault creates DigDefault with default headers values

func (*DigDefault) DigResponder

func (o *DigDefault) DigResponder()

func (*DigDefault) SetPayload

func (o *DigDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the dig default response

func (*DigDefault) SetStatusCode

func (o *DigDefault) SetStatusCode(code int)

SetStatusCode sets the status to the dig default response

func (*DigDefault) WithPayload

func (o *DigDefault) WithPayload(payload *model.Error) *DigDefault

WithPayload adds the payload to the dig default response

func (*DigDefault) WithStatusCode

func (o *DigDefault) WithStatusCode(code int) *DigDefault

WithStatusCode adds the status to the dig default response

func (*DigDefault) WriteResponse

func (o *DigDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DigHandler

type DigHandler interface {
	Handle(DigParams) DigResponder
}

DigHandler interface for that can handle valid dig params

type DigHandlerFunc

type DigHandlerFunc func(DigParams) DigResponder

DigHandlerFunc turns a function with the right signature into a dig handler

func (DigHandlerFunc) Handle

func (fn DigHandlerFunc) Handle(params DigParams) DigResponder

Handle executing the request and returning a response

type DigNotImplementedResponder

type DigNotImplementedResponder struct {
	middleware.Responder
}

func (*DigNotImplementedResponder) DigResponder

func (*DigNotImplementedResponder) DigResponder()

type DigOK

type DigOK struct {

	/*
	  In: Body
	*/
	Payload model.TreasureList `json:"body,omitempty"`
}

DigOK List of treasures found.

swagger:response digOK

func NewDigOK

func NewDigOK() *DigOK

NewDigOK creates DigOK with default headers values

func (*DigOK) DigResponder

func (o *DigOK) DigResponder()

func (*DigOK) SetPayload

func (o *DigOK) SetPayload(payload model.TreasureList)

SetPayload sets the payload to the dig o k response

func (*DigOK) WithPayload

func (o *DigOK) WithPayload(payload model.TreasureList) *DigOK

WithPayload adds the payload to the dig o k response

func (*DigOK) WriteResponse

func (o *DigOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DigParams

type DigParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*License, place and depth to dig.
	  Required: true
	  In: body
	*/
	Args *model.Dig
}

DigParams contains all the bound params for the dig operation typically these are obtained from a http.Request

swagger:parameters dig

func NewDigParams

func NewDigParams() DigParams

NewDigParams creates a new DigParams object no default values defined in spec.

func (*DigParams) BindRequest

func (o *DigParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDigParams() beforehand.

type DigResponder

type DigResponder interface {
	middleware.Responder
	DigResponder()
}

func DigNotImplemented

func DigNotImplemented() DigResponder

type DigURL

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

DigURL generates an URL for the dig operation

func (*DigURL) Build

func (o *DigURL) Build() (*url.URL, error)

Build a url path and query string

func (*DigURL) BuildFull

func (o *DigURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DigURL) Must

func (o *DigURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DigURL) SetBasePath

func (o *DigURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DigURL) String

func (o *DigURL) String() string

String returns the string representation of the path with query string

func (*DigURL) StringFull

func (o *DigURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DigURL) WithBasePath

func (o *DigURL) WithBasePath(bp string) *DigURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ExploreArea

type ExploreArea struct {
	Context *middleware.Context
	Handler ExploreAreaHandler
}

ExploreArea swagger:route POST /explore exploreArea

Returns amount of treasures in the provided area at full depth.

func NewExploreArea

func NewExploreArea(ctx *middleware.Context, handler ExploreAreaHandler) *ExploreArea

NewExploreArea creates a new http.Handler for the explore area operation

func (*ExploreArea) ServeHTTP

func (o *ExploreArea) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ExploreAreaDefault

type ExploreAreaDefault struct {

	/*
	  In: Body
	*/
	Payload *model.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ExploreAreaDefault - 422.1000: wrong coordinates

swagger:response exploreAreaDefault

func NewExploreAreaDefault

func NewExploreAreaDefault(code int) *ExploreAreaDefault

NewExploreAreaDefault creates ExploreAreaDefault with default headers values

func (*ExploreAreaDefault) ExploreAreaResponder

func (o *ExploreAreaDefault) ExploreAreaResponder()

func (*ExploreAreaDefault) SetPayload

func (o *ExploreAreaDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the explore area default response

func (*ExploreAreaDefault) SetStatusCode

func (o *ExploreAreaDefault) SetStatusCode(code int)

SetStatusCode sets the status to the explore area default response

func (*ExploreAreaDefault) WithPayload

func (o *ExploreAreaDefault) WithPayload(payload *model.Error) *ExploreAreaDefault

WithPayload adds the payload to the explore area default response

func (*ExploreAreaDefault) WithStatusCode

func (o *ExploreAreaDefault) WithStatusCode(code int) *ExploreAreaDefault

WithStatusCode adds the status to the explore area default response

func (*ExploreAreaDefault) WriteResponse

func (o *ExploreAreaDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ExploreAreaHandler

type ExploreAreaHandler interface {
	Handle(ExploreAreaParams) ExploreAreaResponder
}

ExploreAreaHandler interface for that can handle valid explore area params

type ExploreAreaHandlerFunc

type ExploreAreaHandlerFunc func(ExploreAreaParams) ExploreAreaResponder

ExploreAreaHandlerFunc turns a function with the right signature into a explore area handler

func (ExploreAreaHandlerFunc) Handle

Handle executing the request and returning a response

type ExploreAreaNotImplementedResponder

type ExploreAreaNotImplementedResponder struct {
	middleware.Responder
}

func (*ExploreAreaNotImplementedResponder) ExploreAreaResponder

func (*ExploreAreaNotImplementedResponder) ExploreAreaResponder()

type ExploreAreaOK

type ExploreAreaOK struct {

	/*
	  In: Body
	*/
	Payload *model.Report `json:"body,omitempty"`
}

ExploreAreaOK Report about found treasures.

swagger:response exploreAreaOK

func NewExploreAreaOK

func NewExploreAreaOK() *ExploreAreaOK

NewExploreAreaOK creates ExploreAreaOK with default headers values

func (*ExploreAreaOK) ExploreAreaResponder

func (o *ExploreAreaOK) ExploreAreaResponder()

func (*ExploreAreaOK) SetPayload

func (o *ExploreAreaOK) SetPayload(payload *model.Report)

SetPayload sets the payload to the explore area o k response

func (*ExploreAreaOK) WithPayload

func (o *ExploreAreaOK) WithPayload(payload *model.Report) *ExploreAreaOK

WithPayload adds the payload to the explore area o k response

func (*ExploreAreaOK) WriteResponse

func (o *ExploreAreaOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ExploreAreaParams

type ExploreAreaParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Area to be explored.
	  Required: true
	  In: body
	*/
	Args *model.Area
}

ExploreAreaParams contains all the bound params for the explore area operation typically these are obtained from a http.Request

swagger:parameters exploreArea

func NewExploreAreaParams

func NewExploreAreaParams() ExploreAreaParams

NewExploreAreaParams creates a new ExploreAreaParams object no default values defined in spec.

func (*ExploreAreaParams) BindRequest

func (o *ExploreAreaParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewExploreAreaParams() beforehand.

type ExploreAreaResponder

type ExploreAreaResponder interface {
	middleware.Responder
	ExploreAreaResponder()
}

func ExploreAreaNotImplemented

func ExploreAreaNotImplemented() ExploreAreaResponder

type ExploreAreaURL

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

ExploreAreaURL generates an URL for the explore area operation

func (*ExploreAreaURL) Build

func (o *ExploreAreaURL) Build() (*url.URL, error)

Build a url path and query string

func (*ExploreAreaURL) BuildFull

func (o *ExploreAreaURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ExploreAreaURL) Must

func (o *ExploreAreaURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ExploreAreaURL) SetBasePath

func (o *ExploreAreaURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ExploreAreaURL) String

func (o *ExploreAreaURL) String() string

String returns the string representation of the path with query string

func (*ExploreAreaURL) StringFull

func (o *ExploreAreaURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ExploreAreaURL) WithBasePath

func (o *ExploreAreaURL) WithBasePath(bp string) *ExploreAreaURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetBalance

type GetBalance struct {
	Context *middleware.Context
	Handler GetBalanceHandler
}

GetBalance swagger:route GET /balance getBalance

Returns a current balance.

func NewGetBalance

func NewGetBalance(ctx *middleware.Context, handler GetBalanceHandler) *GetBalance

NewGetBalance creates a new http.Handler for the get balance operation

func (*GetBalance) ServeHTTP

func (o *GetBalance) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetBalanceDefault

type GetBalanceDefault struct {

	/*
	  In: Body
	*/
	Payload *model.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetBalanceDefault General errors using same model as used by go-swagger for validation errors.

swagger:response getBalanceDefault

func NewGetBalanceDefault

func NewGetBalanceDefault(code int) *GetBalanceDefault

NewGetBalanceDefault creates GetBalanceDefault with default headers values

func (*GetBalanceDefault) GetBalanceResponder

func (o *GetBalanceDefault) GetBalanceResponder()

func (*GetBalanceDefault) SetPayload

func (o *GetBalanceDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the get balance default response

func (*GetBalanceDefault) SetStatusCode

func (o *GetBalanceDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get balance default response

func (*GetBalanceDefault) WithPayload

func (o *GetBalanceDefault) WithPayload(payload *model.Error) *GetBalanceDefault

WithPayload adds the payload to the get balance default response

func (*GetBalanceDefault) WithStatusCode

func (o *GetBalanceDefault) WithStatusCode(code int) *GetBalanceDefault

WithStatusCode adds the status to the get balance default response

func (*GetBalanceDefault) WriteResponse

func (o *GetBalanceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetBalanceHandler

type GetBalanceHandler interface {
	Handle(GetBalanceParams) GetBalanceResponder
}

GetBalanceHandler interface for that can handle valid get balance params

type GetBalanceHandlerFunc

type GetBalanceHandlerFunc func(GetBalanceParams) GetBalanceResponder

GetBalanceHandlerFunc turns a function with the right signature into a get balance handler

func (GetBalanceHandlerFunc) Handle

Handle executing the request and returning a response

type GetBalanceNotImplementedResponder

type GetBalanceNotImplementedResponder struct {
	middleware.Responder
}

func (*GetBalanceNotImplementedResponder) GetBalanceResponder

func (*GetBalanceNotImplementedResponder) GetBalanceResponder()

type GetBalanceOK

type GetBalanceOK struct {

	/*
	  In: Body
	*/
	Payload *model.Balance `json:"body,omitempty"`
}

GetBalanceOK Current balance.

swagger:response getBalanceOK

func NewGetBalanceOK

func NewGetBalanceOK() *GetBalanceOK

NewGetBalanceOK creates GetBalanceOK with default headers values

func (*GetBalanceOK) GetBalanceResponder

func (o *GetBalanceOK) GetBalanceResponder()

func (*GetBalanceOK) SetPayload

func (o *GetBalanceOK) SetPayload(payload *model.Balance)

SetPayload sets the payload to the get balance o k response

func (*GetBalanceOK) WithPayload

func (o *GetBalanceOK) WithPayload(payload *model.Balance) *GetBalanceOK

WithPayload adds the payload to the get balance o k response

func (*GetBalanceOK) WriteResponse

func (o *GetBalanceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetBalanceParams

type GetBalanceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetBalanceParams contains all the bound params for the get balance operation typically these are obtained from a http.Request

swagger:parameters getBalance

func NewGetBalanceParams

func NewGetBalanceParams() GetBalanceParams

NewGetBalanceParams creates a new GetBalanceParams object no default values defined in spec.

func (*GetBalanceParams) BindRequest

func (o *GetBalanceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetBalanceParams() beforehand.

type GetBalanceResponder

type GetBalanceResponder interface {
	middleware.Responder
	GetBalanceResponder()
}

func GetBalanceNotImplemented

func GetBalanceNotImplemented() GetBalanceResponder

type GetBalanceURL

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

GetBalanceURL generates an URL for the get balance operation

func (*GetBalanceURL) Build

func (o *GetBalanceURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetBalanceURL) BuildFull

func (o *GetBalanceURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetBalanceURL) Must

func (o *GetBalanceURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetBalanceURL) SetBasePath

func (o *GetBalanceURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetBalanceURL) String

func (o *GetBalanceURL) String() string

String returns the string representation of the path with query string

func (*GetBalanceURL) StringFull

func (o *GetBalanceURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetBalanceURL) WithBasePath

func (o *GetBalanceURL) WithBasePath(bp string) *GetBalanceURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type HealthCheck added in v0.2.4

type HealthCheck struct {
	Context *middleware.Context
	Handler HealthCheckHandler
}

HealthCheck swagger:route GET /health-check healthCheck

Returns 200 if service works okay.

func NewHealthCheck added in v0.2.4

func NewHealthCheck(ctx *middleware.Context, handler HealthCheckHandler) *HealthCheck

NewHealthCheck creates a new http.Handler for the health check operation

func (*HealthCheck) ServeHTTP added in v0.2.4

func (o *HealthCheck) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type HealthCheckDefault added in v0.2.4

type HealthCheckDefault struct {

	/*
	  In: Body
	*/
	Payload *model.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

HealthCheckDefault General errors using same model as used by go-swagger for validation errors.

swagger:response healthCheckDefault

func NewHealthCheckDefault added in v0.2.4

func NewHealthCheckDefault(code int) *HealthCheckDefault

NewHealthCheckDefault creates HealthCheckDefault with default headers values

func (*HealthCheckDefault) HealthCheckResponder added in v0.2.4

func (o *HealthCheckDefault) HealthCheckResponder()

func (*HealthCheckDefault) SetPayload added in v0.2.4

func (o *HealthCheckDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the health check default response

func (*HealthCheckDefault) SetStatusCode added in v0.2.4

func (o *HealthCheckDefault) SetStatusCode(code int)

SetStatusCode sets the status to the health check default response

func (*HealthCheckDefault) WithPayload added in v0.2.4

func (o *HealthCheckDefault) WithPayload(payload *model.Error) *HealthCheckDefault

WithPayload adds the payload to the health check default response

func (*HealthCheckDefault) WithStatusCode added in v0.2.4

func (o *HealthCheckDefault) WithStatusCode(code int) *HealthCheckDefault

WithStatusCode adds the status to the health check default response

func (*HealthCheckDefault) WriteResponse added in v0.2.4

func (o *HealthCheckDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type HealthCheckHandler added in v0.2.4

type HealthCheckHandler interface {
	Handle(HealthCheckParams) HealthCheckResponder
}

HealthCheckHandler interface for that can handle valid health check params

type HealthCheckHandlerFunc added in v0.2.4

type HealthCheckHandlerFunc func(HealthCheckParams) HealthCheckResponder

HealthCheckHandlerFunc turns a function with the right signature into a health check handler

func (HealthCheckHandlerFunc) Handle added in v0.2.4

Handle executing the request and returning a response

type HealthCheckNotImplementedResponder added in v0.2.4

type HealthCheckNotImplementedResponder struct {
	middleware.Responder
}

func (*HealthCheckNotImplementedResponder) HealthCheckResponder added in v0.2.4

func (*HealthCheckNotImplementedResponder) HealthCheckResponder()

type HealthCheckOK added in v0.2.4

type HealthCheckOK struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

HealthCheckOK Extra details about service status, if any.

swagger:response healthCheckOK

func NewHealthCheckOK added in v0.2.4

func NewHealthCheckOK() *HealthCheckOK

NewHealthCheckOK creates HealthCheckOK with default headers values

func (*HealthCheckOK) HealthCheckResponder added in v0.2.4

func (o *HealthCheckOK) HealthCheckResponder()

func (*HealthCheckOK) SetPayload added in v0.2.4

func (o *HealthCheckOK) SetPayload(payload interface{})

SetPayload sets the payload to the health check o k response

func (*HealthCheckOK) WithPayload added in v0.2.4

func (o *HealthCheckOK) WithPayload(payload interface{}) *HealthCheckOK

WithPayload adds the payload to the health check o k response

func (*HealthCheckOK) WriteResponse added in v0.2.4

func (o *HealthCheckOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type HealthCheckParams added in v0.2.4

type HealthCheckParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

HealthCheckParams contains all the bound params for the health check operation typically these are obtained from a http.Request

swagger:parameters healthCheck

func NewHealthCheckParams added in v0.2.4

func NewHealthCheckParams() HealthCheckParams

NewHealthCheckParams creates a new HealthCheckParams object no default values defined in spec.

func (*HealthCheckParams) BindRequest added in v0.2.4

func (o *HealthCheckParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewHealthCheckParams() beforehand.

type HealthCheckResponder added in v0.2.4

type HealthCheckResponder interface {
	middleware.Responder
	HealthCheckResponder()
}

func HealthCheckNotImplemented added in v0.2.4

func HealthCheckNotImplemented() HealthCheckResponder

type HealthCheckURL added in v0.2.4

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

HealthCheckURL generates an URL for the health check operation

func (*HealthCheckURL) Build added in v0.2.4

func (o *HealthCheckURL) Build() (*url.URL, error)

Build a url path and query string

func (*HealthCheckURL) BuildFull added in v0.2.4

func (o *HealthCheckURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*HealthCheckURL) Must added in v0.2.4

func (o *HealthCheckURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*HealthCheckURL) SetBasePath added in v0.2.4

func (o *HealthCheckURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*HealthCheckURL) String added in v0.2.4

func (o *HealthCheckURL) String() string

String returns the string representation of the path with query string

func (*HealthCheckURL) StringFull added in v0.2.4

func (o *HealthCheckURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*HealthCheckURL) WithBasePath added in v0.2.4

func (o *HealthCheckURL) WithBasePath(bp string) *HealthCheckURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type HighLoadCup2020API

type HighLoadCup2020API struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// CashHandler sets the operation handler for the cash operation
	CashHandler CashHandler
	// DigHandler sets the operation handler for the dig operation
	DigHandler DigHandler
	// ExploreAreaHandler sets the operation handler for the explore area operation
	ExploreAreaHandler ExploreAreaHandler
	// GetBalanceHandler sets the operation handler for the get balance operation
	GetBalanceHandler GetBalanceHandler
	// HealthCheckHandler sets the operation handler for the health check operation
	HealthCheckHandler HealthCheckHandler
	// IssueLicenseHandler sets the operation handler for the issue license operation
	IssueLicenseHandler IssueLicenseHandler
	// ListLicensesHandler sets the operation handler for the list licenses operation
	ListLicensesHandler ListLicensesHandler
	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

HighLoadCup2020API # IT RALLY 2020 HighLoad Cup ## Usage

  • The goal is to dig up and cash out treasures to increase your balance as much as possible in fixed period of time (10 minutes).
  • [Optional] Use /explore to find out where treasures were buried.
  • Use /license to ensure you have valid license ID before calling /dig. Each /dig call will increment license's DigUsed up to DigAllowed, then this license will become inactive.
  • Use /dig with Depth increasing serially from 1 to 10, and sometimes you'll find a treasure.
  • Use /cash on each treasure found by /dig to increase your balance.
  • [Optional] You can pay for a license if you like to - this will decrease your balance, but paid licenses have more DigAllowed, so you'll have to issue less licenses. Each coin in the wallet returned by /cash is unique, and may be spent to get paid license just once.
  • [Optional] You can get your current balance and coins using /balance, and your current active licenses using /licenses.

## List of all custom errors First number is HTTP Status code, second is value of "code" field in returned JSON object, text description may or may not match "message" field in returned JSON object. - 422.1000: wrong coordinates - 422.1001: wrong depth - 409.1002: no more active licenses allowed - 409.1003: treasure is not digged

func NewHighLoadCup2020API

func NewHighLoadCup2020API(spec *loads.Document) *HighLoadCup2020API

NewHighLoadCup2020API creates a new HighLoadCup2020 instance

func (*HighLoadCup2020API) AddMiddlewareFor

func (o *HighLoadCup2020API) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*HighLoadCup2020API) AuthenticatorsFor

func (o *HighLoadCup2020API) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*HighLoadCup2020API) Authorizer

func (o *HighLoadCup2020API) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*HighLoadCup2020API) ConsumersFor

func (o *HighLoadCup2020API) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*HighLoadCup2020API) Context

func (o *HighLoadCup2020API) Context() *middleware.Context

Context returns the middleware context for the high load cup2020 API

func (*HighLoadCup2020API) DefaultConsumes

func (o *HighLoadCup2020API) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*HighLoadCup2020API) DefaultProduces

func (o *HighLoadCup2020API) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*HighLoadCup2020API) Formats

func (o *HighLoadCup2020API) Formats() strfmt.Registry

Formats returns the registered string formats

func (*HighLoadCup2020API) HandlerFor

func (o *HighLoadCup2020API) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*HighLoadCup2020API) Init

func (o *HighLoadCup2020API) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*HighLoadCup2020API) ProducersFor

func (o *HighLoadCup2020API) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*HighLoadCup2020API) RegisterConsumer

func (o *HighLoadCup2020API) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*HighLoadCup2020API) RegisterFormat

func (o *HighLoadCup2020API) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*HighLoadCup2020API) RegisterProducer

func (o *HighLoadCup2020API) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*HighLoadCup2020API) Serve

func (o *HighLoadCup2020API) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*HighLoadCup2020API) ServeErrorFor

func (o *HighLoadCup2020API) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*HighLoadCup2020API) SetDefaultConsumes

func (o *HighLoadCup2020API) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*HighLoadCup2020API) SetDefaultProduces

func (o *HighLoadCup2020API) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*HighLoadCup2020API) SetSpec

func (o *HighLoadCup2020API) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*HighLoadCup2020API) UseRedoc

func (o *HighLoadCup2020API) UseRedoc()

UseRedoc for documentation at /docs

func (*HighLoadCup2020API) UseSwaggerUI

func (o *HighLoadCup2020API) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*HighLoadCup2020API) Validate

func (o *HighLoadCup2020API) Validate() error

Validate validates the registrations in the HighLoadCup2020API

type IssueLicense

type IssueLicense struct {
	Context *middleware.Context
	Handler IssueLicenseHandler
}

IssueLicense swagger:route POST /licenses issueLicense

Issue a new license.

func NewIssueLicense

func NewIssueLicense(ctx *middleware.Context, handler IssueLicenseHandler) *IssueLicense

NewIssueLicense creates a new http.Handler for the issue license operation

func (*IssueLicense) ServeHTTP

func (o *IssueLicense) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type IssueLicenseDefault

type IssueLicenseDefault struct {

	/*
	  In: Body
	*/
	Payload *model.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

IssueLicenseDefault - 409.1002: no more active licenses allowed

swagger:response issueLicenseDefault

func NewIssueLicenseDefault

func NewIssueLicenseDefault(code int) *IssueLicenseDefault

NewIssueLicenseDefault creates IssueLicenseDefault with default headers values

func (*IssueLicenseDefault) IssueLicenseResponder

func (o *IssueLicenseDefault) IssueLicenseResponder()

func (*IssueLicenseDefault) SetPayload

func (o *IssueLicenseDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the issue license default response

func (*IssueLicenseDefault) SetStatusCode

func (o *IssueLicenseDefault) SetStatusCode(code int)

SetStatusCode sets the status to the issue license default response

func (*IssueLicenseDefault) WithPayload

func (o *IssueLicenseDefault) WithPayload(payload *model.Error) *IssueLicenseDefault

WithPayload adds the payload to the issue license default response

func (*IssueLicenseDefault) WithStatusCode

func (o *IssueLicenseDefault) WithStatusCode(code int) *IssueLicenseDefault

WithStatusCode adds the status to the issue license default response

func (*IssueLicenseDefault) WriteResponse

func (o *IssueLicenseDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type IssueLicenseHandler

type IssueLicenseHandler interface {
	Handle(IssueLicenseParams) IssueLicenseResponder
}

IssueLicenseHandler interface for that can handle valid issue license params

type IssueLicenseHandlerFunc

type IssueLicenseHandlerFunc func(IssueLicenseParams) IssueLicenseResponder

IssueLicenseHandlerFunc turns a function with the right signature into a issue license handler

func (IssueLicenseHandlerFunc) Handle

Handle executing the request and returning a response

type IssueLicenseNotImplementedResponder

type IssueLicenseNotImplementedResponder struct {
	middleware.Responder
}

func (*IssueLicenseNotImplementedResponder) IssueLicenseResponder

func (*IssueLicenseNotImplementedResponder) IssueLicenseResponder()

type IssueLicenseOK

type IssueLicenseOK struct {

	/*
	  In: Body
	*/
	Payload *model.License `json:"body,omitempty"`
}

IssueLicenseOK Issued license.

swagger:response issueLicenseOK

func NewIssueLicenseOK

func NewIssueLicenseOK() *IssueLicenseOK

NewIssueLicenseOK creates IssueLicenseOK with default headers values

func (*IssueLicenseOK) IssueLicenseResponder

func (o *IssueLicenseOK) IssueLicenseResponder()

func (*IssueLicenseOK) SetPayload

func (o *IssueLicenseOK) SetPayload(payload *model.License)

SetPayload sets the payload to the issue license o k response

func (*IssueLicenseOK) WithPayload

func (o *IssueLicenseOK) WithPayload(payload *model.License) *IssueLicenseOK

WithPayload adds the payload to the issue license o k response

func (*IssueLicenseOK) WriteResponse

func (o *IssueLicenseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type IssueLicenseParams

type IssueLicenseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Amount of money to spend for a license.
	  Required: true
	  In: body
	*/
	Args model.Wallet
}

IssueLicenseParams contains all the bound params for the issue license operation typically these are obtained from a http.Request

swagger:parameters issueLicense

func NewIssueLicenseParams

func NewIssueLicenseParams() IssueLicenseParams

NewIssueLicenseParams creates a new IssueLicenseParams object no default values defined in spec.

func (*IssueLicenseParams) BindRequest

func (o *IssueLicenseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewIssueLicenseParams() beforehand.

type IssueLicenseResponder

type IssueLicenseResponder interface {
	middleware.Responder
	IssueLicenseResponder()
}

func IssueLicenseNotImplemented

func IssueLicenseNotImplemented() IssueLicenseResponder

type IssueLicenseURL

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

IssueLicenseURL generates an URL for the issue license operation

func (*IssueLicenseURL) Build

func (o *IssueLicenseURL) Build() (*url.URL, error)

Build a url path and query string

func (*IssueLicenseURL) BuildFull

func (o *IssueLicenseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*IssueLicenseURL) Must

func (o *IssueLicenseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*IssueLicenseURL) SetBasePath

func (o *IssueLicenseURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*IssueLicenseURL) String

func (o *IssueLicenseURL) String() string

String returns the string representation of the path with query string

func (*IssueLicenseURL) StringFull

func (o *IssueLicenseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*IssueLicenseURL) WithBasePath

func (o *IssueLicenseURL) WithBasePath(bp string) *IssueLicenseURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListLicenses

type ListLicenses struct {
	Context *middleware.Context
	Handler ListLicensesHandler
}

ListLicenses swagger:route GET /licenses listLicenses

Returns a list of issued licenses.

func NewListLicenses

func NewListLicenses(ctx *middleware.Context, handler ListLicensesHandler) *ListLicenses

NewListLicenses creates a new http.Handler for the list licenses operation

func (*ListLicenses) ServeHTTP

func (o *ListLicenses) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListLicensesDefault

type ListLicensesDefault struct {

	/*
	  In: Body
	*/
	Payload *model.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListLicensesDefault General errors using same model as used by go-swagger for validation errors.

swagger:response listLicensesDefault

func NewListLicensesDefault

func NewListLicensesDefault(code int) *ListLicensesDefault

NewListLicensesDefault creates ListLicensesDefault with default headers values

func (*ListLicensesDefault) ListLicensesResponder

func (o *ListLicensesDefault) ListLicensesResponder()

func (*ListLicensesDefault) SetPayload

func (o *ListLicensesDefault) SetPayload(payload *model.Error)

SetPayload sets the payload to the list licenses default response

func (*ListLicensesDefault) SetStatusCode

func (o *ListLicensesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list licenses default response

func (*ListLicensesDefault) WithPayload

func (o *ListLicensesDefault) WithPayload(payload *model.Error) *ListLicensesDefault

WithPayload adds the payload to the list licenses default response

func (*ListLicensesDefault) WithStatusCode

func (o *ListLicensesDefault) WithStatusCode(code int) *ListLicensesDefault

WithStatusCode adds the status to the list licenses default response

func (*ListLicensesDefault) WriteResponse

func (o *ListLicensesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListLicensesHandler

type ListLicensesHandler interface {
	Handle(ListLicensesParams) ListLicensesResponder
}

ListLicensesHandler interface for that can handle valid list licenses params

type ListLicensesHandlerFunc

type ListLicensesHandlerFunc func(ListLicensesParams) ListLicensesResponder

ListLicensesHandlerFunc turns a function with the right signature into a list licenses handler

func (ListLicensesHandlerFunc) Handle

Handle executing the request and returning a response

type ListLicensesNotImplementedResponder

type ListLicensesNotImplementedResponder struct {
	middleware.Responder
}

func (*ListLicensesNotImplementedResponder) ListLicensesResponder

func (*ListLicensesNotImplementedResponder) ListLicensesResponder()

type ListLicensesOK

type ListLicensesOK struct {

	/*
	  In: Body
	*/
	Payload model.LicenseList `json:"body,omitempty"`
}

ListLicensesOK List of issued licenses.

swagger:response listLicensesOK

func NewListLicensesOK

func NewListLicensesOK() *ListLicensesOK

NewListLicensesOK creates ListLicensesOK with default headers values

func (*ListLicensesOK) ListLicensesResponder

func (o *ListLicensesOK) ListLicensesResponder()

func (*ListLicensesOK) SetPayload

func (o *ListLicensesOK) SetPayload(payload model.LicenseList)

SetPayload sets the payload to the list licenses o k response

func (*ListLicensesOK) WithPayload

func (o *ListLicensesOK) WithPayload(payload model.LicenseList) *ListLicensesOK

WithPayload adds the payload to the list licenses o k response

func (*ListLicensesOK) WriteResponse

func (o *ListLicensesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListLicensesParams

type ListLicensesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ListLicensesParams contains all the bound params for the list licenses operation typically these are obtained from a http.Request

swagger:parameters listLicenses

func NewListLicensesParams

func NewListLicensesParams() ListLicensesParams

NewListLicensesParams creates a new ListLicensesParams object no default values defined in spec.

func (*ListLicensesParams) BindRequest

func (o *ListLicensesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListLicensesParams() beforehand.

type ListLicensesResponder

type ListLicensesResponder interface {
	middleware.Responder
	ListLicensesResponder()
}

func ListLicensesNotImplemented

func ListLicensesNotImplemented() ListLicensesResponder

type ListLicensesURL

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

ListLicensesURL generates an URL for the list licenses operation

func (*ListLicensesURL) Build

func (o *ListLicensesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListLicensesURL) BuildFull

func (o *ListLicensesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListLicensesURL) Must

func (o *ListLicensesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListLicensesURL) SetBasePath

func (o *ListLicensesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListLicensesURL) String

func (o *ListLicensesURL) String() string

String returns the string representation of the path with query string

func (*ListLicensesURL) StringFull

func (o *ListLicensesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListLicensesURL) WithBasePath

func (o *ListLicensesURL) WithBasePath(bp string) *ListLicensesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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