Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManageStructure ¶
type ManageStructure struct { ReadExposed func(http.ResponseWriter, *http.Request) CreateExposed func(http.ResponseWriter, *http.Request) UpdateExposed func(http.ResponseWriter, *http.Request) RemoveExposed func(http.ResponseWriter, *http.Request) CreateMappings func(http.ResponseWriter, *http.Request) ReadMappings func(http.ResponseWriter, *http.Request) ListAll func(http.ResponseWriter, *http.Request) }
HTTP API interface
func NewManageStructure ¶
func NewManageStructure(h ManageStructureAPI) *ManageStructure
func (ManageStructure) MountRoutes ¶
func (h ManageStructure) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
type ManageStructureAPI ¶
type ManageStructureAPI interface { ReadExposed(context.Context, *request.ManageStructureReadExposed) (interface{}, error) CreateExposed(context.Context, *request.ManageStructureCreateExposed) (interface{}, error) UpdateExposed(context.Context, *request.ManageStructureUpdateExposed) (interface{}, error) RemoveExposed(context.Context, *request.ManageStructureRemoveExposed) (interface{}, error) CreateMappings(context.Context, *request.ManageStructureCreateMappings) (interface{}, error) ReadMappings(context.Context, *request.ManageStructureReadMappings) (interface{}, error) ListAll(context.Context, *request.ManageStructureListAll) (interface{}, error) }
Internal API interface
type Node ¶
type Node struct { Search func(http.ResponseWriter, *http.Request) Create func(http.ResponseWriter, *http.Request) Read func(http.ResponseWriter, *http.Request) GenerateURI func(http.ResponseWriter, *http.Request) Update func(http.ResponseWriter, *http.Request) Delete func(http.ResponseWriter, *http.Request) Undelete func(http.ResponseWriter, *http.Request) Pair func(http.ResponseWriter, *http.Request) HandshakeConfirm func(http.ResponseWriter, *http.Request) HandshakeComplete func(http.ResponseWriter, *http.Request) }
HTTP API interface
type NodeAPI ¶
type NodeAPI interface { Search(context.Context, *request.NodeSearch) (interface{}, error) Create(context.Context, *request.NodeCreate) (interface{}, error) Read(context.Context, *request.NodeRead) (interface{}, error) GenerateURI(context.Context, *request.NodeGenerateURI) (interface{}, error) Update(context.Context, *request.NodeUpdate) (interface{}, error) Delete(context.Context, *request.NodeDelete) (interface{}, error) Undelete(context.Context, *request.NodeUndelete) (interface{}, error) Pair(context.Context, *request.NodePair) (interface{}, error) HandshakeConfirm(context.Context, *request.NodeHandshakeConfirm) (interface{}, error) HandshakeComplete(context.Context, *request.NodeHandshakeComplete) (interface{}, error) }
Internal API interface
type NodeHandshake ¶
type NodeHandshake struct {
Initialize func(http.ResponseWriter, *http.Request)
}
HTTP API interface
func NewNodeHandshake ¶
func NewNodeHandshake(h NodeHandshakeAPI) *NodeHandshake
func (NodeHandshake) MountRoutes ¶
func (h NodeHandshake) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
type NodeHandshakeAPI ¶
type NodeHandshakeAPI interface {
Initialize(context.Context, *request.NodeHandshakeInitialize) (interface{}, error)
}
Internal API interface
type Permissions ¶
type Permissions struct { List func(http.ResponseWriter, *http.Request) Effective func(http.ResponseWriter, *http.Request) Trace func(http.ResponseWriter, *http.Request) Read func(http.ResponseWriter, *http.Request) Delete func(http.ResponseWriter, *http.Request) Update func(http.ResponseWriter, *http.Request) }
HTTP API interface
func NewPermissions ¶
func NewPermissions(h PermissionsAPI) *Permissions
func (Permissions) MountRoutes ¶
func (h Permissions) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
type PermissionsAPI ¶
type PermissionsAPI interface { List(context.Context, *request.PermissionsList) (interface{}, error) Effective(context.Context, *request.PermissionsEffective) (interface{}, error) Trace(context.Context, *request.PermissionsTrace) (interface{}, error) Read(context.Context, *request.PermissionsRead) (interface{}, error) Delete(context.Context, *request.PermissionsDelete) (interface{}, error) Update(context.Context, *request.PermissionsUpdate) (interface{}, error) }
Internal API interface
type SyncData ¶
type SyncData struct { ReadExposedAll func(http.ResponseWriter, *http.Request) ReadExposedInternal func(http.ResponseWriter, *http.Request) ReadExposedSocial func(http.ResponseWriter, *http.Request) }
HTTP API interface
func NewSyncData ¶
func NewSyncData(h SyncDataAPI) *SyncData
type SyncDataAPI ¶
type SyncDataAPI interface { ReadExposedAll(context.Context, *request.SyncDataReadExposedAll) (interface{}, error) ReadExposedInternal(context.Context, *request.SyncDataReadExposedInternal) (interface{}, error) ReadExposedSocial(context.Context, *request.SyncDataReadExposedSocial) (interface{}, error) }
Internal API interface
type SyncStructure ¶
type SyncStructure struct { ReadExposedInternal func(http.ResponseWriter, *http.Request) ReadExposedSocial func(http.ResponseWriter, *http.Request) }
HTTP API interface
func NewSyncStructure ¶
func NewSyncStructure(h SyncStructureAPI) *SyncStructure
func (SyncStructure) MountRoutes ¶
func (h SyncStructure) MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
type SyncStructureAPI ¶
type SyncStructureAPI interface { ReadExposedInternal(context.Context, *request.SyncStructureReadExposedInternal) (interface{}, error) ReadExposedSocial(context.Context, *request.SyncStructureReadExposedSocial) (interface{}, error) }
Internal API interface
Click to show internal directories.
Click to hide internal directories.