client

package
v0.0.0-...-d2cf98a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFollowPayload

func BuildFollowPayload(followingFollowID string, followingFollowAuth string) (*following.FollowPayload, error)

BuildFollowPayload builds the payload for the following follow endpoint from CLI flags.

func BuildFollowersPayload

func BuildFollowersPayload(followingFollowersID string, followingFollowersPage string) (*following.FollowersPayload, error)

BuildFollowersPayload builds the payload for the following followers endpoint from CLI flags.

func BuildUnfollowPayload

func BuildUnfollowPayload(followingUnfollowID string, followingUnfollowAuth string) (*following.UnfollowPayload, error)

BuildUnfollowPayload builds the payload for the following unfollow endpoint from CLI flags.

func DecodeFollowResponse

func DecodeFollowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeFollowResponse returns a decoder for responses returned by the following follow endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFollowResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeFollowersResponse

func DecodeFollowersResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeFollowersResponse returns a decoder for responses returned by the following followers endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFollowersResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeUnfollowResponse

func DecodeUnfollowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeUnfollowResponse returns a decoder for responses returned by the following unfollow endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUnfollowResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func EncodeFollowRequest

func EncodeFollowRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeFollowRequest returns an encoder for requests sent to the following follow server.

func EncodeFollowersRequest

func EncodeFollowersRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeFollowersRequest returns an encoder for requests sent to the following followers server.

func EncodeUnfollowRequest

func EncodeUnfollowRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeUnfollowRequest returns an encoder for requests sent to the following unfollow server.

func FollowFollowingPath

func FollowFollowingPath(id int64) string

FollowFollowingPath returns the URL path to the following service follow HTTP endpoint.

func FollowersFollowingPath

func FollowersFollowingPath(id int64) string

FollowersFollowingPath returns the URL path to the following service followers HTTP endpoint.

func NewFollowBadRequest

func NewFollowBadRequest(body *FollowBadRequestResponseBody) *goa.ServiceError

NewFollowBadRequest builds a following service follow endpoint bad-request error.

func NewFollowForbidden

func NewFollowForbidden(body *FollowForbiddenResponseBody) *goa.ServiceError

NewFollowForbidden builds a following service follow endpoint forbidden error.

func NewFollowNotFound

func NewFollowNotFound(body *FollowNotFoundResponseBody) *goa.ServiceError

NewFollowNotFound builds a following service follow endpoint not-found error.

func NewFollowUnauthorized

func NewFollowUnauthorized(body *FollowUnauthorizedResponseBody) *goa.ServiceError

NewFollowUnauthorized builds a following service follow endpoint unauthorized error.

func NewFollowersBadRequest

func NewFollowersBadRequest(body *FollowersBadRequestResponseBody) *goa.ServiceError

NewFollowersBadRequest builds a following service followers endpoint bad-request error.

func NewFollowersForbidden

func NewFollowersForbidden(body *FollowersForbiddenResponseBody) *goa.ServiceError

NewFollowersForbidden builds a following service followers endpoint forbidden error.

func NewFollowersNotFound

func NewFollowersNotFound(body *FollowersNotFoundResponseBody) *goa.ServiceError

NewFollowersNotFound builds a following service followers endpoint not-found error.

func NewFollowersPageViewOK

func NewFollowersPageViewOK(body *FollowersResponseBody) *followingviews.FollowersPageView

NewFollowersPageViewOK builds a "following" service "followers" endpoint result from a HTTP "OK" response.

func NewFollowersUnauthorized

func NewFollowersUnauthorized(body *FollowersUnauthorizedResponseBody) *goa.ServiceError

NewFollowersUnauthorized builds a following service followers endpoint unauthorized error.

func NewUnfollowBadRequest

func NewUnfollowBadRequest(body *UnfollowBadRequestResponseBody) *goa.ServiceError

NewUnfollowBadRequest builds a following service unfollow endpoint bad-request error.

func NewUnfollowForbidden

func NewUnfollowForbidden(body *UnfollowForbiddenResponseBody) *goa.ServiceError

NewUnfollowForbidden builds a following service unfollow endpoint forbidden error.

func NewUnfollowNotFound

func NewUnfollowNotFound(body *UnfollowNotFoundResponseBody) *goa.ServiceError

NewUnfollowNotFound builds a following service unfollow endpoint not-found error.

func NewUnfollowUnauthorized

func NewUnfollowUnauthorized(body *UnfollowUnauthorizedResponseBody) *goa.ServiceError

