util

package
v0.0.0-...-b175f30 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnrollments

func GetEnrollments(auth0ClientProvider Auth0Client, httpClientProvider HTTPClientProvider, AffBaseURL string, projectSlug string, uuid string, date time.Time) (string, []string, error)

GetEnrollments get identity single and multi organization

func HandleFailedData

func HandleFailedData(data []elastic.BulkData, byteResponse []byte) (failedIndexes []elastic.BulkData, err error)

HandleFailedData ...

func HandleGapData

func HandleGapData(gapURL string, HTTPRequest HTTPClientProvider, data []elastic.BulkData, auth0Client Auth0Client, env string) error

HandleGapData ...

func IsEmailValid

func IsEmailValid(e string) bool

IsEmailValid validate email address

Types

type Auth0Client

type Auth0Client interface {
	GetToken() (string, error)
}

Auth0Client ...

type ESResponseIndex

type ESResponseIndex struct {
	ID     string `json:"_id"`
	Status int
}

ESResponseIndex ...

type ElasticResponse

type ElasticResponse struct {
	Took   int
	Errors bool
	Items  []ElasticResponseItem
}

ElasticResponse ...

type ElasticResponseItem

type ElasticResponseItem struct {
	Index ESResponseIndex
}

ElasticResponseItem ...

type EnrollmentOrgs

type EnrollmentOrgs struct {
	Org  string
	Orgs []string
}

EnrollmentOrgs ...

type HTTPClientProvider

type HTTPClientProvider interface {
	Request(url string, method string, header map[string]string, body []byte, params map[string]string) (statusCode int, resBody []byte, err error)
}

HTTPClientProvider used in connecting to remote http server

Jump to

Keyboard shortcuts

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