Documentation ¶
Index ¶
- func GoCamelCase(s string) string
- func Notify(c *Client, path string, method string, body any) error
- func ReadMessage[T any](s *Server, ctx *gin.Context) (*T, error)
- func Request[T any](c *Client, path string, method string, body any) (*T, error)
- func TabulatorQuery[T any](ctx *gin.Context, collection string, selector any)
- type Client
- type Context
- type ExprType
- type FuncDecl
- type NameType
- type Parser
- type Server
- func (s *Server) HandleGet(path string, handler func(ctx *gin.Context))
- func (s *Server) HandlePost(path string, handler func(ctx *gin.Context))
- func (s *Server) ResponseData(ctx *gin.Context, data any)
- func (s *Server) ResponseError(ctx *gin.Context, code int, err error)
- func (s *Server) Start(domain, email, addr string) error
- func (s *Server) Static(relativePath string, root string)
- func (s *Server) TusdHandle(path string, handle TusdHandle)
- func (s *Server) TusdUpload(store, path string) error
- type Service
- type TusdHandle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoCamelCase ¶
GoCamelCase camel-cases a protobuf name for use as a Go identifier.
If there is an interior underscore followed by a lower case letter, drop the underscore and convert the letter to upper case.
Types ¶
type FuncDecl ¶
type Parser ¶
type Parser struct { Services map[string]*Service Pkgname string // contains filtered or unexported fields }
func (*Parser) WriteClient ¶
func (*Parser) WriteServer ¶
type Server ¶
func (*Server) HandlePost ¶
func (*Server) ResponseError ¶
func (*Server) Start ¶
Start start server cert: tls cert file path key: tls key file path addr: listen address. eg: :https
func (*Server) Static ¶
Static add Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp to all routers
func (*Server) TusdHandle ¶
func (s *Server) TusdHandle(path string, handle TusdHandle)
func (*Server) TusdUpload ¶
TusdUpload handle upload request store: upload file store path path: upload request path. eg: /upload/
Click to show internal directories.
Click to hide internal directories.