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 allowclippy::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
. - GetRedirect
Request - GetRedirect
Response - GetStatistics
Request - GetVanity
Request - GetVanity
Response - Links
Client - The links gRPC API, providing a remote interface to the backend store. This
RPC interface roughly mimics
links::store::Store
. - Links
Server - The links gRPC API, providing a remote interface to the backend store. This
RPC interface roughly mimics
links::store::Store
. - RemRedirect
Request - RemRedirect
Response - RemStatistics
Request - RemVanity
Request - RemVanity
Response - Request
- A gRPC request and metadata from an RPC call.
- Response
- A gRPC response and metadata from an RPC call.
- SetRedirect
Request - SetRedirect
Response - SetVanity
Request - SetVanity
Response - Status
- A gRPC status describing the result of an RPC call.
Enums§
Functions§
- get_
auth_ checker - Get a function that checks authentication/authorization of an incoming grpc API call.