Categorygithub.com/go-ap/client
modulepackage
0.0.0-20250313174107-ecce11584a74
Repository: https://github.com/go-ap/client.git
Documentation: pkg.go.dev

# README

About GoActivityPub: Client

MIT Licensed Build Status Test Coverage Go Report Card

This project is part of the GoActivityPub library which helps with creating ActivityPub applications using the Go programming language.

It can be used to create an API client for ActivityPub servers.

It supports retrieval of ActivityPub objects and collections, but also submitting Activities to servers, either as a C2S or as a S2S client.

It can supports plugging in custom authorization logic. We usually authorize the requests with either HTTP Singatures (for server to server interactions) or OAuth2 (for client to server interactions).

You can find an expanded documentation about the whole library on SourceHut.

For discussions about the projects you can write to the discussions mailing list: ~mariusor/[email protected]

For patches and bug reports please use the dev mailing list: ~mariusor/[email protected]

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
SetDefaultHTTPClient is a hacky solution to modify the default static instance of the http.DefaultClient to whatever we have instantiated currently.
SkipTLSValidation sets the flag for skipping TLS validation on the default HTTP transport.
WithHTTPClient sets the http client.
No description provided by the author
WithUserAgent sets the user-agent header for all requests done with this client.

# Constants

ContentTypeActivityJson This specification registers the application/activity+json MIME Media Type specifically for identifying documents conforming to the Activity Streams 2.0 format.
No description provided by the author
No description provided by the author

# Variables

ErrorHandler is the error handler callback for the ActivityPub package.
UserAgent value that the client uses when performing requests.

# Structs

No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
ErrorHandlerFunc is a data type for the default ErrorHandler function of the package.
No description provided by the author
No description provided by the author
OptionFn.
No description provided by the author