Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Relational ¶
type Relational[R any] struct { // contains filtered or unexported fields }
Relational describe an initialized RPC request with access to a request handler and the option to include related resources.
func (Relational[R]) Do ¶
func (req Relational[R]) Do(ctx context.Context) (*R, error)
Do performs the request against the server and returns the result.
func (Relational[R]) Include ¶
func (req Relational[R]) Include(relationships ...string) Relational[R]
Include returns a request that appends the named relationships to the request include list.
type RelationalMethod ¶
RelationalMethod is a constructor for an RPC request for a specific RPC method and API version where named relationships can be included.
func (RelationalMethod[R]) NewRequest ¶
func (cfg RelationalMethod[R]) NewRequest(h jsonrpc.Handler, params ...jsonrpc.Param) Relational[R]
Click to show internal directories.
Click to hide internal directories.