Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecureRemoteClientAsServiceAccount ¶
func CreateSecureRemoteClientAsServiceAccount(ctx context.Context, req *goa.RequestData, remoteURL string) (*witservice.Client, error)
CreateSecureRemoteClientAsServiceAccount creates a client that would communicate with WIT service using a service account token.
Types ¶
type RemoteWITService ¶
type RemoteWITService interface { UpdateWITUser(ctx context.Context, req *goa.RequestData, updatePayload *app.UpdateUsersPayload, witURL string, identityID string) error CreateWITUser(ctx context.Context, req *goa.RequestData, identity *account.Identity, witURL string, identityID string) error }
RemoteWITService specifies the behaviour of a remote WIT caller
type RemoteWITServiceCaller ¶
type RemoteWITServiceCaller struct{}
func (*RemoteWITServiceCaller) CreateWITUser ¶
func (r *RemoteWITServiceCaller) CreateWITUser(ctx context.Context, req *goa.RequestData, identity *account.Identity, witURL string, identityID string) error
CreateWITUser creates a new user in WIT
func (*RemoteWITServiceCaller) UpdateWITUser ¶
func (r *RemoteWITServiceCaller) UpdateWITUser(ctx context.Context, req *goa.RequestData, updatePayload *app.UpdateUsersPayload, witURL string, identityID string) error
UpdateWITUser updates user in WIT
Click to show internal directories.
Click to hide internal directories.