remoteservice

package
v0.0.0-...-284eadf Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

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