server

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Scopes bundles up auth scopes for the remote-id server.
	Scopes = struct {
		ISA struct {
			Write auth.Scope
			Read  auth.Scope
		}
	}{
		ISA: struct {
			Write auth.Scope
			Read  auth.Scope
		}{
			Write: "dss.write.identification_service_areas",
			Read:  "dss.read.identification_service_areas",
		},
	}
)

Functions

func AuthScopes

func AuthScopes() map[auth.Operation][]auth.Scope

AuthScopes returns a map of endpoint to required Oauth scope.

Types

type Server

type Server struct {
	App     *application.App
	Timeout time.Duration
}

Server implements ridpb.DiscoveryAndSynchronizationService.

func (*Server) CreateIdentificationServiceArea

CreateIdentificationServiceArea creates an ISA

func (*Server) CreateSubscription

CreateSubscription creates a single subscription.

func (*Server) DeleteIdentificationServiceArea

DeleteIdentificationServiceArea deletes an existing ISA.

func (*Server) DeleteSubscription

DeleteSubscription deletes an existing subscription.

func (*Server) GetIdentificationServiceArea

GetIdentificationServiceArea returns a single ISA for a given ID.

func (*Server) GetSubscription

GetSubscription gets a single subscription based on ID.

func (*Server) SearchIdentificationServiceAreas

SearchIdentificationServiceAreas queries for all ISAs in the bounds.

func (*Server) SearchSubscriptions

SearchSubscriptions queries for existing subscriptions in the given bounds.

func (*Server) UpdateIdentificationServiceArea

UpdateIdentificationServiceArea updates an existing ISA.

func (*Server) UpdateSubscription

UpdateSubscription updates a single subscription.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL