Module api

Source
Expand description

This module contains the gRPC-based low-level links API, responsible for allowing outside services access to the links store.

Modules§

rpc_wrapper 🔒
A wrapper around the generated tonic code. Contains the rpc module with all of the actual functionality. This is necessary to allow clippy::pedantic on the generated code.

Structs§

Api
The grpc API implementation. Contains a reference to the store on which all operations are performed. Implements all RPC calls from links.proto.
GetRedirectRequest
GetRedirectResponse
GetStatisticsRequest
GetVanityRequest
GetVanityResponse
LinksClient
The links gRPC API, providing a remote interface to the backend store. This RPC interface roughly mimics links::store::Store.
LinksServer
The links gRPC API, providing a remote interface to the backend store. This RPC interface roughly mimics links::store::Store.
RemRedirectRequest
RemRedirectResponse
RemStatisticsRequest
RemVanityRequest
RemVanityResponse
Request
A gRPC request and metadata from an RPC call.
Response
A gRPC response and metadata from an RPC call.
SetRedirectRequest
SetRedirectResponse
SetVanityRequest
SetVanityResponse
Status
A gRPC status describing the result of an RPC call.

Enums§

Code
gRPC status codes used by Status.

Functions§

get_auth_checker
Get a function that checks authentication/authorization of an incoming grpc API call.