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 v0.2.0 Jun 8, 2023 Changes in this version + 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 ErrorHandler = ogenerrors.ErrorHandler + type Handler interface + CreateNote func(ctx context.Context, req *DraftMultipart) (*Note, error) + DeleteNote func(ctx context.Context, params DeleteNoteParams) error + UpdateNote func(ctx context.Context, req *DraftMultipart, params UpdateNoteParams) error + 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 Middleware = middleware.Middleware + 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 Route struct + func (r Route) Args() []string + func (r Route) Name() string + func (r Route) OperationID() string + func (r Route) PathPattern() string + type SecurityHandler interface + HandleHeaderAuth func(ctx context.Context, operationName string, t HeaderAuth) (context.Context, error) + HandleQueryAuth func(ctx context.Context, operationName string, t QueryAuth) (context.Context, error) + type Server struct + func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error) + func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool) + func (s *Server) FindRoute(method, path string) (Route, bool) + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ServerOption interface + 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 UnimplementedHandler struct + func (UnimplementedHandler) CreateNote(ctx context.Context, req *DraftMultipart) (r *Note, _ error) + func (UnimplementedHandler) DeleteNote(ctx context.Context, params DeleteNoteParams) error + func (UnimplementedHandler) UpdateNote(ctx context.Context, req *DraftMultipart, params UpdateNoteParams) error + type UpdateNoteNoContent struct + type UpdateNoteParams struct + ID ID