Documentation ¶
Index ¶
- type Graph
- func (g Graph) GetClient() (gateway.GatewayAPIClient, error)
- func (g Graph) GetDrives(w http.ResponseWriter, r *http.Request)
- func (g Graph) GetGroup(w http.ResponseWriter, r *http.Request)
- func (g Graph) GetGroups(w http.ResponseWriter, r *http.Request)
- func (g Graph) GetMe(w http.ResponseWriter, r *http.Request)
- func (g Graph) GetRootDriveChildren(w http.ResponseWriter, r *http.Request)
- func (g Graph) GetUser(w http.ResponseWriter, r *http.Request)
- func (g Graph) GetUsers(w http.ResponseWriter, r *http.Request)
- func (g Graph) GroupCtx(next http.Handler) http.Handler
- func (g Graph) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (g Graph) UserCtx(next http.Handler) http.Handler
- type Option
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph defines implements the business logic for Service.
func (Graph) GetClient ¶
func (g Graph) GetClient() (gateway.GatewayAPIClient, error)
GetClient returns a gateway client to talk to reva
func (Graph) GetDrives ¶
func (g Graph) GetDrives(w http.ResponseWriter, r *http.Request)
GetDrives implements the Service interface.
func (Graph) GetGroup ¶
func (g Graph) GetGroup(w http.ResponseWriter, r *http.Request)
GetGroup implements the Service interface.
func (Graph) GetGroups ¶
func (g Graph) GetGroups(w http.ResponseWriter, r *http.Request)
GetGroups implements the Service interface.
func (Graph) GetMe ¶
func (g Graph) GetMe(w http.ResponseWriter, r *http.Request)
GetMe implements the Service interface.
func (Graph) GetRootDriveChildren ¶
func (g Graph) GetRootDriveChildren(w http.ResponseWriter, r *http.Request)
GetRootDriveChildren implements the Service interface.
func (Graph) GetUser ¶
func (g Graph) GetUser(w http.ResponseWriter, r *http.Request)
GetUser implements the Service interface.
func (Graph) GetUsers ¶
func (g Graph) GetUsers(w http.ResponseWriter, r *http.Request)
GetUsers implements the Service interface. TODO use cs3 api to look up user
func (Graph) GroupCtx ¶
GroupCtx middleware is used to load an User object from the URL parameters passed through as the request. In case the User could not be found, we stop here and return a 404.
type Option ¶
type Option func(o *Options)
Option defines a single option function.
type Options ¶
type Options struct { Logger log.Logger Config *config.Config Middleware []func(http.Handler) http.Handler }
Options defines the available options for this package.
type Service ¶
type Service interface { ServeHTTP(http.ResponseWriter, *http.Request) GetMe(http.ResponseWriter, *http.Request) GetUsers(http.ResponseWriter, *http.Request) GetUser(http.ResponseWriter, *http.Request) }
Service defines the extension handlers.
func NewInstrument ¶
NewInstrument returns a service that instruments metrics.
func NewLogging ¶
NewLogging returns a service that logs messages.
func NewService ¶
NewService returns a service implementation for Service.
func NewTracing ¶
NewTracing returns a service that instruments traces.