Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GCPProjectID GCP project ID in use GCPProjectID = "your-gcp-project-id" // DefaultLanguage of the bot DefaultLanguage = "en" // ENUSLanguage US English ENUSLanguage = "en-US" // DefaultTimeZone where user is in DefaultTimeZone = "PST" // DefaultTimeout for API timeout DefaultTimeout = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CX ¶
type CX interface { GetIntents(ctx context.Context, opts *CXAgentOpts) ([]*cxpb.Intent, error) GetFlows(ctx context.Context, opts *CXAgentOpts) ([]*cxpb.Flow, error) GetPages(ctx context.Context, opts *CXAgentOpts) ([]*cxpb.Page, error) GetAgent(ctx context.Context, opts *CXAgentOpts) (*cxpb.Agent, error) Close() }
CX is the interface for accessing the Dialogflow CX client. Generate the mock interface for this. mockgen -destination=mocks/clients/mock_cx.go -package=mocks -source=clients/get.go CX
type CXAgentOpts ¶
type CXAgentOpts struct { ProjectID string AgentID string Verbose bool Lang string Location string OutFilename string InFilename string }
CXAgentOpts options passed to the agent.
type Environment ¶
type Environment string
Environment is Dialogflow CX bot environments
const ( Draft Environment = "DRAFT" // DRAFT environment Staging Environment = "STAGING" Prod Environment = "PROD" )
Dialog flow environmental names
func (Environment) String ¶
func (e Environment) String() string
String returns the string representation of the environment
Click to show internal directories.
Click to hide internal directories.