coreapi

package
v1.3.30 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericRequestIn

type GenericRequestIn struct {
	Attribute *RequestAttribute `json:"Attribute,omitempty"`
	Request   interface{}       `json:"Request,omitempty"`
}

func InvalidGenericRequestIn added in v0.5.1

func InvalidGenericRequestIn(
	attr *RequestAttribute,
) *GenericRequestIn

func (*GenericRequestIn) Clone added in v0.5.1

func (it *GenericRequestIn) Clone() *GenericRequestIn

func (*GenericRequestIn) SimpleGenericRequest

func (it *GenericRequestIn) SimpleGenericRequest(
	isValid bool,
	invalidMessage string,
) *SimpleGenericRequest

type GenericResponse

type GenericResponse struct {
	Attribute *ResponseAttribute `json:"Attribute,omitempty"`
	Response  interface{}        `json:"Response,omitempty"`
}

func InvalidGenericResponse added in v0.5.1

func InvalidGenericResponse(attr *ResponseAttribute) *GenericResponse

func (*GenericResponse) Clone added in v0.5.1

func (it *GenericResponse) Clone() *GenericResponse

Clone Cannot copy interface, just putting response in response field.

func (*GenericResponse) GenericResponseResult

func (it *GenericResponse) GenericResponseResult() *GenericResponseResult

type GenericResponseResult

type GenericResponseResult struct {
	Attribute *ResponseAttribute        `json:"Attribute,omitempty"`
	Response  *coredynamic.SimpleResult `json:"Response,omitempty"`
}

func InvalidGenericResponseResult added in v0.5.1

func InvalidGenericResponseResult(attribute *ResponseAttribute) *GenericResponseResult

func (GenericResponseResult) Clone added in v0.5.1

func (*GenericResponseResult) ClonePtr added in v0.8.5

type PageRequest

type PageRequest struct {
	PageSize  int
	PageIndex int
}

func (*PageRequest) Clone added in v0.5.1

func (it *PageRequest) Clone() *PageRequest

func (*PageRequest) HasPageIndex added in v1.1.0

func (it *PageRequest) HasPageIndex() bool

func (*PageRequest) HasPageSize added in v1.1.0

func (it *PageRequest) HasPageSize() bool

func (*PageRequest) IsPageIndexEmpty added in v1.1.0

func (it *PageRequest) IsPageIndexEmpty() bool

func (*PageRequest) IsPageSizeEmpty added in v1.1.0

func (it *PageRequest) IsPageSizeEmpty() bool

type PayloadsRequestIn added in v1.1.0

type PayloadsRequestIn struct {
	Attribute *RequestAttribute `json:"Attribute,omitempty"`
	Request   []byte            `json:"Request,omitempty"`
}

type RequestAttribute

type RequestAttribute struct {
	Url           string `json:"Url,omitempty"`
	Host          string `json:"Host,omitempty"`
	ResourceName  string `json:"ResourceName,omitempty"`
	ActionName    string `json:"ActionName,omitempty"`
	Identifier    string `json:"Identifier,omitempty"`
	OptionalAuth  string `json:"OptionalAuth,omitempty"`
	ErrorJson     string `json:"ErrorJson,omitempty"`
	RequestType   reqtype.Request
	IsValid       bool
	HasError      bool
	SearchRequest *SearchRequest `json:"SearchRequest,omitempty"`
	PageRequest   *PageRequest   `json:"PageRequest,omitempty"`
}

func InvalidRequestAttribute added in v0.5.1

func InvalidRequestAttribute() *RequestAttribute

func (*RequestAttribute) Clone added in v0.5.1

func (it *RequestAttribute) Clone() *RequestAttribute

func (*RequestAttribute) HasPageRequest added in v1.1.0

func (it *RequestAttribute) HasPageRequest() bool

func (*RequestAttribute) HasSearchRequest added in v1.1.0

func (it *RequestAttribute) HasSearchRequest() bool

func (*RequestAttribute) IsAnyNull added in v1.1.0

func (it *RequestAttribute) IsAnyNull() bool

func (*RequestAttribute) IsEmpty added in v1.1.0

func (it *RequestAttribute) IsEmpty() bool

func (*RequestAttribute) IsPageRequestEmpty added in v1.1.0

func (it *RequestAttribute) IsPageRequestEmpty() bool

func (*RequestAttribute) IsSearchRequestEmpty added in v1.1.0

func (it *RequestAttribute) IsSearchRequestEmpty() bool

type ResponseAttribute

type ResponseAttribute struct {
	ResponseOfRequestType reqtype.Request
	Count                 int
	HasAnyRecord          bool
	NextPageRequestUrl    string
	StepsPerformed        *[]string `json:"StepsPerformed,omitempty"`
	DebugInfos            *[]string `json:"DebugInfos,omitempty"`
	HttpCode              int
	HttpMethod            reqtype.Request
	IsValid               bool
	Message               string `json:"Message,omitempty"`
}

func InvalidResponseAttribute added in v0.5.1

func InvalidResponseAttribute(message string) *ResponseAttribute

func (*ResponseAttribute) Clone added in v0.5.1

func (receiver *ResponseAttribute) Clone() *ResponseAttribute

type SearchRequest

type SearchRequest struct {
	SearchTerm                                                     string
	IsNaturalSearch, IsContains, IsStartsWith, IsEndsWith, IsRegex bool
}

func (*SearchRequest) Clone added in v0.5.1

func (receiver *SearchRequest) Clone() *SearchRequest

type SimpleGenericRequest

type SimpleGenericRequest struct {
	Attribute *RequestAttribute          `json:"Attribute,omitempty"`
	Request   *coredynamic.SimpleRequest `json:"Request,omitempty"`
}

func InvalidSimpleGenericRequest added in v0.5.1

func InvalidSimpleGenericRequest(attribute *RequestAttribute) *SimpleGenericRequest

Jump to

Keyboard shortcuts

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