grpcclient

package
v0.0.0-...-e63b808 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAuthClient

func StartAuthClient()

func StartOrgClient

func StartOrgClient()

func StopGrpcClient

func StopGrpcClient()

func StopOrgClient

func StopOrgClient()

Types

type AuthInfo

type AuthInfo struct {
	Authorised  bool
	Tenant      string
	Domain      string
	Department  string
	Name        string
	EmailId     string
	PhoneNumber string
	Role        string
}

func GetAuthInfo

func GetAuthInfo(r *http.Request) AuthInfo

type GrpcClient

type GrpcClient struct {
	// contains filtered or unexported fields
}

func GetAuthClient

func GetAuthClient() *GrpcClient

func (*GrpcClient) Verify

func (a *GrpcClient) Verify(accessToken string, routeName string) (AuthInfo, error)

type OrgClient

type OrgClient struct {
	// contains filtered or unexported fields
}

func GetOrgClient

func GetOrgClient() *OrgClient

func (*OrgClient) InitOrganization

func (a *OrgClient) InitOrganization(e OrgInitInfo) (string, error)

func (*OrgClient) OrgAddEmployee

func (a *OrgClient) OrgAddEmployee(e OrgEmployeeInfo) (string, error)

func (*OrgClient) OrgRemoveEmployee

func (a *OrgClient) OrgRemoveEmployee(e OrgEmployeeInfo) (string, error)

func (*OrgClient) OrgUpdateEmployee

func (a *OrgClient) OrgUpdateEmployee(e OrgEmployeeInfo) (string, error)

type OrgEmployeeInfo

type OrgEmployeeInfo struct {
	Domain          string
	EmployeeId      string
	Department      string
	Designation     string
	Name            string
	Status          string
	ProfileImageURL string
}

type OrgInitInfo

type OrgInitInfo struct {
	Id                string
	EID               string
	Domain            string
	OrgName           string
	AdminEmailId      string
	AdminPhoneNumber  string
	AdminName         string
	Department        string
	Designation       string
	EmailVerified     bool
	Password          string
	Role              string
	FirstLoginPending bool
	Status            string
}

Jump to

Keyboard shortcuts

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