MCPcopy
hub / github.com/ory/keto / FromURLQuery

Method FromURLQuery

ketoapi/enc_url_query.go:109–119  ·  view source on GitHub ↗
(values url.Values)

Source from the content-addressed store, hash-verified

107}
108
109func (s *SubjectSet) FromURLQuery(values url.Values) *SubjectSet {
110 if s == nil {
111 s = &SubjectSet{}
112 }
113
114 s.Namespace = values.Get(NamespaceKey)
115 s.Relation = values.Get(RelationKey)
116 s.Object = values.Get(ObjectKey)
117
118 return s
119}
120
121func (s *SubjectSet) ToURLQuery() url.Values {
122 return url.Values{

Callers 8

getExpandMethod · 0.45
getRelationsMethod · 0.45
deleteRelationsMethod · 0.45
TestWriteHandlersFunction · 0.45
getCheckMethod · 0.45
FromURLQueryMethod · 0.45
TestRelationTupleFunction · 0.45
TestRelationQueryFunction · 0.45

Calls 1

GetMethod · 0.45

Tested by 3

TestWriteHandlersFunction · 0.36
TestRelationTupleFunction · 0.36
TestRelationQueryFunction · 0.36