mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-13 14:58:15 +02:00
databroker: add list types method
This commit is contained in:
parent
7a405abea1
commit
2eb24fd42a
13 changed files with 494 additions and 232 deletions
|
@ -72,6 +72,13 @@ func (srv *dataBrokerServer) Get(ctx context.Context, req *databrokerpb.GetReque
|
|||
return srv.server.Get(ctx, req)
|
||||
}
|
||||
|
||||
func (srv *dataBrokerServer) ListTypes(ctx context.Context, req *emptypb.Empty) (*databrokerpb.ListTypesResponse, error) {
|
||||
if err := grpcutil.RequireSignedJWT(ctx, srv.sharedKey.Load()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return srv.server.ListTypes(ctx)
|
||||
}
|
||||
|
||||
func (srv *dataBrokerServer) Query(ctx context.Context, req *databrokerpb.QueryRequest) (*databrokerpb.QueryResponse, error) {
|
||||
if err := grpcutil.RequireSignedJWT(ctx, srv.sharedKey.Load()); err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue