autodiscover

package module
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 11 Imported by: 0

README

go-autodiscover

Golang client for Microsoft's autodiscover service

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExchangeVersion added in v1.1.1

func ExchangeVersion(major int64, minor int64, build int64) (string, error)

Types

type AutoDiscoveryProtocol

type AutoDiscoveryProtocol struct {
	XMLName       xml.Name `xml:"Protocol"`
	Type          string   `xml:"Type"`
	ServerVersion string   `xml:"ServerVersion"`
	EwsUrl        string   `xml:"EwsUrl"`
}

type AutoDiscoveryRequest

type AutoDiscoveryRequest struct {
	XMLName                  xml.Name `xml:"http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006 Autodiscover"`
	EMailAddress             string   `xml:"Request>EMailAddress"`
	AcceptableResponseSchema string   `xml:"Request>AcceptableResponseSchema"`
}

type AutoDiscoveryResponse

type AutoDiscoveryResponse struct {
	XMLName   xml.Name                `xml:"http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006 Autodiscover"`
	Protocols []AutoDiscoveryProtocol `xml:"Response>Account>Protocol"`
}

type DiscoveredInfo

type DiscoveredInfo struct {
	EWSUrl          string
	ExchangeVersion string
}

func Discover

func Discover(emailAddress string, password string) (DiscoveredInfo, error)

Jump to

Keyboard shortcuts

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