Documentation ¶
Overview ¶
Package httpserver http client CODE GENERATED AUTOMATICALLY THIS FILE COULD BE EDITED BY HANDS
Package httpserver http server CODE GENERATED AUTOMATICALLY THIS FILE COULD BE EDITED BY HANDS
Index ¶
- Constants
- func NewChangeThesisServer(transport ChangeThesisTransport, service service, ...) fasthttp.RequestHandler
- func NewCreateThesisServer(transport CreateThesisTransport, service service, ...) fasthttp.RequestHandler
- func NewGetThesisByFilterServer(transport GetThesisByFilterTransport, service service, ...) fasthttp.RequestHandler
- func NewPreparedServer(svc service) *fasthttprouter.Router
- type ChangeThesisTransport
- type CreateThesisTransport
- type GetThesisByFilterTransport
Constants ¶
const ( // URIPrefix ... URIPrefix = "/api/v1/thesis" // URIPathClientCreateThesis ... URIPathClientCreateThesis = URIPrefix + "/create" // URIPathClientChangeThesis ... URIPathClientChangeThesis = URIPrefix + "/change" // URIPathClientGetThesisByFilter ... URIPathClientGetThesisByFilter = URIPrefix + "/get" // HTTPMethodCreateThesis ... HTTPMethodCreateThesis = http.MethodPost // HTTPMethodChangeThesis ... HTTPMethodChangeThesis = http.MethodPost // HTTPMethodGetThesisByFilter ... HTTPMethodGetThesisByFilter = http.MethodPost )
Variables ¶
This section is empty.
Functions ¶
func NewChangeThesisServer ¶
func NewChangeThesisServer(transport ChangeThesisTransport, service service, errorProcessor errorProcessor) fasthttp.RequestHandler
NewChangeThesisServer the server creator
func NewCreateThesisServer ¶
func NewCreateThesisServer(transport CreateThesisTransport, service service, errorProcessor errorProcessor) fasthttp.RequestHandler
NewCreateThesisServer the server creator
func NewGetThesisByFilterServer ¶
func NewGetThesisByFilterServer(transport GetThesisByFilterTransport, service service, errorProcessor errorProcessor) fasthttp.RequestHandler
NewGetThesisByFilterServer the server creator
func NewPreparedServer ¶
func NewPreparedServer(svc service) *fasthttprouter.Router
NewPreparedServer factory for server api handler
Types ¶
type ChangeThesisTransport ¶
type ChangeThesisTransport interface { DecodeRequest(ctx context.Context, r *fasthttp.Request) (request api.ChangeThesisRequest, err error) EncodeResponse(ctx context.Context, r *fasthttp.Response, response *api.ChangeThesisResponse) (err error) }
ChangeThesisTransport transport interface
func NewChangeThesisTransport ¶
func NewChangeThesisTransport(errorCreator errorCreator) ChangeThesisTransport
NewCreateThesisTransport the transport creator for http requests
type CreateThesisTransport ¶
type CreateThesisTransport interface { DecodeRequest(ctx context.Context, r *fasthttp.Request) (request api.CreateThesisRequest, err error) EncodeResponse(ctx context.Context, r *fasthttp.Response, response *api.CreateThesisResponse) (err error) }
CreateThesisTransport transport interface
func NewCreateThesisTransport ¶
func NewCreateThesisTransport(errorCreator errorCreator) CreateThesisTransport
NewCreateThesisTransport the transport creator for http requests
type GetThesisByFilterTransport ¶
type GetThesisByFilterTransport interface { DecodeRequest(ctx context.Context, r *fasthttp.Request) (request api.GetThesisByFilterRequest, err error) EncodeResponse(ctx context.Context, r *fasthttp.Response, response *api.GetThesisByFilterResponse) (err error) }
GetThesisByFilterTransport transport interface
func NewGetThesisByFilterTransport ¶
func NewGetThesisByFilterTransport(errorCreator errorCreator) GetThesisByFilterTransport
NewGetThesisByFilterTransport the transport creator for http requests