Schema is used to get schema information over the network on other instances.
(ctx context.Context, s *pb.SchemaRequest)
| 224 | |
| 225 | // Schema is used to get schema information over the network on other instances. |
| 226 | func (w *grpcWorker) Schema(ctx context.Context, s *pb.SchemaRequest) (*pb.SchemaResult, error) { |
| 227 | if ctx.Err() != nil { |
| 228 | return &emptySchemaResult, ctx.Err() |
| 229 | } |
| 230 | |
| 231 | if !groups().ServesGroup(s.GroupId) { |
| 232 | return &emptySchemaResult, errors.Errorf("This server doesn't serve group id: %v", s.GroupId) |
| 233 | } |
| 234 | return getSchema(ctx, s) |
| 235 | } |
| 236 | |
| 237 | // GetTypes processes the type requests and retrieves the desired types. |
| 238 | func GetTypes(ctx context.Context, req *pb.SchemaRequest) ([]*pb.TypeUpdate, error) { |
nothing calls this directly
no test coverage detected