microsoft

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Options     map[string]interface{}
	AccessToken string `json:"access_token"`
	// contains filtered or unexported fields
}

func New

func New(options map[string]interface{}) (*Client, error)

New will initialize and return an authorized Client

func (*Client) Exit

func (microsoftClient *Client) Exit() (err error)

func (*Client) Poll

func (microsoftClient *Client) Poll(timestamp time.Time, resultsChannel chan<- string, pollOffset int) (count int, currentTimestamp time.Time, err error)

Collect will query the source and pass the results back through a result channel

func (*Client) Stream

func (microsoftClient *Client) Stream(streamChannel chan<- string) (cancelFunc func(), err error)

type GraphAuthResponse

type GraphAuthResponse struct {
	TokenType    string      `json:"token_type"`
	ExpiresIn    json.Number `json:"expires_in"`
	ExtExpiresIn json.Number `json:"ext_expires_in"`
	AccessToken  string      `json:"access_token"`
}

type GraphSecurityAlertsResponse

type GraphSecurityAlertsResponse struct {
	Context  string        `json:"@odata.context"`
	NextLink string        `json:"@odata.nextLink"`
	Value    []interface{} `json:"value"`
}

Jump to

Keyboard shortcuts

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