NewUnfollowUnauthorized builds a following service unfollow endpoint unauthorized error.

func UnfollowFollowingPath

func UnfollowFollowingPath(id int64) string

UnfollowFollowingPath returns the URL path to the following service unfollow HTTP endpoint.

func ValidateAvatarResponseBody

func ValidateAvatarResponseBody(body *AvatarResponseBody) (err error)

ValidateAvatarResponseBody runs the validations defined on AvatarResponseBody

func ValidateFollowBadRequestResponseBody

func ValidateFollowBadRequestResponseBody(body *FollowBadRequestResponseBody) (err error)

ValidateFollowBadRequestResponseBody runs the validations defined on follow_bad-request_response_body

func ValidateFollowForbiddenResponseBody

func ValidateFollowForbiddenResponseBody(body *FollowForbiddenResponseBody) (err error)

ValidateFollowForbiddenResponseBody runs the validations defined on follow_forbidden_response_body

func ValidateFollowNotFoundResponseBody

func ValidateFollowNotFoundResponseBody(body *FollowNotFoundResponseBody) (err error)

ValidateFollowNotFoundResponseBody runs the validations defined on follow_not-found_response_body

func ValidateFollowUnauthorizedResponseBody

func ValidateFollowUnauthorizedResponseBody(body *FollowUnauthorizedResponseBody) (err error)

ValidateFollowUnauthorizedResponseBody runs the validations defined on follow_unauthorized_response_body

func ValidateFollowerCollectionResponseBody

func ValidateFollowerCollectionResponseBody(body FollowerCollectionResponseBody) (err error)

ValidateFollowerCollectionResponseBody runs the validations defined on FollowerCollectionResponseBody

func ValidateFollowerResponseBody

func ValidateFollowerResponseBody(body *FollowerResponseBody) (err error)

ValidateFollowerResponseBody runs the validations defined on FollowerResponseBody

func ValidateFollowersBadRequestResponseBody

func ValidateFollowersBadRequestResponseBody(body *FollowersBadRequestResponseBody) (err error)

ValidateFollowersBadRequestResponseBody runs the validations defined on followers_bad-request_response_body

func ValidateFollowersForbiddenResponseBody

func ValidateFollowersForbiddenResponseBody(body *FollowersForbiddenResponseBody) (err error)

ValidateFollowersForbiddenResponseBody runs the validations defined on followers_forbidden_response_body

func ValidateFollowersNotFoundResponseBody

func ValidateFollowersNotFoundResponseBody(body *FollowersNotFoundResponseBody) (err error)

ValidateFollowersNotFoundResponseBody runs the validations defined on followers_not-found_response_body

func ValidateFollowersUnauthorizedResponseBody

func ValidateFollowersUnauthorizedResponseBody(body *FollowersUnauthorizedResponseBody) (err error)

ValidateFollowersUnauthorizedResponseBody runs the validations defined on followers_unauthorized_response_body

func ValidateUnfollowBadRequestResponseBody

func ValidateUnfollowBadRequestResponseBody(body *UnfollowBadRequestResponseBody) (err error)

ValidateUnfollowBadRequestResponseBody runs the validations defined on unfollow_bad-request_response_body

func ValidateUnfollowForbiddenResponseBody

func ValidateUnfollowForbiddenResponseBody(body *UnfollowForbiddenResponseBody) (err error)

ValidateUnfollowForbiddenResponseBody runs the validations defined on unfollow_forbidden_response_body

func ValidateUnfollowNotFoundResponseBody

func ValidateUnfollowNotFoundResponseBody(body *UnfollowNotFoundResponseBody) (err error)

ValidateUnfollowNotFoundResponseBody runs the validations defined on unfollow_not-found_response_body

func ValidateUnfollowUnauthorizedResponseBody

func ValidateUnfollowUnauthorizedResponseBody(body *UnfollowUnauthorizedResponseBody) (err error)

ValidateUnfollowUnauthorizedResponseBody runs the validations defined on unfollow_unauthorized_response_body

Types

type AvatarResponseBody

type AvatarResponseBody struct {
	URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"`
}

AvatarResponseBody is used to define fields on response body types.

type Client

