ams

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTermsAccepted

func CheckTermsAccepted(ctx context.Context, spec ServiceTermsSpec, conn connection.Connection) (accepted bool, redirectURI string, err error)

Types

type ServiceTermsSpec added in v0.36.0

type ServiceTermsSpec struct {
	EventCode string `json:"EventCode"`
	SiteCode  string `json:"SiteCode"`
}

type TermsAndConditionsSpec added in v0.36.0

type TermsAndConditionsSpec struct {
	Kafka           ServiceTermsSpec `json:"kafka"`
	ServiceRegistry ServiceTermsSpec `json:"service-registry"`
}

func GetRemoteTermsSpec added in v0.36.0

func GetRemoteTermsSpec(context *context.Context, logger logging.Logger) TermsAndConditionsSpec

GetRemoteTermsSpec fetch event and site code information associated with the services Function is used to dynamically download new terms and conditions specifications without forcing end users to update their CLI.

Jump to

Keyboard shortcuts

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