Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ODataClient ¶
ODataClient represents a connection to the OData REST API
func New ¶
func New(baseUrl string) ODataClient
type ODataDataSet ¶
type ODataDataSet[ModelT any, Def ODataModelDefinition[ModelT]] interface { Single(id string) (ModelT, error) List(filter ODataFilter) (<-chan ModelT, <-chan error) Insert(model ModelT) (ModelT, error) Update(id string, model ModelT) (ModelT, error) Delete(id string) error // contains filtered or unexported methods }
func NewDataSet ¶
func NewDataSet[ModelT any, Def ODataModelDefinition[ModelT]](client ODataClient, modelDefinition Def) ODataDataSet[ModelT, Def]
type ODataFilter ¶
type ODataFilter struct {
Filter string
}
ODataFilter represents a OData Filter query
type ODataModelCollection ¶
type ODataModelCollection[T any] interface { ODataModelDefinition[T] DataSet() ODataDataSet[T, ODataModelDefinition[T]] }
type ODataModelDefinition ¶
type Wrapper ¶ added in v0.0.4
type Wrapper interface {
ODataClient() ODataClient
}
Wrapper represents a wrapper around the OData client if you have build own code around the OData itself, for authentication etc
Click to show internal directories.
Click to hide internal directories.