type Client struct {
	// Follow Doer is the HTTP client used to make requests to the follow endpoint.
	FollowDoer goahttp.Doer

	// Unfollow Doer is the HTTP client used to make requests to the unfollow
	// endpoint.
	UnfollowDoer goahttp.Doer

	// Followers Doer is the HTTP client used to make requests to the followers
	// endpoint.
	FollowersDoer goahttp.Doer

	// CORS Doer is the HTTP client used to make requests to the  endpoint.
	CORSDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the following service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the following service servers.

func (*Client) BuildFollowRequest

func (c *Client) BuildFollowRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildFollowRequest instantiates a HTTP request object with method and path set to call the "following" service "follow" endpoint

func (*Client) BuildFollowersRequest

func (c *Client) BuildFollowersRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildFollowersRequest instantiates a HTTP request object with method and path set to call the "following" service "followers" endpoint

func (*Client) BuildUnfollowRequest

func (c *Client) BuildUnfollowRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildUnfollowRequest instantiates a HTTP request object with method and path set to call the "following" service "unfollow" endpoint

func (*Client) Follow

func (c *Client) Follow() goa.Endpoint

Follow returns an endpoint that makes HTTP requests to the following service follow server.

func (*Client) Followers

func (c *Client) Followers() goa.Endpoint

Followers returns an endpoint that makes HTTP requests to the following service followers server.

func (*Client) Unfollow

func (c *Client) Unfollow() goa.Endpoint

Unfollow returns an endpoint that makes HTTP requests to the following service unfollow server.

type FollowBadRequestResponseBody

type FollowBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FollowBadRequestResponseBody is the type of the "following" service "follow" endpoint HTTP response body for the "bad-request" error.

type FollowForbiddenResponseBody

type FollowForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FollowForbiddenResponseBody is the type of the "following" service "follow" endpoint HTTP response body for the "forbidden" error.

type FollowNotFoundResponseBody

type FollowNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FollowNotFoundResponseBody is the type of the "following" service "follow" endpoint HTTP response body for the "not-found" error.

type FollowUnauthorizedResponseBody

type FollowUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FollowUnauthorizedResponseBody is the type of the "following" service "follow" endpoint HTTP response body for the "unauthorized" error.

type FollowerCollectionResponseBody

type FollowerCollectionResponseBody []*FollowerResponseBody

FollowerCollectionResponseBody is used to define fields on response body types.

type FollowerResponseBody

type FollowerResponseBody struct {
	ID     *int64              `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	Name   *string             `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	Avatar *AvatarResponseBody `form:"avatar,omitempty" json:"avatar,omitempty" xml:"avatar,omitempty"`
}

FollowerResponseBody is used to define fields on response body types.

type FollowersBadRequestResponseBody

type FollowersBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FollowersBadRequestResponseBody is the type of the "following" service "followers" endpoint HTTP response body for the "bad-request" error.

type FollowersForbiddenResponseBody

type FollowersForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FollowersForbiddenResponseBody is the type of the "following" service "followers" endpoint HTTP response body for the "forbidden" error.

type FollowersNotFoundResponseBody

type FollowersNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FollowersNotFoundResponseBody is the type of the "following" service "followers" endpoint HTTP response body for the "not-found" error.

type FollowersResponseBody

type FollowersResponseBody struct {
	Followers FollowerCollectionResponseBody `form:"followers,omitempty" json:"followers,omitempty" xml:"followers,omitempty"`
	Total     *int32                         `form:"total,omitempty" json:"total,omitempty" xml:"total,omitempty"`
	Page      *int32                         `form:"page,omitempty" json:"page,omitempty" xml:"page,omitempty"`
}

FollowersResponseBody is the type of the "following" service "followers" endpoint HTTP response body.

type FollowersUnauthorizedResponseBody

type FollowersUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FollowersUnauthorizedResponseBody is the type of the "following" service "followers" endpoint HTTP response body for the "unauthorized" error.

type UnfollowBadRequestResponseBody

type UnfollowBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UnfollowBadRequestResponseBody is the type of the "following" service "unfollow" endpoint HTTP response body for the "bad-request" error.

type UnfollowForbiddenResponseBody

type UnfollowForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UnfollowForbiddenResponseBody is the type of the "following" service "unfollow" endpoint HTTP response body for the "forbidden" error.

type UnfollowNotFoundResponseBody

type UnfollowNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UnfollowNotFoundResponseBody is the type of the "following" service "unfollow" endpoint HTTP response body for the "not-found" error.

type UnfollowUnauthorizedResponseBody

type UnfollowUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UnfollowUnauthorizedResponseBody is the type of the "following" service "unfollow" endpoint HTTP response body for the "unauthorized" error.

Jump to

Keyboard shortcuts

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