Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AddProject
- func (s *AddProject) Decode(d *jx.Decoder) error
- func (s *AddProject) Encode(e *jx.Encoder)
- func (s *AddProject) GetCreated() OptDateTime
- func (s *AddProject) GetDescription() []AddProjectDescriptionItem
- func (s *AddProject) GetDissolutionDate() OptString
- func (s *AddProject) GetFoundingDate() OptString
- func (s *AddProject) GetHasAcronym() []string
- func (s *AddProject) GetID() OptString
- func (s *AddProject) GetIdentifier() []AddProjectIdentifierItem
- func (s *AddProject) GetIsFundedBy() OptAddProjectIsFundedBy
- func (s *AddProject) GetModified() OptDateTime
- func (s *AddProject) GetName() []AddProjectNameItem
- func (s *AddProject) GetType() string
- func (s *AddProject) MarshalJSON() ([]byte, error)
- func (s *AddProject) SetCreated(val OptDateTime)
- func (s *AddProject) SetDescription(val []AddProjectDescriptionItem)
- func (s *AddProject) SetDissolutionDate(val OptString)
- func (s *AddProject) SetFoundingDate(val OptString)
- func (s *AddProject) SetHasAcronym(val []string)
- func (s *AddProject) SetID(val OptString)
- func (s *AddProject) SetIdentifier(val []AddProjectIdentifierItem)
- func (s *AddProject) SetIsFundedBy(val OptAddProjectIsFundedBy)
- func (s *AddProject) SetModified(val OptDateTime)
- func (s *AddProject) SetName(val []AddProjectNameItem)
- func (s *AddProject) SetType(val string)
- func (s *AddProject) UnmarshalJSON(data []byte) error
- func (s *AddProject) Validate() error
- type AddProjectDescriptionItem
- func (s *AddProjectDescriptionItem) Decode(d *jx.Decoder) error
- func (s *AddProjectDescriptionItem) Encode(e *jx.Encoder)
- func (s *AddProjectDescriptionItem) GetLanguage() string
- func (s *AddProjectDescriptionItem) GetValue() string
- func (s *AddProjectDescriptionItem) MarshalJSON() ([]byte, error)
- func (s *AddProjectDescriptionItem) SetLanguage(val string)
- func (s *AddProjectDescriptionItem) SetValue(val string)
- func (s *AddProjectDescriptionItem) UnmarshalJSON(data []byte) error
- type AddProjectIdentifierItem
- func (s *AddProjectIdentifierItem) Decode(d *jx.Decoder) error
- func (s *AddProjectIdentifierItem) Encode(e *jx.Encoder)
- func (s *AddProjectIdentifierItem) GetPropertyID() string
- func (s *AddProjectIdentifierItem) GetType() string
- func (s *AddProjectIdentifierItem) GetValue() string
- func (s *AddProjectIdentifierItem) MarshalJSON() ([]byte, error)
- func (s *AddProjectIdentifierItem) SetPropertyID(val string)
- func (s *AddProjectIdentifierItem) SetType(val string)
- func (s *AddProjectIdentifierItem) SetValue(val string)
- func (s *AddProjectIdentifierItem) UnmarshalJSON(data []byte) error
- type AddProjectIsFundedBy
- func (s *AddProjectIsFundedBy) Decode(d *jx.Decoder) error
- func (s *AddProjectIsFundedBy) Encode(e *jx.Encoder)
- func (s *AddProjectIsFundedBy) GetHasCallNumber() OptString
- func (s *AddProjectIsFundedBy) GetIsAwardedBy() OptNilAddProjectIsFundedByIsAwardedBy
- func (s *AddProjectIsFundedBy) GetType() string
- func (s *AddProjectIsFundedBy) MarshalJSON() ([]byte, error)
- func (s *AddProjectIsFundedBy) SetHasCallNumber(val OptString)
- func (s *AddProjectIsFundedBy) SetIsAwardedBy(val OptNilAddProjectIsFundedByIsAwardedBy)
- func (s *AddProjectIsFundedBy) SetType(val string)
- func (s *AddProjectIsFundedBy) UnmarshalJSON(data []byte) error
- type AddProjectIsFundedByIsAwardedBy
- func (s *AddProjectIsFundedByIsAwardedBy) Decode(d *jx.Decoder) error
- func (s *AddProjectIsFundedByIsAwardedBy) Encode(e *jx.Encoder)
- func (s *AddProjectIsFundedByIsAwardedBy) GetName() string
- func (s *AddProjectIsFundedByIsAwardedBy) GetType() string
- func (s *AddProjectIsFundedByIsAwardedBy) MarshalJSON() ([]byte, error)
- func (s *AddProjectIsFundedByIsAwardedBy) SetName(val string)
- func (s *AddProjectIsFundedByIsAwardedBy) SetType(val string)
- func (s *AddProjectIsFundedByIsAwardedBy) UnmarshalJSON(data []byte) error
- type AddProjectNameItem
- func (s *AddProjectNameItem) Decode(d *jx.Decoder) error
- func (s *AddProjectNameItem) Encode(e *jx.Encoder)
- func (s *AddProjectNameItem) GetLanguage() string
- func (s *AddProjectNameItem) GetValue() string
- func (s *AddProjectNameItem) MarshalJSON() ([]byte, error)
- func (s *AddProjectNameItem) SetLanguage(val string)
- func (s *AddProjectNameItem) SetValue(val string)
- func (s *AddProjectNameItem) UnmarshalJSON(data []byte) error
- type AddProjectOK
- type ApiKey
- type Client
- func (c *Client) AddProject(ctx context.Context, request *AddProject) error
- func (c *Client) DeleteProject(ctx context.Context, request *DeleteProjectRequest) error
- func (c *Client) GetProject(ctx context.Context, request *GetProjectRequest) (GetProjectRes, error)
- func (c *Client) SuggestProjects(ctx context.Context, request *SuggestProjectsRequest) (*SuggestProjectsResponse, error)
- type ClientOption
- type DeleteProjectOK
- type DeleteProjectRequest
- func (s *DeleteProjectRequest) Decode(d *jx.Decoder) error
- func (s *DeleteProjectRequest) Encode(e *jx.Encoder)
- func (s *DeleteProjectRequest) GetID() string
- func (s *DeleteProjectRequest) MarshalJSON() ([]byte, error)
- func (s *DeleteProjectRequest) SetID(val string)
- func (s *DeleteProjectRequest) UnmarshalJSON(data []byte) error
- func (s *DeleteProjectRequest) Validate() error
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetCode() int64
- func (s *Error) GetMessage() string
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetCode(val int64)
- func (s *Error) SetMessage(val string)
- func (s *Error) UnmarshalJSON(data []byte) error
- type ErrorHandler
- type ErrorStatusCode
- type GetProject
- func (s *GetProject) Decode(d *jx.Decoder) error
- func (s *GetProject) Encode(e *jx.Encoder)
- func (s *GetProject) GetCreated() time.Time
- func (s *GetProject) GetDescription() []GetProjectDescriptionItem
- func (s *GetProject) GetDissolutionDate() OptString
- func (s *GetProject) GetFoundingDate() OptString
- func (s *GetProject) GetHasAcronym() []string
- func (s *GetProject) GetID() string
- func (s *GetProject) GetIdentifier() []GetProjectIdentifierItem
- func (s *GetProject) GetIsFundedBy() OptGetProjectIsFundedBy
- func (s *GetProject) GetModified() time.Time
- func (s *GetProject) GetName() []GetProjectNameItem
- func (s *GetProject) GetType() string
- func (s *GetProject) MarshalJSON() ([]byte, error)
- func (s *GetProject) SetCreated(val time.Time)
- func (s *GetProject) SetDescription(val []GetProjectDescriptionItem)
- func (s *GetProject) SetDissolutionDate(val OptString)
- func (s *GetProject) SetFoundingDate(val OptString)
- func (s *GetProject) SetHasAcronym(val []string)
- func (s *GetProject) SetID(val string)
- func (s *GetProject) SetIdentifier(val []GetProjectIdentifierItem)
- func (s *GetProject) SetIsFundedBy(val OptGetProjectIsFundedBy)
- func (s *GetProject) SetModified(val time.Time)
- func (s *GetProject) SetName(val []GetProjectNameItem)
- func (s *GetProject) SetType(val string)
- func (s *GetProject) UnmarshalJSON(data []byte) error
- func (s *GetProject) Validate() error
- type GetProjectDescriptionItem
- func (s *GetProjectDescriptionItem) Decode(d *jx.Decoder) error
- func (s *GetProjectDescriptionItem) Encode(e *jx.Encoder)
- func (s *GetProjectDescriptionItem) GetLanguage() string
- func (s *GetProjectDescriptionItem) GetValue() string
- func (s *GetProjectDescriptionItem) MarshalJSON() ([]byte, error)
- func (s *GetProjectDescriptionItem) SetLanguage(val string)
- func (s *GetProjectDescriptionItem) SetValue(val string)
- func (s *GetProjectDescriptionItem) UnmarshalJSON(data []byte) error
- type GetProjectIdentifierItem
- func (s *GetProjectIdentifierItem) Decode(d *jx.Decoder) error
- func (s *GetProjectIdentifierItem) Encode(e *jx.Encoder)
- func (s *GetProjectIdentifierItem) GetPropertyID() string
- func (s *GetProjectIdentifierItem) GetType() string
- func (s *GetProjectIdentifierItem) GetValue() string
- func (s *GetProjectIdentifierItem) MarshalJSON() ([]byte, error)
- func (s *GetProjectIdentifierItem) SetPropertyID(val string)
- func (s *GetProjectIdentifierItem) SetType(val string)
- func (s *GetProjectIdentifierItem) SetValue(val string)
- func (s *GetProjectIdentifierItem) UnmarshalJSON(data []byte) error
- type GetProjectIsFundedBy
- func (s *GetProjectIsFundedBy) Decode(d *jx.Decoder) error
- func (s *GetProjectIsFundedBy) Encode(e *jx.Encoder)
- func (s *GetProjectIsFundedBy) GetHasCallNumber() OptString
- func (s *GetProjectIsFundedBy) GetIsAwardedBy() OptNilGetProjectIsFundedByIsAwardedBy
- func (s *GetProjectIsFundedBy) GetType() string
- func (s *GetProjectIsFundedBy) MarshalJSON() ([]byte, error)
- func (s *GetProjectIsFundedBy) SetHasCallNumber(val OptString)
- func (s *GetProjectIsFundedBy) SetIsAwardedBy(val OptNilGetProjectIsFundedByIsAwardedBy)
- func (s *GetProjectIsFundedBy) SetType(val string)
- func (s *GetProjectIsFundedBy) UnmarshalJSON(data []byte) error
- type GetProjectIsFundedByIsAwardedBy
- func (s *GetProjectIsFundedByIsAwardedBy) Decode(d *jx.Decoder) error
- func (s *GetProjectIsFundedByIsAwardedBy) Encode(e *jx.Encoder)
- func (s *GetProjectIsFundedByIsAwardedBy) GetName() string
- func (s *GetProjectIsFundedByIsAwardedBy) GetType() string
- func (s *GetProjectIsFundedByIsAwardedBy) MarshalJSON() ([]byte, error)
- func (s *GetProjectIsFundedByIsAwardedBy) SetName(val string)
- func (s *GetProjectIsFundedByIsAwardedBy) SetType(val string)
- func (s *GetProjectIsFundedByIsAwardedBy) UnmarshalJSON(data []byte) error
- type GetProjectNameItem
- func (s *GetProjectNameItem) Decode(d *jx.Decoder) error
- func (s *GetProjectNameItem) Encode(e *jx.Encoder)
- func (s *GetProjectNameItem) GetLanguage() string
- func (s *GetProjectNameItem) GetValue() string
- func (s *GetProjectNameItem) MarshalJSON() ([]byte, error)
- func (s *GetProjectNameItem) SetLanguage(val string)
- func (s *GetProjectNameItem) SetValue(val string)
- func (s *GetProjectNameItem) UnmarshalJSON(data []byte) error
- type GetProjectRequest
- func (s *GetProjectRequest) Decode(d *jx.Decoder) error
- func (s *GetProjectRequest) Encode(e *jx.Encoder)
- func (s *GetProjectRequest) GetID() string
- func (s *GetProjectRequest) MarshalJSON() ([]byte, error)
- func (s *GetProjectRequest) SetID(val string)
- func (s *GetProjectRequest) UnmarshalJSON(data []byte) error
- func (s *GetProjectRequest) Validate() error
- type GetProjectRes
- type Handler
- type Invoker
- type Middleware
- type OptAddProjectIsFundedBy
- func (o *OptAddProjectIsFundedBy) Decode(d *jx.Decoder) error
- func (o OptAddProjectIsFundedBy) Encode(e *jx.Encoder)
- func (o OptAddProjectIsFundedBy) Get() (v AddProjectIsFundedBy, ok bool)
- func (o OptAddProjectIsFundedBy) IsSet() bool
- func (s OptAddProjectIsFundedBy) MarshalJSON() ([]byte, error)
- func (o OptAddProjectIsFundedBy) Or(d AddProjectIsFundedBy) AddProjectIsFundedBy
- func (o *OptAddProjectIsFundedBy) Reset()
- func (o *OptAddProjectIsFundedBy) SetTo(v AddProjectIsFundedBy)
- func (s *OptAddProjectIsFundedBy) UnmarshalJSON(data []byte) error
- type OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptGetProjectIsFundedBy
- func (o *OptGetProjectIsFundedBy) Decode(d *jx.Decoder) error
- func (o OptGetProjectIsFundedBy) Encode(e *jx.Encoder)
- func (o OptGetProjectIsFundedBy) Get() (v GetProjectIsFundedBy, ok bool)
- func (o OptGetProjectIsFundedBy) IsSet() bool
- func (s OptGetProjectIsFundedBy) MarshalJSON() ([]byte, error)
- func (o OptGetProjectIsFundedBy) Or(d GetProjectIsFundedBy) GetProjectIsFundedBy
- func (o *OptGetProjectIsFundedBy) Reset()
- func (o *OptGetProjectIsFundedBy) SetTo(v GetProjectIsFundedBy)
- func (s *OptGetProjectIsFundedBy) UnmarshalJSON(data []byte) error
- type OptNilAddProjectIsFundedByIsAwardedBy
- func (o *OptNilAddProjectIsFundedByIsAwardedBy) Decode(d *jx.Decoder) error
- func (o OptNilAddProjectIsFundedByIsAwardedBy) Encode(e *jx.Encoder)
- func (o OptNilAddProjectIsFundedByIsAwardedBy) Get() (v AddProjectIsFundedByIsAwardedBy, ok bool)
- func (o OptNilAddProjectIsFundedByIsAwardedBy) IsNull() bool
- func (o OptNilAddProjectIsFundedByIsAwardedBy) IsSet() bool
- func (s OptNilAddProjectIsFundedByIsAwardedBy) MarshalJSON() ([]byte, error)
- func (o OptNilAddProjectIsFundedByIsAwardedBy) Or(d AddProjectIsFundedByIsAwardedBy) AddProjectIsFundedByIsAwardedBy
- func (o *OptNilAddProjectIsFundedByIsAwardedBy) Reset()
- func (o *OptNilAddProjectIsFundedByIsAwardedBy) SetTo(v AddProjectIsFundedByIsAwardedBy)
- func (o *OptNilAddProjectIsFundedByIsAwardedBy) SetToNull()
- func (s *OptNilAddProjectIsFundedByIsAwardedBy) UnmarshalJSON(data []byte) error
- type OptNilGetProjectIsFundedByIsAwardedBy
- func (o *OptNilGetProjectIsFundedByIsAwardedBy) Decode(d *jx.Decoder) error
- func (o OptNilGetProjectIsFundedByIsAwardedBy) Encode(e *jx.Encoder)
- func (o OptNilGetProjectIsFundedByIsAwardedBy) Get() (v GetProjectIsFundedByIsAwardedBy, ok bool)
- func (o OptNilGetProjectIsFundedByIsAwardedBy) IsNull() bool
- func (o OptNilGetProjectIsFundedByIsAwardedBy) IsSet() bool
- func (s OptNilGetProjectIsFundedByIsAwardedBy) MarshalJSON() ([]byte, error)
- func (o OptNilGetProjectIsFundedByIsAwardedBy) Or(d GetProjectIsFundedByIsAwardedBy) GetProjectIsFundedByIsAwardedBy
- func (o *OptNilGetProjectIsFundedByIsAwardedBy) Reset()
- func (o *OptNilGetProjectIsFundedByIsAwardedBy) SetTo(v GetProjectIsFundedByIsAwardedBy)
- func (o *OptNilGetProjectIsFundedByIsAwardedBy) SetToNull()
- func (s *OptNilGetProjectIsFundedByIsAwardedBy) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type SecurityHandler
- type SecuritySource
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type Service
- func (s *Service) AddProject(ctx context.Context, req *AddProject) error
- func (s *Service) DeleteProject(ctx context.Context, req *DeleteProjectRequest) error
- func (s *Service) GetProject(ctx context.Context, req *GetProjectRequest) (GetProjectRes, error)
- func (s *Service) NewError(ctx context.Context, err error) *ErrorStatusCode
- func (s *Service) SuggestProjects(ctx context.Context, req *SuggestProjectsRequest) (*SuggestProjectsResponse, error)
- type SuggestProjectsRequest
- func (s *SuggestProjectsRequest) Decode(d *jx.Decoder) error
- func (s *SuggestProjectsRequest) Encode(e *jx.Encoder)
- func (s *SuggestProjectsRequest) GetQuery() string
- func (s *SuggestProjectsRequest) MarshalJSON() ([]byte, error)
- func (s *SuggestProjectsRequest) SetQuery(val string)
- func (s *SuggestProjectsRequest) UnmarshalJSON(data []byte) error
- func (s *SuggestProjectsRequest) Validate() error
- type SuggestProjectsResponse
- func (s *SuggestProjectsResponse) Decode(d *jx.Decoder) error
- func (s *SuggestProjectsResponse) Encode(e *jx.Encoder)
- func (s *SuggestProjectsResponse) GetCursor() OptString
- func (s *SuggestProjectsResponse) GetData() []GetProject
- func (s *SuggestProjectsResponse) MarshalJSON() ([]byte, error)
- func (s *SuggestProjectsResponse) SetCursor(val OptString)
- func (s *SuggestProjectsResponse) SetData(val []GetProject)
- func (s *SuggestProjectsResponse) UnmarshalJSON(data []byte) error
- func (s *SuggestProjectsResponse) Validate() error
- type UnimplementedHandler
- func (UnimplementedHandler) AddProject(ctx context.Context, req *AddProject) error
- func (UnimplementedHandler) DeleteProject(ctx context.Context, req *DeleteProjectRequest) error
- func (UnimplementedHandler) GetProject(ctx context.Context, req *GetProjectRequest) (r GetProjectRes, _ error)
- func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
- func (UnimplementedHandler) SuggestProjects(ctx context.Context, req *SuggestProjectsRequest) (r *SuggestProjectsResponse, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddProject ¶
type AddProject struct { ID OptString `json:"id"` Created OptDateTime `json:"created"` Modified OptDateTime `json:"modified"` Type string `json:"type"` Identifier []AddProjectIdentifierItem `json:"identifier"` IsFundedBy OptAddProjectIsFundedBy `json:"isFundedBy"` HasAcronym []string `json:"hasAcronym"` Name []AddProjectNameItem `json:"name"` Description []AddProjectDescriptionItem `json:"description"` FoundingDate OptString `json:"foundingDate"` DissolutionDate OptString `json:"dissolutionDate"` }
Merged schema. Ref: #/components/schemas/AddProject
func (*AddProject) Decode ¶
func (s *AddProject) Decode(d *jx.Decoder) error
Decode decodes AddProject from json.
func (*AddProject) Encode ¶
func (s *AddProject) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddProject) GetCreated ¶
func (s *AddProject) GetCreated() OptDateTime
GetCreated returns the value of Created.
func (*AddProject) GetDescription ¶
func (s *AddProject) GetDescription() []AddProjectDescriptionItem
GetDescription returns the value of Description.
func (*AddProject) GetDissolutionDate ¶
func (s *AddProject) GetDissolutionDate() OptString
GetDissolutionDate returns the value of DissolutionDate.
func (*AddProject) GetFoundingDate ¶
func (s *AddProject) GetFoundingDate() OptString
GetFoundingDate returns the value of FoundingDate.
func (*AddProject) GetHasAcronym ¶
func (s *AddProject) GetHasAcronym() []string
GetHasAcronym returns the value of HasAcronym.
func (*AddProject) GetIdentifier ¶
func (s *AddProject) GetIdentifier() []AddProjectIdentifierItem
GetIdentifier returns the value of Identifier.
func (*AddProject) GetIsFundedBy ¶
func (s *AddProject) GetIsFundedBy() OptAddProjectIsFundedBy
GetIsFundedBy returns the value of IsFundedBy.
func (*AddProject) GetModified ¶
func (s *AddProject) GetModified() OptDateTime
GetModified returns the value of Modified.
func (*AddProject) GetName ¶
func (s *AddProject) GetName() []AddProjectNameItem
GetName returns the value of Name.
func (*AddProject) GetType ¶
func (s *AddProject) GetType() string
GetType returns the value of Type.
func (*AddProject) MarshalJSON ¶
func (s *AddProject) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddProject) SetCreated ¶
func (s *AddProject) SetCreated(val OptDateTime)
SetCreated sets the value of Created.
func (*AddProject) SetDescription ¶
func (s *AddProject) SetDescription(val []AddProjectDescriptionItem)
SetDescription sets the value of Description.
func (*AddProject) SetDissolutionDate ¶
func (s *AddProject) SetDissolutionDate(val OptString)
SetDissolutionDate sets the value of DissolutionDate.
func (*AddProject) SetFoundingDate ¶
func (s *AddProject) SetFoundingDate(val OptString)
SetFoundingDate sets the value of FoundingDate.
func (*AddProject) SetHasAcronym ¶
func (s *AddProject) SetHasAcronym(val []string)
SetHasAcronym sets the value of HasAcronym.
func (*AddProject) SetIdentifier ¶
func (s *AddProject) SetIdentifier(val []AddProjectIdentifierItem)
SetIdentifier sets the value of Identifier.
func (*AddProject) SetIsFundedBy ¶
func (s *AddProject) SetIsFundedBy(val OptAddProjectIsFundedBy)
SetIsFundedBy sets the value of IsFundedBy.
func (*AddProject) SetModified ¶
func (s *AddProject) SetModified(val OptDateTime)
SetModified sets the value of Modified.
func (*AddProject) SetName ¶
func (s *AddProject) SetName(val []AddProjectNameItem)
SetName sets the value of Name.
func (*AddProject) SetType ¶
func (s *AddProject) SetType(val string)
SetType sets the value of Type.
func (*AddProject) UnmarshalJSON ¶
func (s *AddProject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddProject) Validate ¶
func (s *AddProject) Validate() error
type AddProjectDescriptionItem ¶
type AddProjectDescriptionItem struct { Language string `json:"language"` Value string `json:"value"` }
func (*AddProjectDescriptionItem) Decode ¶
func (s *AddProjectDescriptionItem) Decode(d *jx.Decoder) error
Decode decodes AddProjectDescriptionItem from json.
func (*AddProjectDescriptionItem) Encode ¶
func (s *AddProjectDescriptionItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddProjectDescriptionItem) GetLanguage ¶
func (s *AddProjectDescriptionItem) GetLanguage() string
GetLanguage returns the value of Language.
func (*AddProjectDescriptionItem) GetValue ¶
func (s *AddProjectDescriptionItem) GetValue() string
GetValue returns the value of Value.
func (*AddProjectDescriptionItem) MarshalJSON ¶
func (s *AddProjectDescriptionItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddProjectDescriptionItem) SetLanguage ¶
func (s *AddProjectDescriptionItem) SetLanguage(val string)
SetLanguage sets the value of Language.
func (*AddProjectDescriptionItem) SetValue ¶
func (s *AddProjectDescriptionItem) SetValue(val string)
SetValue sets the value of Value.
func (*AddProjectDescriptionItem) UnmarshalJSON ¶
func (s *AddProjectDescriptionItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AddProjectIdentifierItem ¶
type AddProjectIdentifierItem struct { Type string `json:"type"` PropertyID string `json:"propertyID"` Value string `json:"value"` }
func (*AddProjectIdentifierItem) Decode ¶
func (s *AddProjectIdentifierItem) Decode(d *jx.Decoder) error
Decode decodes AddProjectIdentifierItem from json.
func (*AddProjectIdentifierItem) Encode ¶
func (s *AddProjectIdentifierItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddProjectIdentifierItem) GetPropertyID ¶
func (s *AddProjectIdentifierItem) GetPropertyID() string
GetPropertyID returns the value of PropertyID.
func (*AddProjectIdentifierItem) GetType ¶
func (s *AddProjectIdentifierItem) GetType() string
GetType returns the value of Type.
func (*AddProjectIdentifierItem) GetValue ¶
func (s *AddProjectIdentifierItem) GetValue() string
GetValue returns the value of Value.
func (*AddProjectIdentifierItem) MarshalJSON ¶
func (s *AddProjectIdentifierItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddProjectIdentifierItem) SetPropertyID ¶
func (s *AddProjectIdentifierItem) SetPropertyID(val string)
SetPropertyID sets the value of PropertyID.
func (*AddProjectIdentifierItem) SetType ¶
func (s *AddProjectIdentifierItem) SetType(val string)
SetType sets the value of Type.
func (*AddProjectIdentifierItem) SetValue ¶
func (s *AddProjectIdentifierItem) SetValue(val string)
SetValue sets the value of Value.
func (*AddProjectIdentifierItem) UnmarshalJSON ¶
func (s *AddProjectIdentifierItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AddProjectIsFundedBy ¶
type AddProjectIsFundedBy struct { Type string `json:"type"` HasCallNumber OptString `json:"hasCallNumber"` IsAwardedBy OptNilAddProjectIsFundedByIsAwardedBy `json:"isAwardedBy"` }
func (*AddProjectIsFundedBy) Decode ¶
func (s *AddProjectIsFundedBy) Decode(d *jx.Decoder) error
Decode decodes AddProjectIsFundedBy from json.
func (*AddProjectIsFundedBy) Encode ¶
func (s *AddProjectIsFundedBy) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddProjectIsFundedBy) GetHasCallNumber ¶
func (s *AddProjectIsFundedBy) GetHasCallNumber() OptString
GetHasCallNumber returns the value of HasCallNumber.
func (*AddProjectIsFundedBy) GetIsAwardedBy ¶
func (s *AddProjectIsFundedBy) GetIsAwardedBy() OptNilAddProjectIsFundedByIsAwardedBy
GetIsAwardedBy returns the value of IsAwardedBy.
func (*AddProjectIsFundedBy) GetType ¶
func (s *AddProjectIsFundedBy) GetType() string
GetType returns the value of Type.
func (*AddProjectIsFundedBy) MarshalJSON ¶
func (s *AddProjectIsFundedBy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddProjectIsFundedBy) SetHasCallNumber ¶
func (s *AddProjectIsFundedBy) SetHasCallNumber(val OptString)
SetHasCallNumber sets the value of HasCallNumber.
func (*AddProjectIsFundedBy) SetIsAwardedBy ¶
func (s *AddProjectIsFundedBy) SetIsAwardedBy(val OptNilAddProjectIsFundedByIsAwardedBy)
SetIsAwardedBy sets the value of IsAwardedBy.
func (*AddProjectIsFundedBy) SetType ¶
func (s *AddProjectIsFundedBy) SetType(val string)
SetType sets the value of Type.
func (*AddProjectIsFundedBy) UnmarshalJSON ¶
func (s *AddProjectIsFundedBy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AddProjectIsFundedByIsAwardedBy ¶
func (*AddProjectIsFundedByIsAwardedBy) Decode ¶
func (s *AddProjectIsFundedByIsAwardedBy) Decode(d *jx.Decoder) error
Decode decodes AddProjectIsFundedByIsAwardedBy from json.
func (*AddProjectIsFundedByIsAwardedBy) Encode ¶
func (s *AddProjectIsFundedByIsAwardedBy) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddProjectIsFundedByIsAwardedBy) GetName ¶
func (s *AddProjectIsFundedByIsAwardedBy) GetName() string
GetName returns the value of Name.
func (*AddProjectIsFundedByIsAwardedBy) GetType ¶
func (s *AddProjectIsFundedByIsAwardedBy) GetType() string
GetType returns the value of Type.
func (*AddProjectIsFundedByIsAwardedBy) MarshalJSON ¶
func (s *AddProjectIsFundedByIsAwardedBy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddProjectIsFundedByIsAwardedBy) SetName ¶
func (s *AddProjectIsFundedByIsAwardedBy) SetName(val string)
SetName sets the value of Name.
func (*AddProjectIsFundedByIsAwardedBy) SetType ¶
func (s *AddProjectIsFundedByIsAwardedBy) SetType(val string)
SetType sets the value of Type.
func (*AddProjectIsFundedByIsAwardedBy) UnmarshalJSON ¶
func (s *AddProjectIsFundedByIsAwardedBy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AddProjectNameItem ¶
func (*AddProjectNameItem) Decode ¶
func (s *AddProjectNameItem) Decode(d *jx.Decoder) error
Decode decodes AddProjectNameItem from json.
func (*AddProjectNameItem) Encode ¶
func (s *AddProjectNameItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddProjectNameItem) GetLanguage ¶
func (s *AddProjectNameItem) GetLanguage() string
GetLanguage returns the value of Language.
func (*AddProjectNameItem) GetValue ¶
func (s *AddProjectNameItem) GetValue() string
GetValue returns the value of Value.
func (*AddProjectNameItem) MarshalJSON ¶
func (s *AddProjectNameItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddProjectNameItem) SetLanguage ¶
func (s *AddProjectNameItem) SetLanguage(val string)
SetLanguage sets the value of Language.
func (*AddProjectNameItem) SetValue ¶
func (s *AddProjectNameItem) SetValue(val string)
SetValue sets the value of Value.
func (*AddProjectNameItem) UnmarshalJSON ¶
func (s *AddProjectNameItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ApiKey ¶
type ApiKey struct {
APIKey string
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) AddProject ¶
func (c *Client) AddProject(ctx context.Context, request *AddProject) error
AddProject invokes addProject operation.
Add a single project.
POST /add-project
func (*Client) DeleteProject ¶
func (c *Client) DeleteProject(ctx context.Context, request *DeleteProjectRequest) error
DeleteProject invokes deleteProject operation.
Delete a project.
POST /delete-project
func (*Client) GetProject ¶
func (c *Client) GetProject(ctx context.Context, request *GetProjectRequest) (GetProjectRes, error)
GetProject invokes getProject operation.
Get a project.
POST /get-project
func (*Client) SuggestProjects ¶
func (c *Client) SuggestProjects(ctx context.Context, request *SuggestProjectsRequest) (*SuggestProjectsResponse, error)
SuggestProjects invokes suggestProjects operation.
Search in projects.
POST /suggest-projects
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type DeleteProjectOK ¶
type DeleteProjectOK struct{}
DeleteProjectOK is response for DeleteProject operation.
type DeleteProjectRequest ¶
type DeleteProjectRequest struct {
ID string `json:"id"`
}
Ref: #/components/schemas/DeleteProjectRequest
func (*DeleteProjectRequest) Decode ¶
func (s *DeleteProjectRequest) Decode(d *jx.Decoder) error
Decode decodes DeleteProjectRequest from json.
func (*DeleteProjectRequest) Encode ¶
func (s *DeleteProjectRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteProjectRequest) GetID ¶
func (s *DeleteProjectRequest) GetID() string
GetID returns the value of ID.
func (*DeleteProjectRequest) MarshalJSON ¶
func (s *DeleteProjectRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteProjectRequest) SetID ¶
func (s *DeleteProjectRequest) SetID(val string)
SetID sets the value of ID.
func (*DeleteProjectRequest) UnmarshalJSON ¶
func (s *DeleteProjectRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*DeleteProjectRequest) Validate ¶
func (s *DeleteProjectRequest) Validate() error
type Error ¶
Ref: #/components/schemas/Error
func (*Error) GetMessage ¶
GetMessage returns the value of Message.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetMessage ¶
SetMessage sets the value of Message.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
func (*ErrorStatusCode) GetResponse ¶
func (s *ErrorStatusCode) GetResponse() Error
GetResponse returns the value of Response.
func (*ErrorStatusCode) GetStatusCode ¶
func (s *ErrorStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*ErrorStatusCode) SetResponse ¶
func (s *ErrorStatusCode) SetResponse(val Error)
SetResponse sets the value of Response.
func (*ErrorStatusCode) SetStatusCode ¶
func (s *ErrorStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type GetProject ¶
type GetProject struct { ID string `json:"id"` Created time.Time `json:"created"` Modified time.Time `json:"modified"` Type string `json:"type"` Identifier []GetProjectIdentifierItem `json:"identifier"` IsFundedBy OptGetProjectIsFundedBy `json:"isFundedBy"` HasAcronym []string `json:"hasAcronym"` Name []GetProjectNameItem `json:"name"` Description []GetProjectDescriptionItem `json:"description"` FoundingDate OptString `json:"foundingDate"` DissolutionDate OptString `json:"dissolutionDate"` }
Merged schema. Ref: #/components/schemas/GetProject
func (*GetProject) Decode ¶
func (s *GetProject) Decode(d *jx.Decoder) error
Decode decodes GetProject from json.
func (*GetProject) Encode ¶
func (s *GetProject) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetProject) GetCreated ¶
func (s *GetProject) GetCreated() time.Time
GetCreated returns the value of Created.
func (*GetProject) GetDescription ¶
func (s *GetProject) GetDescription() []GetProjectDescriptionItem
GetDescription returns the value of Description.
func (*GetProject) GetDissolutionDate ¶
func (s *GetProject) GetDissolutionDate() OptString
GetDissolutionDate returns the value of DissolutionDate.
func (*GetProject) GetFoundingDate ¶
func (s *GetProject) GetFoundingDate() OptString
GetFoundingDate returns the value of FoundingDate.
func (*GetProject) GetHasAcronym ¶
func (s *GetProject) GetHasAcronym() []string
GetHasAcronym returns the value of HasAcronym.
func (*GetProject) GetIdentifier ¶
func (s *GetProject) GetIdentifier() []GetProjectIdentifierItem
GetIdentifier returns the value of Identifier.
func (*GetProject) GetIsFundedBy ¶
func (s *GetProject) GetIsFundedBy() OptGetProjectIsFundedBy
GetIsFundedBy returns the value of IsFundedBy.
func (*GetProject) GetModified ¶
func (s *GetProject) GetModified() time.Time
GetModified returns the value of Modified.
func (*GetProject) GetName ¶
func (s *GetProject) GetName() []GetProjectNameItem
GetName returns the value of Name.
func (*GetProject) GetType ¶
func (s *GetProject) GetType() string
GetType returns the value of Type.
func (*GetProject) MarshalJSON ¶
func (s *GetProject) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProject) SetCreated ¶
func (s *GetProject) SetCreated(val time.Time)
SetCreated sets the value of Created.
func (*GetProject) SetDescription ¶
func (s *GetProject) SetDescription(val []GetProjectDescriptionItem)
SetDescription sets the value of Description.
func (*GetProject) SetDissolutionDate ¶
func (s *GetProject) SetDissolutionDate(val OptString)
SetDissolutionDate sets the value of DissolutionDate.
func (*GetProject) SetFoundingDate ¶
func (s *GetProject) SetFoundingDate(val OptString)
SetFoundingDate sets the value of FoundingDate.
func (*GetProject) SetHasAcronym ¶
func (s *GetProject) SetHasAcronym(val []string)
SetHasAcronym sets the value of HasAcronym.
func (*GetProject) SetIdentifier ¶
func (s *GetProject) SetIdentifier(val []GetProjectIdentifierItem)
SetIdentifier sets the value of Identifier.
func (*GetProject) SetIsFundedBy ¶
func (s *GetProject) SetIsFundedBy(val OptGetProjectIsFundedBy)
SetIsFundedBy sets the value of IsFundedBy.
func (*GetProject) SetModified ¶
func (s *GetProject) SetModified(val time.Time)
SetModified sets the value of Modified.
func (*GetProject) SetName ¶
func (s *GetProject) SetName(val []GetProjectNameItem)
SetName sets the value of Name.
func (*GetProject) SetType ¶
func (s *GetProject) SetType(val string)
SetType sets the value of Type.
func (*GetProject) UnmarshalJSON ¶
func (s *GetProject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GetProject) Validate ¶
func (s *GetProject) Validate() error
type GetProjectDescriptionItem ¶
type GetProjectDescriptionItem struct { Language string `json:"language"` Value string `json:"value"` }
func (*GetProjectDescriptionItem) Decode ¶
func (s *GetProjectDescriptionItem) Decode(d *jx.Decoder) error
Decode decodes GetProjectDescriptionItem from json.
func (*GetProjectDescriptionItem) Encode ¶
func (s *GetProjectDescriptionItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetProjectDescriptionItem) GetLanguage ¶
func (s *GetProjectDescriptionItem) GetLanguage() string
GetLanguage returns the value of Language.
func (*GetProjectDescriptionItem) GetValue ¶
func (s *GetProjectDescriptionItem) GetValue() string
GetValue returns the value of Value.
func (*GetProjectDescriptionItem) MarshalJSON ¶
func (s *GetProjectDescriptionItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProjectDescriptionItem) SetLanguage ¶
func (s *GetProjectDescriptionItem) SetLanguage(val string)
SetLanguage sets the value of Language.
func (*GetProjectDescriptionItem) SetValue ¶
func (s *GetProjectDescriptionItem) SetValue(val string)
SetValue sets the value of Value.
func (*GetProjectDescriptionItem) UnmarshalJSON ¶
func (s *GetProjectDescriptionItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetProjectIdentifierItem ¶
type GetProjectIdentifierItem struct { Type string `json:"type"` PropertyID string `json:"propertyID"` Value string `json:"value"` }
func (*GetProjectIdentifierItem) Decode ¶
func (s *GetProjectIdentifierItem) Decode(d *jx.Decoder) error
Decode decodes GetProjectIdentifierItem from json.
func (*GetProjectIdentifierItem) Encode ¶
func (s *GetProjectIdentifierItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetProjectIdentifierItem) GetPropertyID ¶
func (s *GetProjectIdentifierItem) GetPropertyID() string
GetPropertyID returns the value of PropertyID.
func (*GetProjectIdentifierItem) GetType ¶
func (s *GetProjectIdentifierItem) GetType() string
GetType returns the value of Type.
func (*GetProjectIdentifierItem) GetValue ¶
func (s *GetProjectIdentifierItem) GetValue() string
GetValue returns the value of Value.
func (*GetProjectIdentifierItem) MarshalJSON ¶
func (s *GetProjectIdentifierItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProjectIdentifierItem) SetPropertyID ¶
func (s *GetProjectIdentifierItem) SetPropertyID(val string)
SetPropertyID sets the value of PropertyID.
func (*GetProjectIdentifierItem) SetType ¶
func (s *GetProjectIdentifierItem) SetType(val string)
SetType sets the value of Type.
func (*GetProjectIdentifierItem) SetValue ¶
func (s *GetProjectIdentifierItem) SetValue(val string)
SetValue sets the value of Value.
func (*GetProjectIdentifierItem) UnmarshalJSON ¶
func (s *GetProjectIdentifierItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetProjectIsFundedBy ¶
type GetProjectIsFundedBy struct { Type string `json:"type"` HasCallNumber OptString `json:"hasCallNumber"` IsAwardedBy OptNilGetProjectIsFundedByIsAwardedBy `json:"isAwardedBy"` }
func (*GetProjectIsFundedBy) Decode ¶
func (s *GetProjectIsFundedBy) Decode(d *jx.Decoder) error
Decode decodes GetProjectIsFundedBy from json.
func (*GetProjectIsFundedBy) Encode ¶
func (s *GetProjectIsFundedBy) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetProjectIsFundedBy) GetHasCallNumber ¶
func (s *GetProjectIsFundedBy) GetHasCallNumber() OptString
GetHasCallNumber returns the value of HasCallNumber.
func (*GetProjectIsFundedBy) GetIsAwardedBy ¶
func (s *GetProjectIsFundedBy) GetIsAwardedBy() OptNilGetProjectIsFundedByIsAwardedBy
GetIsAwardedBy returns the value of IsAwardedBy.
func (*GetProjectIsFundedBy) GetType ¶
func (s *GetProjectIsFundedBy) GetType() string
GetType returns the value of Type.
func (*GetProjectIsFundedBy) MarshalJSON ¶
func (s *GetProjectIsFundedBy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProjectIsFundedBy) SetHasCallNumber ¶
func (s *GetProjectIsFundedBy) SetHasCallNumber(val OptString)
SetHasCallNumber sets the value of HasCallNumber.
func (*GetProjectIsFundedBy) SetIsAwardedBy ¶
func (s *GetProjectIsFundedBy) SetIsAwardedBy(val OptNilGetProjectIsFundedByIsAwardedBy)
SetIsAwardedBy sets the value of IsAwardedBy.
func (*GetProjectIsFundedBy) SetType ¶
func (s *GetProjectIsFundedBy) SetType(val string)
SetType sets the value of Type.
func (*GetProjectIsFundedBy) UnmarshalJSON ¶
func (s *GetProjectIsFundedBy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetProjectIsFundedByIsAwardedBy ¶
func (*GetProjectIsFundedByIsAwardedBy) Decode ¶
func (s *GetProjectIsFundedByIsAwardedBy) Decode(d *jx.Decoder) error
Decode decodes GetProjectIsFundedByIsAwardedBy from json.
func (*GetProjectIsFundedByIsAwardedBy) Encode ¶
func (s *GetProjectIsFundedByIsAwardedBy) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetProjectIsFundedByIsAwardedBy) GetName ¶
func (s *GetProjectIsFundedByIsAwardedBy) GetName() string
GetName returns the value of Name.
func (*GetProjectIsFundedByIsAwardedBy) GetType ¶
func (s *GetProjectIsFundedByIsAwardedBy) GetType() string
GetType returns the value of Type.
func (*GetProjectIsFundedByIsAwardedBy) MarshalJSON ¶
func (s *GetProjectIsFundedByIsAwardedBy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProjectIsFundedByIsAwardedBy) SetName ¶
func (s *GetProjectIsFundedByIsAwardedBy) SetName(val string)
SetName sets the value of Name.
func (*GetProjectIsFundedByIsAwardedBy) SetType ¶
func (s *GetProjectIsFundedByIsAwardedBy) SetType(val string)
SetType sets the value of Type.
func (*GetProjectIsFundedByIsAwardedBy) UnmarshalJSON ¶
func (s *GetProjectIsFundedByIsAwardedBy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetProjectNameItem ¶
func (*GetProjectNameItem) Decode ¶
func (s *GetProjectNameItem) Decode(d *jx.Decoder) error
Decode decodes GetProjectNameItem from json.
func (*GetProjectNameItem) Encode ¶
func (s *GetProjectNameItem) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetProjectNameItem) GetLanguage ¶
func (s *GetProjectNameItem) GetLanguage() string
GetLanguage returns the value of Language.
func (*GetProjectNameItem) GetValue ¶
func (s *GetProjectNameItem) GetValue() string
GetValue returns the value of Value.
func (*GetProjectNameItem) MarshalJSON ¶
func (s *GetProjectNameItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProjectNameItem) SetLanguage ¶
func (s *GetProjectNameItem) SetLanguage(val string)
SetLanguage sets the value of Language.
func (*GetProjectNameItem) SetValue ¶
func (s *GetProjectNameItem) SetValue(val string)
SetValue sets the value of Value.
func (*GetProjectNameItem) UnmarshalJSON ¶
func (s *GetProjectNameItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetProjectRequest ¶
type GetProjectRequest struct {
ID string `json:"id"`
}
Ref: #/components/schemas/GetProjectRequest
func (*GetProjectRequest) Decode ¶
func (s *GetProjectRequest) Decode(d *jx.Decoder) error
Decode decodes GetProjectRequest from json.
func (*GetProjectRequest) Encode ¶
func (s *GetProjectRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetProjectRequest) GetID ¶
func (s *GetProjectRequest) GetID() string
GetID returns the value of ID.
func (*GetProjectRequest) MarshalJSON ¶
func (s *GetProjectRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProjectRequest) SetID ¶
func (s *GetProjectRequest) SetID(val string)
SetID sets the value of ID.
func (*GetProjectRequest) UnmarshalJSON ¶
func (s *GetProjectRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GetProjectRequest) Validate ¶
func (s *GetProjectRequest) Validate() error
type GetProjectRes ¶
type GetProjectRes interface {
// contains filtered or unexported methods
}
type Handler ¶
type Handler interface { // AddProject implements addProject operation. // // Add a single project. // // POST /add-project AddProject(ctx context.Context, req *AddProject) error // DeleteProject implements deleteProject operation. // // Delete a project. // // POST /delete-project DeleteProject(ctx context.Context, req *DeleteProjectRequest) error // GetProject implements getProject operation. // // Get a project. // // POST /get-project GetProject(ctx context.Context, req *GetProjectRequest) (GetProjectRes, error) // SuggestProjects implements suggestProjects operation. // // Search in projects. // // POST /suggest-projects SuggestProjects(ctx context.Context, req *SuggestProjectsRequest) (*SuggestProjectsResponse, error) // NewError creates *ErrorStatusCode from error returned by handler. // // Used for common default response. NewError(ctx context.Context, err error) *ErrorStatusCode }
Handler handles operations described by OpenAPI v3 specification.
type Invoker ¶
type Invoker interface { // AddProject invokes addProject operation. // // Add a single project. // // POST /add-project AddProject(ctx context.Context, request *AddProject) error // DeleteProject invokes deleteProject operation. // // Delete a project. // // POST /delete-project DeleteProject(ctx context.Context, request *DeleteProjectRequest) error // GetProject invokes getProject operation. // // Get a project. // // POST /get-project GetProject(ctx context.Context, request *GetProjectRequest) (GetProjectRes, error) // SuggestProjects invokes suggestProjects operation. // // Search in projects. // // POST /suggest-projects SuggestProjects(ctx context.Context, request *SuggestProjectsRequest) (*SuggestProjectsResponse, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type OptAddProjectIsFundedBy ¶
type OptAddProjectIsFundedBy struct { Value AddProjectIsFundedBy Set bool }
OptAddProjectIsFundedBy is optional AddProjectIsFundedBy.
func NewOptAddProjectIsFundedBy ¶
func NewOptAddProjectIsFundedBy(v AddProjectIsFundedBy) OptAddProjectIsFundedBy
NewOptAddProjectIsFundedBy returns new OptAddProjectIsFundedBy with value set to v.
func (*OptAddProjectIsFundedBy) Decode ¶
func (o *OptAddProjectIsFundedBy) Decode(d *jx.Decoder) error
Decode decodes AddProjectIsFundedBy from json.
func (OptAddProjectIsFundedBy) Encode ¶
func (o OptAddProjectIsFundedBy) Encode(e *jx.Encoder)
Encode encodes AddProjectIsFundedBy as json.
func (OptAddProjectIsFundedBy) Get ¶
func (o OptAddProjectIsFundedBy) Get() (v AddProjectIsFundedBy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAddProjectIsFundedBy) IsSet ¶
func (o OptAddProjectIsFundedBy) IsSet() bool
IsSet returns true if OptAddProjectIsFundedBy was set.
func (OptAddProjectIsFundedBy) MarshalJSON ¶
func (s OptAddProjectIsFundedBy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptAddProjectIsFundedBy) Or ¶
func (o OptAddProjectIsFundedBy) Or(d AddProjectIsFundedBy) AddProjectIsFundedBy
Or returns value if set, or given parameter if does not.
func (*OptAddProjectIsFundedBy) Reset ¶
func (o *OptAddProjectIsFundedBy) Reset()
Reset unsets value.
func (*OptAddProjectIsFundedBy) SetTo ¶
func (o *OptAddProjectIsFundedBy) SetTo(v AddProjectIsFundedBy)
SetTo sets value to v.
func (*OptAddProjectIsFundedBy) UnmarshalJSON ¶
func (s *OptAddProjectIsFundedBy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
func (OptDateTime) Get ¶
func (o OptDateTime) Get() (v time.Time, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDateTime) IsSet ¶
func (o OptDateTime) IsSet() bool
IsSet returns true if OptDateTime was set.
func (OptDateTime) MarshalJSON ¶
func (s OptDateTime) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDateTime) Or ¶
func (o OptDateTime) Or(d time.Time) time.Time
Or returns value if set, or given parameter if does not.
func (*OptDateTime) UnmarshalJSON ¶
func (s *OptDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptGetProjectIsFundedBy ¶
type OptGetProjectIsFundedBy struct { Value GetProjectIsFundedBy Set bool }
OptGetProjectIsFundedBy is optional GetProjectIsFundedBy.
func NewOptGetProjectIsFundedBy ¶
func NewOptGetProjectIsFundedBy(v GetProjectIsFundedBy) OptGetProjectIsFundedBy
NewOptGetProjectIsFundedBy returns new OptGetProjectIsFundedBy with value set to v.
func (*OptGetProjectIsFundedBy) Decode ¶
func (o *OptGetProjectIsFundedBy) Decode(d *jx.Decoder) error
Decode decodes GetProjectIsFundedBy from json.
func (OptGetProjectIsFundedBy) Encode ¶
func (o OptGetProjectIsFundedBy) Encode(e *jx.Encoder)
Encode encodes GetProjectIsFundedBy as json.
func (OptGetProjectIsFundedBy) Get ¶
func (o OptGetProjectIsFundedBy) Get() (v GetProjectIsFundedBy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetProjectIsFundedBy) IsSet ¶
func (o OptGetProjectIsFundedBy) IsSet() bool
IsSet returns true if OptGetProjectIsFundedBy was set.
func (OptGetProjectIsFundedBy) MarshalJSON ¶
func (s OptGetProjectIsFundedBy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetProjectIsFundedBy) Or ¶
func (o OptGetProjectIsFundedBy) Or(d GetProjectIsFundedBy) GetProjectIsFundedBy
Or returns value if set, or given parameter if does not.
func (*OptGetProjectIsFundedBy) Reset ¶
func (o *OptGetProjectIsFundedBy) Reset()
Reset unsets value.
func (*OptGetProjectIsFundedBy) SetTo ¶
func (o *OptGetProjectIsFundedBy) SetTo(v GetProjectIsFundedBy)
SetTo sets value to v.
func (*OptGetProjectIsFundedBy) UnmarshalJSON ¶
func (s *OptGetProjectIsFundedBy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilAddProjectIsFundedByIsAwardedBy ¶
type OptNilAddProjectIsFundedByIsAwardedBy struct { Value AddProjectIsFundedByIsAwardedBy Set bool Null bool }
OptNilAddProjectIsFundedByIsAwardedBy is optional nullable AddProjectIsFundedByIsAwardedBy.
func NewOptNilAddProjectIsFundedByIsAwardedBy ¶
func NewOptNilAddProjectIsFundedByIsAwardedBy(v AddProjectIsFundedByIsAwardedBy) OptNilAddProjectIsFundedByIsAwardedBy
NewOptNilAddProjectIsFundedByIsAwardedBy returns new OptNilAddProjectIsFundedByIsAwardedBy with value set to v.
func (*OptNilAddProjectIsFundedByIsAwardedBy) Decode ¶
func (o *OptNilAddProjectIsFundedByIsAwardedBy) Decode(d *jx.Decoder) error
Decode decodes AddProjectIsFundedByIsAwardedBy from json.
func (OptNilAddProjectIsFundedByIsAwardedBy) Encode ¶
func (o OptNilAddProjectIsFundedByIsAwardedBy) Encode(e *jx.Encoder)
Encode encodes AddProjectIsFundedByIsAwardedBy as json.
func (OptNilAddProjectIsFundedByIsAwardedBy) Get ¶
func (o OptNilAddProjectIsFundedByIsAwardedBy) Get() (v AddProjectIsFundedByIsAwardedBy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilAddProjectIsFundedByIsAwardedBy) IsNull ¶
func (o OptNilAddProjectIsFundedByIsAwardedBy) IsNull() bool
IsSet returns true if value is Null.
func (OptNilAddProjectIsFundedByIsAwardedBy) IsSet ¶
func (o OptNilAddProjectIsFundedByIsAwardedBy) IsSet() bool
IsSet returns true if OptNilAddProjectIsFundedByIsAwardedBy was set.
func (OptNilAddProjectIsFundedByIsAwardedBy) MarshalJSON ¶
func (s OptNilAddProjectIsFundedByIsAwardedBy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilAddProjectIsFundedByIsAwardedBy) Or ¶
func (o OptNilAddProjectIsFundedByIsAwardedBy) Or(d AddProjectIsFundedByIsAwardedBy) AddProjectIsFundedByIsAwardedBy
Or returns value if set, or given parameter if does not.
func (*OptNilAddProjectIsFundedByIsAwardedBy) Reset ¶
func (o *OptNilAddProjectIsFundedByIsAwardedBy) Reset()
Reset unsets value.
func (*OptNilAddProjectIsFundedByIsAwardedBy) SetTo ¶
func (o *OptNilAddProjectIsFundedByIsAwardedBy) SetTo(v AddProjectIsFundedByIsAwardedBy)
SetTo sets value to v.
func (*OptNilAddProjectIsFundedByIsAwardedBy) SetToNull ¶
func (o *OptNilAddProjectIsFundedByIsAwardedBy) SetToNull()
SetNull sets value to null.
func (*OptNilAddProjectIsFundedByIsAwardedBy) UnmarshalJSON ¶
func (s *OptNilAddProjectIsFundedByIsAwardedBy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilGetProjectIsFundedByIsAwardedBy ¶
type OptNilGetProjectIsFundedByIsAwardedBy struct { Value GetProjectIsFundedByIsAwardedBy Set bool Null bool }
OptNilGetProjectIsFundedByIsAwardedBy is optional nullable GetProjectIsFundedByIsAwardedBy.
func NewOptNilGetProjectIsFundedByIsAwardedBy ¶
func NewOptNilGetProjectIsFundedByIsAwardedBy(v GetProjectIsFundedByIsAwardedBy) OptNilGetProjectIsFundedByIsAwardedBy
NewOptNilGetProjectIsFundedByIsAwardedBy returns new OptNilGetProjectIsFundedByIsAwardedBy with value set to v.
func (*OptNilGetProjectIsFundedByIsAwardedBy) Decode ¶
func (o *OptNilGetProjectIsFundedByIsAwardedBy) Decode(d *jx.Decoder) error
Decode decodes GetProjectIsFundedByIsAwardedBy from json.
func (OptNilGetProjectIsFundedByIsAwardedBy) Encode ¶
func (o OptNilGetProjectIsFundedByIsAwardedBy) Encode(e *jx.Encoder)
Encode encodes GetProjectIsFundedByIsAwardedBy as json.
func (OptNilGetProjectIsFundedByIsAwardedBy) Get ¶
func (o OptNilGetProjectIsFundedByIsAwardedBy) Get() (v GetProjectIsFundedByIsAwardedBy, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilGetProjectIsFundedByIsAwardedBy) IsNull ¶
func (o OptNilGetProjectIsFundedByIsAwardedBy) IsNull() bool
IsSet returns true if value is Null.
func (OptNilGetProjectIsFundedByIsAwardedBy) IsSet ¶
func (o OptNilGetProjectIsFundedByIsAwardedBy) IsSet() bool
IsSet returns true if OptNilGetProjectIsFundedByIsAwardedBy was set.
func (OptNilGetProjectIsFundedByIsAwardedBy) MarshalJSON ¶
func (s OptNilGetProjectIsFundedByIsAwardedBy) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilGetProjectIsFundedByIsAwardedBy) Or ¶
func (o OptNilGetProjectIsFundedByIsAwardedBy) Or(d GetProjectIsFundedByIsAwardedBy) GetProjectIsFundedByIsAwardedBy
Or returns value if set, or given parameter if does not.
func (*OptNilGetProjectIsFundedByIsAwardedBy) Reset ¶
func (o *OptNilGetProjectIsFundedByIsAwardedBy) Reset()
Reset unsets value.
func (*OptNilGetProjectIsFundedByIsAwardedBy) SetTo ¶
func (o *OptNilGetProjectIsFundedByIsAwardedBy) SetTo(v GetProjectIsFundedByIsAwardedBy)
SetTo sets value to v.
func (*OptNilGetProjectIsFundedByIsAwardedBy) SetToNull ¶
func (o *OptNilGetProjectIsFundedByIsAwardedBy) SetToNull()
SetNull sets value to null.
func (*OptNilGetProjectIsFundedByIsAwardedBy) UnmarshalJSON ¶
func (s *OptNilGetProjectIsFundedByIsAwardedBy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface { ServerOption ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type SecurityHandler ¶
type SecurityHandler interface { // HandleApiKey handles apiKey security. HandleApiKey(ctx context.Context, operationName string, t ApiKey) (context.Context, error) }
SecurityHandler is handler for security parameters.
type SecuritySource ¶
type SecuritySource interface { // ApiKey provides apiKey security value. ApiKey(ctx context.Context, operationName string) (ApiKey, error) }
SecuritySource is provider of security values (tokens, passwords, etc.).
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *repositories.Repo) *Service
func (*Service) AddProject ¶
func (s *Service) AddProject(ctx context.Context, req *AddProject) error
func (*Service) DeleteProject ¶
func (s *Service) DeleteProject(ctx context.Context, req *DeleteProjectRequest) error
func (*Service) GetProject ¶
func (s *Service) GetProject(ctx context.Context, req *GetProjectRequest) (GetProjectRes, error)
func (*Service) NewError ¶
func (s *Service) NewError(ctx context.Context, err error) *ErrorStatusCode
func (*Service) SuggestProjects ¶
func (s *Service) SuggestProjects(ctx context.Context, req *SuggestProjectsRequest) (*SuggestProjectsResponse, error)
type SuggestProjectsRequest ¶
type SuggestProjectsRequest struct {
Query string `json:"query"`
}
Ref: #/components/schemas/SuggestProjectsRequest
func (*SuggestProjectsRequest) Decode ¶
func (s *SuggestProjectsRequest) Decode(d *jx.Decoder) error
Decode decodes SuggestProjectsRequest from json.
func (*SuggestProjectsRequest) Encode ¶
func (s *SuggestProjectsRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SuggestProjectsRequest) GetQuery ¶
func (s *SuggestProjectsRequest) GetQuery() string
GetQuery returns the value of Query.
func (*SuggestProjectsRequest) MarshalJSON ¶
func (s *SuggestProjectsRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SuggestProjectsRequest) SetQuery ¶
func (s *SuggestProjectsRequest) SetQuery(val string)
SetQuery sets the value of Query.
func (*SuggestProjectsRequest) UnmarshalJSON ¶
func (s *SuggestProjectsRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SuggestProjectsRequest) Validate ¶
func (s *SuggestProjectsRequest) Validate() error
type SuggestProjectsResponse ¶
type SuggestProjectsResponse struct { Cursor OptString `json:"cursor"` Data []GetProject `json:"data"` }
Ref: #/components/schemas/SuggestProjectsResponse
func (*SuggestProjectsResponse) Decode ¶
func (s *SuggestProjectsResponse) Decode(d *jx.Decoder) error
Decode decodes SuggestProjectsResponse from json.
func (*SuggestProjectsResponse) Encode ¶
func (s *SuggestProjectsResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SuggestProjectsResponse) GetCursor ¶
func (s *SuggestProjectsResponse) GetCursor() OptString
GetCursor returns the value of Cursor.
func (*SuggestProjectsResponse) GetData ¶
func (s *SuggestProjectsResponse) GetData() []GetProject
GetData returns the value of Data.
func (*SuggestProjectsResponse) MarshalJSON ¶
func (s *SuggestProjectsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SuggestProjectsResponse) SetCursor ¶
func (s *SuggestProjectsResponse) SetCursor(val OptString)
SetCursor sets the value of Cursor.
func (*SuggestProjectsResponse) SetData ¶
func (s *SuggestProjectsResponse) SetData(val []GetProject)
SetData sets the value of Data.
func (*SuggestProjectsResponse) UnmarshalJSON ¶
func (s *SuggestProjectsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SuggestProjectsResponse) Validate ¶
func (s *SuggestProjectsResponse) Validate() error
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) AddProject ¶
func (UnimplementedHandler) AddProject(ctx context.Context, req *AddProject) error
AddProject implements addProject operation.
Add a single project.
POST /add-project
func (UnimplementedHandler) DeleteProject ¶
func (UnimplementedHandler) DeleteProject(ctx context.Context, req *DeleteProjectRequest) error
DeleteProject implements deleteProject operation.
Delete a project.
POST /delete-project
func (UnimplementedHandler) GetProject ¶
func (UnimplementedHandler) GetProject(ctx context.Context, req *GetProjectRequest) (r GetProjectRes, _ error)
GetProject implements getProject operation.
Get a project.
POST /get-project
func (UnimplementedHandler) NewError ¶
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
NewError creates *ErrorStatusCode from error returned by handler.
Used for common default response.
func (UnimplementedHandler) SuggestProjects ¶
func (UnimplementedHandler) SuggestProjects(ctx context.Context, req *SuggestProjectsRequest) (r *SuggestProjectsResponse, _ error)
SuggestProjects implements suggestProjects operation.
Search in projects.
POST /suggest-projects
Source Files
¶
- generate.go
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_middleware_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_security_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go
- service.go