Documentation ¶
Index ¶
- func NewServer(backend Backend) (http.Handler, error)
- func SearchEndpoint(b Backend) http.Handler
- func ServiceProviderConfig(config *resource.ServiceProviderConfig) http.Handler
- func UsersEndpoint(b Backend) http.Handler
- type Backend
- type Builder
- func (b *Builder) Build() (http.Handler, error)
- func (b *Builder) Handler(path string, hh http.Handler, options ...HandlerOption) *Builder
- func (b *Builder) SearchEndpoint(handler http.Handler, options ...HandlerOption) *Builder
- func (b *Builder) UsersEndpoint(handler http.Handler, options ...HandlerOption) *Builder
- func (b *Builder) WithBackend(backend Backend) *Builder
- type Handler
- type HandlerOption
- type Middleware
- type MiddlewareFunc
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchEndpoint ¶
Creates an instance of reference implementation http.Handler that uses the specified Backend
func ServiceProviderConfig ¶
func ServiceProviderConfig(config *resource.ServiceProviderConfig) http.Handler
func UsersEndpoint ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) SearchEndpoint ¶
func (b *Builder) SearchEndpoint(handler http.Handler, options ...HandlerOption) *Builder
func (*Builder) UsersEndpoint ¶
func (b *Builder) UsersEndpoint(handler http.Handler, options ...HandlerOption) *Builder
func (*Builder) WithBackend ¶
type HandlerOption ¶
type HandlerOption interface { Option // contains filtered or unexported methods }
HandlerOption describes an option that can be passed to `(server.Builder).Handler()`.
func WithPath ¶
func WithPath(v string) HandlerOption
WithPath specifies the path that the handler should be registered at
type MiddlewareFunc ¶
Click to show internal directories.
Click to hide internal directories.