Documentation
¶
Index ¶
- Variables
- func GetDefaultClient(middleware ...khttp.Middleware) *nethttp.Client
- func GetDefaultMiddlewaresWithOptions(options *GraphClientOptions) []khttp.Middleware
- type GraphClientOptions
- type GraphODataQueryHandler
- type GraphODataQueryHandlerOptions
- type GraphRequestAdapterBase
- func NewGraphRequestAdapterBase(authenticationProvider absauth.AuthenticationProvider, ...) (*GraphRequestAdapterBase, error)
- func NewGraphRequestAdapterBaseWithParseNodeFactory(authenticationProvider absauth.AuthenticationProvider, ...) (*GraphRequestAdapterBase, error)
- func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactory(authenticationProvider absauth.AuthenticationProvider, ...) (*GraphRequestAdapterBase, error)
- func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient(authenticationProvider absauth.AuthenticationProvider, ...) (*GraphRequestAdapterBase, error)
- type GraphTelemetryHandler
Constants ¶
This section is empty.
Variables ¶
var CoreVersion = "0.0.1"
Functions ¶
func GetDefaultClient ¶
func GetDefaultClient(middleware ...khttp.Middleware) *nethttp.Client
Create a new default net/http client with the options configured for the Graph Client Parameters:
middleware - the middlewares to use for the client
Returns:
the client
func GetDefaultMiddlewaresWithOptions ¶
func GetDefaultMiddlewaresWithOptions(options *GraphClientOptions) []khttp.Middleware
Creates a new default set of middlewares for the Graph Client Parameters:
options - the options to use for the middlewares
Returns:
the middlewares
Types ¶
type GraphClientOptions ¶
type GraphClientOptions struct {
// The version of the targeted service for telemetry (v1.0, beta)
GraphServiceVersion string
// The version of the service library for telemetry (1.2.3)
GraphServiceLibraryVersion string
}
Options for the GraphClient
type GraphODataQueryHandler ¶
type GraphODataQueryHandler struct {
// contains filtered or unexported fields
}
GraphODataQueryHandler is a handler that adds the dollar sign in front of OData query parameters
func NewGraphODataQueryHandler ¶
func NewGraphODataQueryHandler() *GraphODataQueryHandler
NewGraphODataQueryHandler creates a new instance of GraphODataQueryHandler
func NewGraphODataQueryHandlerWithOptions ¶
func NewGraphODataQueryHandlerWithOptions(options GraphODataQueryHandlerOptions) *GraphODataQueryHandler
NewGraphODataQueryHandlerWithOptions creates a new instance of GraphODataQueryHandler Parameters:
options: GraphODataQueryHandlerOptions options to use for the handler
type GraphODataQueryHandlerOptions ¶
func (*GraphODataQueryHandlerOptions) GetKey ¶
func (o *GraphODataQueryHandlerOptions) GetKey() abs.RequestOptionKey
func (*GraphODataQueryHandlerOptions) GetShouldReplace ¶
func (o *GraphODataQueryHandlerOptions) GetShouldReplace() func(req *nethttp.Request) bool
type GraphRequestAdapterBase ¶
type GraphRequestAdapterBase struct {
khttp.NetHttpRequestAdapter
}
GraphRequestAdapterBase is the core service used by GraphServiceClient to make requests to Microsoft Graph.
func NewGraphRequestAdapterBase ¶
func NewGraphRequestAdapterBase(authenticationProvider absauth.AuthenticationProvider, clientOptions GraphClientOptions) (*GraphRequestAdapterBase, error)
NewGraphRequestAdapterBase creates a new GraphRequestAdapterBase with the given parameters Parameters: authenticationProvider: the provider used to authenticate requests clientOptions: the options used to configure the client Returns: a new GraphRequestAdapterBase
func NewGraphRequestAdapterBaseWithParseNodeFactory ¶
func NewGraphRequestAdapterBaseWithParseNodeFactory(authenticationProvider absauth.AuthenticationProvider, clientOptions GraphClientOptions, parseNodeFactory absser.ParseNodeFactory) (*GraphRequestAdapterBase, error)
NewGraphRequestAdapterBaseWithParseNodeFactory creates a new GraphRequestAdapterBase with the given parameters Parameters: authenticationProvider: the provider used to authenticate requests clientOptions: the options used to configure the client parseNodeFactory: the factory used to create parse nodes Returns: a new GraphRequestAdapterBase
func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactory ¶
func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactory(authenticationProvider absauth.AuthenticationProvider, clientOptions GraphClientOptions, parseNodeFactory absser.ParseNodeFactory, serializationWriterFactory absser.SerializationWriterFactory) (*GraphRequestAdapterBase, error)
NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactory creates a new GraphRequestAdapterBase with the given parameters Parameters: authenticationProvider: the provider used to authenticate requests clientOptions: the options used to configure the client parseNodeFactory: the factory used to create parse nodes serializationWriterFactory: the factory used to create serialization writers Returns: a new GraphRequestAdapterBase
func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient ¶
func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient(authenticationProvider absauth.AuthenticationProvider, clientOptions GraphClientOptions, parseNodeFactory absser.ParseNodeFactory, serializationWriterFactory absser.SerializationWriterFactory, httpClient *nethttp.Client) (*GraphRequestAdapterBase, error)
NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient creates a new GraphRequestAdapterBase with the given parameters Parameters: authenticationProvider: the provider used to authenticate requests clientOptions: the options used to configure the client parseNodeFactory: the factory used to create parse nodes serializationWriterFactory: the factory used to create serialization writers httpClient: the client used to send requests Returns: a new GraphRequestAdapterBase
type GraphTelemetryHandler ¶
type GraphTelemetryHandler struct {
// contains filtered or unexported fields
}
GraphTelemetryHandler is a middleware handler that adds telemetry headers to requests.
func NewGraphTelemetryHandler ¶
func NewGraphTelemetryHandler(options *GraphClientOptions) *GraphTelemetryHandler
NewGraphTelemetryHandler creates a new GraphTelemetryHandler. Parameters:
options - the options for the GraphClient.
Returns:
the new GraphTelemetryHandler.