Skip to main content

internal/api/subjects.go

internal/api · 96 lines · 8 declarations · source

Declarations​

type subjectGetRequest​

type subjectGetRequest struct {
ID string `json:"id,omitempty"`
ExternalReference string `json:"external_reference,omitempty"`
}

source

type subjectListRequest​

type subjectListRequest struct {
After string `json:"after,omitempty"`
Limit int `json:"limit,omitempty"`
}

source

method Server.subjectReady​

func (s *Server) subjectReady(w http.ResponseWriter) bool

source

method Server.subjectError​

func (s *Server) subjectError(w http.ResponseWriter, r *http.Request, grant credential.Grant, operation string, err error)

source

method Server.registerSubject​

func (s *Server) registerSubject(w http.ResponseWriter, r *http.Request, grant credential.Grant)

source

method Server.getSubject​

func (s *Server) getSubject(w http.ResponseWriter, r *http.Request, grant credential.Grant)

source

method Server.listSubjects​

func (s *Server) listSubjects(w http.ResponseWriter, r *http.Request, grant credential.Grant)

source

method Server.updateSubject​

func (s *Server) updateSubject(w http.ResponseWriter, r *http.Request, grant credential.Grant)

source