| 136 | } |
| 137 | |
| 138 | type Server struct { |
| 139 | // For forward compatibility |
| 140 | sourcebackendpb.UnimplementedSourceBackendServer |
| 141 | |
| 142 | mu sync.Mutex |
| 143 | Index *index.Index |
| 144 | UnpackedPath string |
| 145 | IndexPath string |
| 146 | UsePositionalIndex bool |
| 147 | } |
| 148 | |
| 149 | // Serves a single file for displaying it in /show |
| 150 | func (s *Server) File(ctx context.Context, in *sourcebackendpb.FileRequest) (*sourcebackendpb.FileReply, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected