(ctx context.Context, in *pb.NewAdapterRequest)
| 135 | } |
| 136 | |
| 137 | func (s *Server) NewAdapter(ctx context.Context, in *pb.NewAdapterRequest) (*pb.NewAdapterReply, error) { |
| 138 | a, err := newAdapter(in) |
| 139 | if err != nil { |
| 140 | return nil, err |
| 141 | } |
| 142 | |
| 143 | h := s.addAdapter(a) |
| 144 | |
| 145 | return &pb.NewAdapterReply{Handler: int32(h)}, nil |
| 146 | } |
| 147 | |
| 148 | func (s *Server) parseParam(param, matcher string) (interface{}, string) { |
| 149 | if strings.HasPrefix(param, "ABAC::") { |