Versions in this module Expand all Collapse all v0 v0.2.4 Jun 14, 2023 v0.2.3 Jun 12, 2023 v0.2.2 Jun 12, 2023 v0.2.1 Jun 11, 2023 Changes in this version + type HeaderToken string + func (ta HeaderToken) HeaderAuth(_ context.Context, _ string) (HeaderAuth, error) + func (ta HeaderToken) QueryAuth(_ context.Context, _ string) (QueryAuth, error) v0.2.0 Jun 8, 2023 Changes in this version + func WithServerURL(ctx context.Context, u *url.URL) context.Context + type Client struct + func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error) + func (c *Client) CreateNote(ctx context.Context, request *DraftMultipart) (*Note, error) + func (c *Client) DeleteNote(ctx context.Context, params DeleteNoteParams) error + func (c *Client) UpdateNote(ctx context.Context, request *DraftMultipart, params UpdateNoteParams) error + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type DeleteNoteNoContent struct + type DeleteNoteParams struct + ID ID + type DraftMultipart struct + Attachment []ht.MultipartFile + Author OptString + HideAttachments OptBool + Text string + Title string + func (s *DraftMultipart) GetAttachment() []ht.MultipartFile + func (s *DraftMultipart) GetAuthor() OptString + func (s *DraftMultipart) GetHideAttachments() OptBool + func (s *DraftMultipart) GetText() string + func (s *DraftMultipart) GetTitle() string + func (s *DraftMultipart) SetAttachment(val []ht.MultipartFile) + func (s *DraftMultipart) SetAuthor(val OptString) + func (s *DraftMultipart) SetHideAttachments(val OptBool) + func (s *DraftMultipart) SetText(val string) + func (s *DraftMultipart) SetTitle(val string) + type HeaderAuth struct + APIKey string + func (s *HeaderAuth) GetAPIKey() string + func (s *HeaderAuth) SetAPIKey(val string) + type ID string + func (s *ID) Decode(d *jx.Decoder) error + func (s *ID) UnmarshalJSON(data []byte) error + func (s ID) Encode(e *jx.Encoder) + func (s ID) MarshalJSON() ([]byte, error) + func (s ID) Validate() error + type Note struct + ID ID + PublicURL string + func (s *Note) Decode(d *jx.Decoder) error + func (s *Note) Encode(e *jx.Encoder) + func (s *Note) GetID() ID + func (s *Note) GetPublicURL() string + func (s *Note) MarshalJSON() ([]byte, error) + func (s *Note) SetID(val ID) + func (s *Note) SetPublicURL(val string) + func (s *Note) UnmarshalJSON(data []byte) error + func (s *Note) Validate() error + type OptBool struct + Set bool + Value bool + func NewOptBool(v bool) OptBool + func (o *OptBool) Reset() + func (o *OptBool) SetTo(v bool) + func (o OptBool) Get() (v bool, ok bool) + func (o OptBool) IsSet() bool + func (o OptBool) Or(d bool) bool + type OptString struct + Set bool + Value string + func NewOptString(v string) OptString + func (o *OptString) Reset() + func (o *OptString) SetTo(v string) + func (o OptString) Get() (v string, ok bool) + func (o OptString) IsSet() bool + func (o OptString) Or(d string) string + type Option interface + func WithMeterProvider(provider metric.MeterProvider) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type QueryAuth struct + APIKey string + func (s *QueryAuth) GetAPIKey() string + func (s *QueryAuth) SetAPIKey(val string) + type SecuritySource interface + HeaderAuth func(ctx context.Context, operationName string) (HeaderAuth, error) + QueryAuth func(ctx context.Context, operationName string) (QueryAuth, error) + type UpdateNoteNoContent struct + type UpdateNoteParams struct + ID ID