Documentation ¶
Overview ¶
// Copyright 2020 Asim Aslam // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // Original source: github.com/micro/go-micro/v3/api/handler/rpc/stream.go
Index ¶
- type V1
- func (v1 *V1) BlockKey(ctx context.Context, request *pb.BlockKeyRequest, ...) error
- func (v1 *V1) DeleteCustomer(ctx context.Context, request *v1.DeleteCustomerRequest, ...) error
- func (v1 *V1) Endpoint(ctx context.Context, stream server.Stream) error
- func (v1 *V1) GenerateKey(ctx context.Context, req *pb.GenerateKeyRequest, rsp *pb.GenerateKeyResponse) error
- func (v1 *V1) ListKeys(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
- func (v1 *V1) RevokeKey(ctx context.Context, request *pb.RevokeRequest, response *pb.RevokeResponse) error
- func (v1 *V1) UnblockKey(ctx context.Context, request *pb.UnblockKeyRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V1 ¶
type V1 struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*V1) BlockKey ¶
func (v1 *V1) BlockKey(ctx context.Context, request *pb.BlockKeyRequest, response *pb.BlockKeyResponse) error
func (*V1) DeleteCustomer ¶
func (v1 *V1) DeleteCustomer(ctx context.Context, request *v1.DeleteCustomerRequest, response *v1.DeleteCustomerResponse) error
func (*V1) GenerateKey ¶
func (v1 *V1) GenerateKey(ctx context.Context, req *pb.GenerateKeyRequest, rsp *pb.GenerateKeyResponse) error
GenerateKey generates an API key
func (*V1) ListKeys ¶
func (v1 *V1) ListKeys(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
ListKeys lists all keys for a user
func (*V1) RevokeKey ¶
func (v1 *V1) RevokeKey(ctx context.Context, request *pb.RevokeRequest, response *pb.RevokeResponse) error
func (*V1) UnblockKey ¶
func (v1 *V1) UnblockKey(ctx context.Context, request *pb.UnblockKeyRequest, response *pb.UnblockKeyResponse) error