Documentation ¶
Index ¶
- Variables
- func Create[T any](ctx context.Context, c *Client, obj *T) (*T, error)
- func CreateName[T any](ctx context.Context, c *Client, name string, obj *T) (*T, error)
- func Delete[T any](ctx context.Context, c *Client, id string, opts *UpdateOpts) error
- func DeleteName[T any](ctx context.Context, c *Client, name, id string, opts *UpdateOpts) error
- func Find[T any](ctx context.Context, c *Client, shortID string) (*T, error)
- func FindName[T any](ctx context.Context, c *Client, name, shortID string) (*T, error)
- func Get[T any](ctx context.Context, c *Client, id string, opts *GetOpts) (*T, error)
- func GetName[T any](ctx context.Context, c *Client, name, id string, opts *GetOpts) (*T, error)
- func List[T any](ctx context.Context, c *Client, opts *ListOpts) ([]*T, error)
- func ListName[T any](ctx context.Context, c *Client, name string, opts *ListOpts) ([]*T, error)
- func Replace[T any](ctx context.Context, c *Client, id string, obj *T, opts *UpdateOpts) (*T, error)
- func ReplaceName[T any](ctx context.Context, c *Client, name, id string, obj *T, opts *UpdateOpts) (*T, error)
- func Update[T any](ctx context.Context, c *Client, id string, obj *T, opts *UpdateOpts) (*T, error)
- func UpdateName[T any](ctx context.Context, c *Client, name, id string, obj *T, opts *UpdateOpts) (*T, error)
- type Client
- func (c *Client) DebugInfo(ctx context.Context) (map[string]any, error)
- func (c *Client) GoClient(ctx context.Context) (string, error)
- func (c *Client) OpenAPI(ctx context.Context) (map[string]any, error)
- func (c *Client) ResetAuth() *Client
- func (c *Client) SetAuthToken(token string) *Client
- func (c *Client) SetBasicAuth(user, pass string) *Client
- func (c *Client) SetDebug(debug bool) *Client
- func (c *Client) SetHeader(header, value string) *Client
- func (c *Client) SetTLSClientConfig(cfg *tls.Config) *Client
- func (c *Client) TSClient(ctx context.Context) (string, error)
- type Filter
- type GetOpts
- type GetStream
- type ListOpts
- type ListStream
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateName ¶
func DeleteName ¶
func ReplaceName ¶
func UpdateName ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SetAuthToken ¶
func (*Client) SetBasicAuth ¶
type GetStream ¶
type GetStream[T any] struct { // contains filtered or unexported fields }
func StreamGetName ¶
func (*GetStream[T]) LastEventReceived ¶
type ListStream ¶
type ListStream[T any] struct { // contains filtered or unexported fields }
func StreamList ¶
func StreamListName ¶
func (*ListStream[T]) Chan ¶
func (ls *ListStream[T]) Chan() <-chan []*T
func (*ListStream[T]) Close ¶
func (ls *ListStream[T]) Close()
func (*ListStream[T]) Error ¶
func (ls *ListStream[T]) Error() error
func (*ListStream[T]) LastEventReceived ¶
func (ls *ListStream[T]) LastEventReceived() time.Time
func (*ListStream[T]) Read ¶
func (ls *ListStream[T]) Read() []*T
type UpdateOpts ¶
type UpdateOpts struct {
Prev any
}
Click to show internal directories.
Click to hide internal directories.