Documentation ¶
Index ¶
Constants ¶
View Source
const ( //FaceSubscriptionKey Azure Face Subscription env key FaceSubscriptionKey = "WSS_FACE_SUBSCRIPTION_KEY" //FaceEndpointKey Azure Face Endpoint env key FaceEndpointKey = "WSS_FACE_ENDPOINT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
Configuration structure for the Face service configuration
func BuildConfigurationFromEnvs ¶
func BuildConfigurationFromEnvs() (*Configuration, error)
BuildConfigurationFromEnvs builds the configuration from env variables
func (*Configuration) IsValid ¶
func (c *Configuration) IsValid() bool
IsValid Checks if the configuration is valid
type FaceDetails ¶
FaceDetails Details about one face
type FaceServiceClient ¶
type FaceServiceClient struct {
// contains filtered or unexported fields
}
FaceServiceClient client for the Azure Face Service
func NewFaceServiceClient ¶
func NewFaceServiceClient(conf *Configuration) *FaceServiceClient
NewFaceServiceClient FaceServiceClient constructor
func (*FaceServiceClient) InvokeFace ¶
func (s *FaceServiceClient) InvokeFace(faceContext context.Context, photo io.ReadCloser) (*FaceResult, error)
InvokeFace invokes the Face APIs with the provided photo
Click to show internal directories.
Click to hide internal directories.