oauth_clients

package
v0.0.0-...-9b02830 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OAUTH_CLIENTS_COLLECTION = "gapi_oauth_clients"
	SERVICE_NAME             = "gapi_oauth_clients"
	PAGE_LENGTH              = 10
)

Variables

View Source
var FIND_CLIENT = `select client_id, client_secret from gapi_oauth_clients where client_id = :client_id and client_secret = :client_secret`
View Source
var OAuthClientsMethods = map[string]map[string]interface{}{
	"mongo": {
		"find": FindOAuthClientMongo,
	},
	"oracle": {
		"find": FindOAuthClientOracle}}

Functions

This section is empty.

Types

type OAuthClient

type OAuthClient struct {
	ClientId     string
	ClientSecret string
}

func Find

func Find(clientId string, clientSecret string) OAuthClient

func FindOAuthClientMongo

func FindOAuthClientMongo(clientId string, clientSecret string) OAuthClient

func FindOAuthClientOracle

func FindOAuthClientOracle(clientId string, clientSecret string) OAuthClient

func RowsToClients

func RowsToClients(rows *sql.Rows, containsPagination bool) []OAuthClient

Jump to

Keyboard shortcuts

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