Documentation ¶
Overview ¶
Package prism implements a reflection based rest api builder using its subpackages.
Index ¶
- type BinaryTransfer
- type Builder
- func (b Builder) API(label string, apiFunc func(a *api.API, bt *BinaryTransfer)) Builder
- func (b Builder) AuthConfig(config apiauth.Config) Builder
- func (b Builder) AuthDB(authDB *bbolt.DB) Builder
- func (b Builder) Build() (*Prism, error)
- func (b Builder) Description(description string) Builder
- func (b Builder) Host(host string) Builder
- func (b Builder) Schemes(schemes ...string) Builder
- func (b Builder) Title(title string) Builder
- type Prism
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryTransfer ¶
type BinaryTransfer struct {
// contains filtered or unexported fields
}
func (*BinaryTransfer) Download ¶
func (bt *BinaryTransfer) Download(name string, input io.ReadSeeker, finally func(), validFor time.Duration) string
func (*BinaryTransfer) DownloadFile ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (Builder) Description ¶
type Prism ¶
type Prism struct { User *apiauth.Authorizer Admin *apiauth.Authorizer Handler http.Handler }
Directories ¶
Path | Synopsis |
---|---|
_examples
|
|
Package api implements reflection based http.Handler generation.
|
Package api implements reflection based http.Handler generation. |
Package apiauth provides persistent authorization based on boltdb.
|
Package apiauth provides persistent authorization based on boltdb. |
Package apidoc implements reflection based api documentation using the OpenAPI 2.0 specification (Swagger).
|
Package apidoc implements reflection based api documentation using the OpenAPI 2.0 specification (Swagger). |
Package swaggerui provides a http.Handler to serve apidoc.Documentation with swagger-ui (v3.19.4).
|
Package swaggerui provides a http.Handler to serve apidoc.Documentation with swagger-ui (v3.19.4). |
Click to show internal directories.
Click to hide internal directories.