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: 0

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